fabric故障汇总与解决方案

问题1:阿里云服务器bug不兼容fabric

阿里云的服务器启动会报错如下:

Error: error getting endorser client for channel: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup peer0.org1.example.com: no such host"

peer0.org1 failed to join the channel, Retry after 3 seconds

解决如下:

vim /usr/local/go/src/github.com/hyperledger/fabric-samples/first-network/base/docker-compose-base.yaml

在每个environment下面都追加下面的参数,然后重新up就搞定。

- GODEBUG=netdns=go

 

问题2:peer节点启动报错

你可能感兴趣的:(区块链)