在 Hyperledger fabric 2.2 中设置 logspout 时出现的错误

Errors seen when setting up logspout in Hyperledger fabric 2.2

按照此处描述的步骤设置 logspout: https://hyperledger-fabric.readthedocs.io/en/release-2.2/deploy_chaincode.html

运行 这会产生以下错误: ./monitordocker.sh net_test 开始监控网络上的所有容器 net_test xxxx docker:来自守护程序的错误响应:未找到网络 net_test。 curl: (7) 无法连接到 127.0.0.1 端口 8000:连接被拒绝

xxx@xxxx:/home/fabric/fabric-samples/test-network# xxx@xxxx:/home/fabric/fabric-samples/test-network#./monitordocker.sh 开始监控网络上的所有容器 basicnetwork_basic xxxx docker:来自守护程序的错误响应:未找到网络 basicnetwork_basic。 curl: (7) 无法连接到 127.0.0.1 端口 8000:连接被拒绝

xxx@xxxx:/home/fabric/fabric-samples/test-network# xxxx@xxxx:/home/fabric/fabric-samples/test-network#./monitordocker.shnet_basic 开始监控网络上的所有容器 net_basic xxxx docker:来自守护程序的错误响应:未找到网络 net_basic。 curl: (7) 无法连接到 127.0.0.1 端口 8000:连接被拒绝

几个问题:

  1. 默认端口 8000 中没有进程 运行。因此预计会出现连接拒绝错误。我们需要使用任何其他端口吗?
  2. 运行 monitordocker.sh 时要给出的网络名称是什么?

如有任何其他故障排除信息,我们将不胜感激。

好的,找到问题了。网络名称是 fabric_test。所以我发出了类似的命令 ./monitordocker.sh fabric_test

这解决了问题。