0

我试图在多个主机环境中实例化 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

环境变量有什么需要改的吗?

4

2 回答 2

0

您需要设置 CC_SRC_PATH github/chaincode/。

于 2019-11-05T08:50:30.923 回答
0

您可以尝试删除所有 docker 容器并再次安装、实例化链代码。

于 2019-11-05T12:21:50.697 回答