我目前在基本的第一个网络上运行超级账本资源管理器时遇到问题,在使用 ./createdb.sh 设置 postgresql 并运行 ./main.sh install 没有问题后,我碰巧卡在 ./main.sh 测试命令显示错误像这样:
PS:我还编辑了 explorerconfig.json,如下所示,我还在 postgrespgtest.js 做了一些更改,如下所示。
explorerconfig.json
{
"persistence": "postgreSQL",
"platforms": ["fabric"],
"postgreSQL": {
"host": "127.0.0.1",
"port": "5432",
"database": "fabricexplorer",
"username": "postgres",
"passwd": "1234"
},
"sync": {
"type": "local",
"platform": "fabric",
"blocksSyncTime": "1"
},
"jwt": {
"secret": "a secret phrase!!",
"expiresIn": "2h"
}
}
与:
postgrespgtest.js
...
const options = {
testdb: 'pgtestdb',
messages: false,
connection: {
host: pgconfig.host,
port: pgconfig.port,
user: 'postgres',
password: '1234'
}
};
...
带有错误消息:
# Test Results
ok 1 DROP USER IF EXISTS testuser;
not ok 2 WITH PASSWORD 'password';
---
operator: fail
at: <anonymous> (/home/ec2-user/blockchain-explorer/app/test/postgrespgtest.js:2:5157)
stack: |-
Error: WITH PASSWORD '1234';
at Test.assert [as _assert] (/home/ec2-user/blockchain-explorer/app/test/node_modules/tape/lib/test.js:226:54)
at Test.bound [as _assert] (/home/ec2-user/blockchain-explorer/app/test/node_modules/tape/lib/test.js:77:32)
at Test.fail (/home/ec2-user/blockchain-explorer/app/test/node_modules/tape/lib/test.js:319:10)
at Test.bound [as fail] (/home/ec2-user/blockchain-explorer/app/test/node_modules/tape/lib/test.js:77:32)
at /home/ec2-user/blockchain-explorer/app/test/postgrespgtest.js:2:5157
at processTicksAndRejections (internal/process/task_queues.js:93:5)
...(many more errors)
有谁知道可能导致问题的原因?PS:如果资源不够,请评论,我会尽力给你的