我尝试在多个主机环境上实例化nodejs链码,并导致链码注册错误。 Golang智能合约可在多个主机环境中完美运行。
错误:could not assemble transaction. err propseal response was not succesful, error code 500, msg chaincode registration failed: container exiter with 127
对等日志:
2019-11-05 06:03:09.941 UTC [endorser] SimulateProposal -> ERRO 04c [mychannel][6e8f647c] failed to invoke chaincode name:"lscc" , error: container exited with 127
github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333
chaincode registration failed
是否需要更改环境变量?
答案 0 :(得分:0)
您需要设置CC_SRC_PATH github / chaincode/。
答案 1 :(得分:0)
您能尝试删除所有docker容器并再次安装,实例化链码吗?