简体   繁体   English

错误:尝试连接到本地对等方时出错:grpc:尝试连接超时

[英]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但没有更改错误。

First Validating peer output 首先验证对等输出

Chaincode deployment error window Chaincode部署错误窗口

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.

相关问题 无法连接尝试连接到本地对等节点时出错:超出了上下文期限 - Can't connect Error trying to connect to local peer: context deadline exceeded Hyperledger Fabric-实例化链码时出错(尝试连接到本地对等点时出错:超出了上下文期限) - Hyperledger Fabric - Error while Instantiating chaincode (error trying to connect to local peer: context deadline exceeded) 出现错误:请求超时,尝试连接到 Kube.netes 上基于 rest 的服务 - Getting Error: Request timed out, trying to connect to a rest based service on Kubernetes 尝试使用 gRPC Web 将 Envoy 连接到 gRPC 服务时出现“协议错误” - `Protocol Error` when trying to connect Envoy to gRPC service using gRPC Web 尝试连接到 https://index.docker.io 时网络超时 - Network timed out while trying to connect to https://index.docker.io 尝试连接到本地 mysql 数据库时 docker 容器上的 Django 错误 - Django on docker container error when trying to connect to local mysql database ERRO[0044] 拨号 gRPC 失败:无法连接到 Docker 守护进程 - ERRO[0044] failed to dial gRPC: cannot connect to the Docker daemon Docker:尝试连接时发生错误 - Docker: An error occurred trying to connect 运行Tomcat尝试连接到Docker容器时出错 - Error running Tomcat trying to connect to a Docker container 尝试与 MYSQL 容器连接时出现错误 2013 - Error 2013 when trying to connect with MYSQL Container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM