无法安装sacc链码

时间:2018-10-04 00:52:24

标签: hyperledger-fabric

我有一个拥有2个组织和2个同行的网络。我正在尝试在同一个同行中安装本教程的示例链码。

/opt/gopath/src/chaincode/sacc# CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./sacc
2018-10-04 00:36:40.699 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-10-04 00:36:40.699 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...
2018-10-04 00:36:40.699 UTC [shim] userChaincodeStreamGetter -> ERRO 003 open : no such file or directory
error trying to read file content 
github.com/hyperledger/fabric/core/chaincode/shim.userChaincodeStreamGetter
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:89
github.com/hyperledger/fabric/core/chaincode/shim.Start
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:150
main.main
    /opt/gopath/src/chaincode/sacc/sacc.go:88
runtime.main
    /opt/go/src/runtime/proc.go:198
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:2361
Error starting SimpleAsset chaincode: error trying to read file content : open : no such file or directoryroot@31b1a3b7d3da:/opt/gopath/src/chaincode/sacc# 

有什么建议吗?

谢谢

1 个答案:

答案 0 :(得分:0)

ERRO 003 open : no such file or directory error trying to read file content

您的链码文件不在目录中,请检查您提供的链码路径是否正确