hyperledger-fabric - 无法安装 sacc 链码
问题描述
我有一个包含 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#
有什么建议么?
谢谢
解决方案
ERRO 003 open : no such file or directory error trying to read file content
目录中不存在您的链码文件,请检查您是否提供了正确的链码路径