正在运行的Fabcar示例返回错误:未能批准安装链码

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

我在Ubuntu 19.10上,已安装所有先决条件,并已下载fabric-samples git存储库。

我正在关注此link的教程

我运行了第一个网络示例,它运行良好。现在,当我尝试通过运行命令./startFabric.sh javascript运行fabcar示例时,出现以下错误:

...
2020-02-02 23:51:14.534 UTC [msp.identity] Sign -> DEBU 02c Sign: digest: 8A36B905991D6B72A6F487E93C79D468A35F402D6EB4F51E3323152A03A5B64E 
2020-02-02 23:53:04.531 UTC [grpc] infof -> DEBU 02d Client received GoAway with http2.ErrCodeEnhanceYourCalm.
2020-02-02 23:53:04.531 UTC [grpc] HandleSubConnStateChange -> DEBU 02e pickfirstBalancer: HandleSubConnStateChange: 0xc0003e1620, CONNECTING
2020-02-02 23:53:04.531 UTC [grpc] infof -> DEBU 02f transport: loopyWriter.run returning. connection error: desc = "transport is closing"
Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing

看起来好像在执行时产生了错误:

docker exec -e CORE_PEER_LOCALMSPID=Org2MSP -e CORE_PEER_ADDRESS=peer0.org2.example.com:9051 -e CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/[email protected]/msp -e CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt cli peer --tls=true --cafile=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --orderer=orderer.example.com:7050 lifecycle chaincode install fabcar.tar.gz

我假设我使用最新版本的hyperledger-fabric v2.0.0,因为我在fabric-samples存储库的master分支中。我在做什么错?

hyperledger-fabric
1个回答
0
投票
我将删除安装结构二进制文件的原始目录,并清理docker中的所有内容。确保您的环境干净。并在启动fabcar脚本之前设置PATH。

祝你好运。>>

© www.soinside.com 2019 - 2024. All rights reserved.