我在https://github.com/hyperledger/blockchain-explorer
运行./createdb.sh
时遇到错误psql: FATAL: role "root" does not exist
。我正在尝试在CentOS上运行区块链探险器。
我认为最后一个版本破裂了,或者使其与某些工具不相容。
尝试恢复到prev docker图像:HyperLedger/Explorer-DB:0.3.8HyperLedger/Explorer:0.3.8
对我有用的技巧。
在运行createb.sh脚本时,我的psql:fatal:falal:cool" postgres"不存在。我正在尝试在Ubuntu上安装。
我通过在以下命令之前修复了以下命令:
在在不使用sudo的情况下运行createb.sh脚本。
希望这可以帮助某人。
您在运行脚本时应该指定数据库用户。
在blockchain-explorer/app
下修改explorerconfig.json
以包括与DB的属性,例如"主机","端口","数据库","用户名"one_answers"密码"。
请从他们的github repo中参考此读数-https://github.com/hyperledger/blockchain-explorer/blob/blob/master/master/readme.md#database-setup