问题描述
我跟踪了hyperledger / fabric文档提供的文档。我已经建立了两个验证对等网络,而不是CA.我尝试运行对等节点状态和对等网络列表命令,并继续收到以下错误:
错误:尝试连接到本地对等端时出错:grpc:超时尝试连接
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"
我也尝试在core.yaml文件中将maxprocs更改为2,但仍未解决问题。任何帮助表示赞赏。
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.
推荐答案
错误:尝试连接到本地对等的错误:grpc:超时尝试连接通常意味着Validation Peer未启动。在默认配置中,对等进程应监听端口30303,并且可以使用 netstat -a |轻松地检查该端口。 grep 30303
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
如果Validation Peer在本地启动,则输出应类似于:
If Validation Peer is started locally, the output should be similar to:
tcp6 0 0 [::]:30303 [::]:* LISTEN
如果在Docker容器或远程VM中启动验证对等项,应提供IP地址:
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
这篇关于在设置Hyperledger开发环境和网络时获取grpc超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!