【发布时间】:2019-05-03 15:05:36
【问题描述】:
我正在我的本地系统上安装 Chef 服务器。我已经安装了在端口 5432 上运行的 postgresql。当我尝试重新配置 Chef 服务器时,我收到了下面提到的错误。我究竟做错了什么?注意我没有 opscode-psql 密码,我可以更改它,但我不知道这会对当前安装产生什么样的影响。另外,安装程序甚至没有要求我输入密码。
我尝试编辑 pg_hba.conf 以将本地从 peer 更改为 md5,但这也没有帮助。
错误日志:
================================================================================
Error executing action `create` on resource 'private_chef_pg_database[opscode-pgsql]'
================================================================================
PG::ConnectionBad
-----------------
FATAL: password authentication failed for user "opscode-pgsql"
FATAL: password authentication failed for user "opscode-pgsql"
Running handlers:
Running handlers complete
Chef Client failed. 7 resources updated in 55 seconds
[2019-05-03T10:08:13+05:30] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2019-05-03T10:08:13+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-05-03T10:08:13+05:30] FATAL: PG::ConnectionBad: private_chef_pg_database[opscode-pgsql] (private-chef::postgresql line 129) had an error: PG::ConnectionBad: FATAL: password authentication failed for user "opscode-pgsql"
FATAL: password authentication failed for user "opscode-pgsql"
【问题讨论】:
标签: chef-infra