[英]ERRO : Error trying to connect to local peer: grpc: timed out trying to connect
Unable to deploy chaincode example in my local hyperledger fabric. 无法在我的本地hyperledger结构中部署链代码示例。
system config: mac osx, Docker toolbox for mac system config:mac osx,用于mac的Docker工具箱
One validating peer is up and running using docker-compose.yaml 使用docker-compose.yaml启动并运行一个验证对等体
membersrvc:
image: hyperledger/fabric-membersrvc
command: membersrvc
vp0:
image: hyperledger/fabric-peer
environment:
- CORE_PEER_ADDRESSAUTODETECT=false
- CORE_VM_ENDPOINT=http://172.17.0.1:2375
- CORE_LOGGING_LEVEL=DEBUG
- CORE_PEER_ID=vp0
- CORE_SECURITY_ENROLLID=test_vp0
- CORE_SECURITY_ENROLLSECRET=MwYpmSRjupbT
links:
- membersrvc
command: sh -c "sleep 5; peer node start --peer-chaincodedev"
While deploying chaincode by running 通过运行部署链代码
CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:30303 ./test
Its showing the error as [shim] ERRO : Error trying to connect to local peer: grpc: timed out trying to connect 它显示错误为[shim] ERRO:尝试连接到本地对等方时出错:grpc:尝试连接时超时
I tried replacing CORE_PEER_ADDRESS as suggested by grep timeout solution but no change in error. 我尝试按照grep timeout解决方案的建议替换CORE_PEER_ADDRESS但没有更改错误。
You need to use the correct port number on which peer process is listening to. 您需要使用对等进程正在侦听的正确端口号。
instead of using the following command, 而不是使用以下命令,
CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:30303 ./test
try this instead, 试试这个,
CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:7052 ./test
if it doesn't work then run the following command to check your listening port and use that instead, 如果它不起作用,则运行以下命令检查您的侦听端口并使用它,
netstat -atp tcp | grep -i "listen"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.