fabric 1.0安装链代码失败:代言人客户端无法连接到org1.example.com:7051。

问题描述 投票:0回答:1

我使用的是fabric 1.0,当把chaincode安装到org1.example.com中时,得到以下错误信息。

我用来安装Chaincode的命令是。

docker exec cli peer chaincode install -n mycc -v 1 -p github.com/chaincode/sacc

我得到的错误是:

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

我已经在etchosts做了IP到域名的映射。

知道为什么吗?

谢谢!我使用的是fabric 1.0,在安装Chaincode到org1.example.com中时出现了以下错误:docker exec cli peer chaincode的命令是

hyperledger-fabric blockchain hyperledger-chaincode
1个回答
0
投票

在安装命令中缺少chaincode语言标签。如果它是一个node js chaincode,那么就加上 -l node 或如果走语言,则添加 -l go 像这样。

docker exec cli peer chaincode install -n mycc -v 1.0 -l node -p github.com/chaincode/sacc
© www.soinside.com 2019 - 2024. All rights reserved.