Getting grpc timeout while setting up Hyperledger

2019-09-15 11:31发布

I followed the docs provided by the hyperledger/fabric documentation. I have setup a network with two validating peers and not CA. I try to run the "peer node status" and "peer network list" command and keep getting the following error: "Error: Error trying to connect to local peer: grpc: timed out trying to connect"

I also tried changing the "maxprocs" to 2 in the core.yaml file, but it still didn't fix the issue. Any help is appreciated.

1条回答
淡お忘
2楼-- · 2019-09-15 12:07

The “Error: Error trying to connect to local peer: grpc: timed out trying to connect” usually means that Validation Peer is not started. In default configuration peer process should listen port 30303 and you can easily check that using netstat -a | grep 30303

If Validation Peer is started locally, the output should be similar to:

tcp6       0      0 [::]:30303              [::]:*                  LISTEN

In case if Validation Peer is started in Docker container or on remote VM the IP address should be provided:

CORE_PEER_ADDRESS=172.17.0.2:30303 ./peer node status
查看更多
登录 后发表回答