Hyperledger fabric 1.1.0 部署,启动e2e_cli 报错,求大佬帮助 T^T

小弟使用 网站上鹤哥的部署教程,部署fabric 1.1.0 ,到操作e2e_demo 执行 启动网络命令出错:

./network_setup.sh up $CHANNEL_ID 1000000

错误信息如下:

===================== Chaincode is installed on remote peer PEER2 =====================
Instantiating chaincode on org2/peer2...
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
CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
CORE_PEER_LOCALMSPID=Org2MSP
CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
CORE_PEER_TLS_ENABLED=true
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
CORE_PEER_ID=cli
CORE_LOGGING_LEVEL=DEBUG
CORE_PEER_ADDRESS=peer0.org2.example.com:7051
2018-05-14 07:51:31.796 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-05-14 07:51:31.796 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-05-14 07:51:31.799 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-05-14 07:51:31.799 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-05-14 07:51:31.799 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled
2018-05-14 07:51:31.800 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AC0070A6808031A0C088380E5D70510...535010030A04657363630A0476736363
2018-05-14 07:51:31.800 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 8737C3491B0F5FC810B4DC31FEEC8ECC242455844E3E491902657E73D1CF5ED7
Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02/chaincode_example02.go:23:2: cannot find package "github.com/hyperledger/fabric/core/chaincode/shim" in any of:
/opt/go/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOROOT)
/chaincode/input/src/github.com/hyperledger/fabric/core/chaincode/shim (from $GOPATH)
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim
chaincode/input/src/github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02/chaincode_example02.go:24:2: cannot find package "github.com/hyperledger/fabric/protos/peer" in any of:
/opt/go/src/github.com/hyperledger/fabric/protos/peer (from $GOROOT)
/chaincode/input/src/github.com/hyperledger/fabric/protos/peer (from $GOPATH)
/opt/gopath/src/github.com/hyperledger/fabric/protos/peer
"

在给peer2 安装链码时候出错,弄了很久也没弄好。求助各位大佬,指点秘境。

请先 登录 后评论

最佳答案 2018-05-14 16:34

 docker images  看看是否已经具有 

hyperledger/fabric-ccenv

hyperledger/fabric-baseimage

hyperledger/fabric-baseos

以上三个DOCKER镜像文件

请先 登录 后评论

其它 0 个回答

  • 1 关注
  • 0 收藏,133 浏览
  • 赵子骞 提出于 2018-05-14 15:58

相似问题