Chef服务器:FATAL:用户“ opscode-pgsql”的密码身份验证失败

时间:2019-05-03 04:44:15

标签: chef

我正在在本地系统上安装Chef服务器。我已经安装了在端口5432上运行的postgresql。尝试重新配置Chef服务器时,出现以下错误。我究竟做错了什么?注意:我没有opscode-psql密码,可以更改它,但是我不知道对当前安装会有什么样的影响。另外,安装程序甚至没有要求我输入密码。

我尝试编辑pg_hba.conf以将本地从对等更改为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"

1 个答案:

答案 0 :(得分:0)

我的错误是我在另一个项目的端口5432上运行Postgresql的本地实例,与/ opt / opscode / postgresql-96冲突。更改本地实例的Postgresql端口并重新启动系统后,它就可以正常工作。