简体   繁体   English

输入密码后,恒星 docker 图像数据库初始化失败

[英]stellar docker image db init failing after entering password

First time trying to run stellar docker image in persistence mode and receiving this error after entering & confirming new password:第一次尝试在持久模式下运行恒星 docker 图像并在输入并确认新密码后收到此错误:

  pq: password authentication failed for user "stellar"

docker cmd docker cmd

  docker run --rm -it -p "8000:8000" -v "/dev/stellar:/opt/stellar" --name stellar stellar/quickstart --testnet

I looked at trying to edit pg_hba.conf but I don't see the stellar user that has been configured.我试图编辑 pg_hba.conf 但我没有看到已配置的 stellar 用户。

Also, I verified the stellar-core.cfg has the correct db password as defined during setup.此外,我验证了 stellar-core.cfg 具有设置期间定义的正确数据库密码。

I had exactly the same issue while I was using a password with special characters (too fancy for sed to process?).当我使用带有特殊字符的密码时,我遇到了完全相同的问题(对于sed来说太花哨了?)。 Then I recreated the '/opt/stellar' shared volume and used stellarpasswd as a New Postgresql Password.然后我重新创建了'/opt/stellar'共享卷并使用stellarpasswd作为新的 Postgresql 密码。 And it worked: :)它奏效了::)

Another piece of info, maybe more important.另一条信息,也许更重要。 I have also added user stellar to my host machine.我还在我的主机上添加了用户stellar When the default configurations get rsync ed to '/opt/stellar' , this might not have worked properly without that user on my host machine..当默认配置被rsync编辑为'/opt/stellar'时,如果没有该用户在我的主机上,这可能无法正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM