【问题标题】:Chef server : FATAL: password authentication failed for user "opscode-pgsql"厨师服务器:致命:用户“opscode-pgsql”的密码验证失败
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-06
      • 2013-11-15
      • 2023-04-05
      • 1970-01-01
      • 1970-01-01
      • 2018-02-07
      • 2021-07-03
      • 2020-10-13
      相关资源
      最近更新 更多