Hyperledger fabric Hyperledger结构:对等链码实例化错误:";无法汇编事务“&引用;msg链码注册失败“;

Hyperledger fabric Hyperledger结构:对等链码实例化错误:";无法汇编事务“&引用;msg链码注册失败“;,hyperledger-fabric,chaincode,Hyperledger Fabric,Chaincode,我们试图在示例网络中实例化示例chaincodegithub.com/chaincode/chaincode\u example02/go/,我们得到以下错误消息。。。有什么建议吗 CLI日志: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited wit

我们试图在示例网络中实例化示例chaincode
github.com/chaincode/chaincode\u example02/go/
,我们得到以下错误消息。。。有什么建议吗

CLI日志:

Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0
对等日志:

2020-10-29 15:20:31.341 UTC [gossip.comm] sendToEndpoint -> DEBU 5ed1 Exiting
2020-10-29 15:20:31.397 UTC [chaincode] Launch -> DEBU 5ed2 stopping due to error while launching: container exited with 0
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
2020-10-29 15:20:31.397 UTC [container] lockContainer -> DEBU 5ed3 waiting for container(mycc-1.0) lock
2020-10-29 15:20:31.397 UTC [container] lockContainer -> DEBU 5ed4 got container (mycc-1.0) lock
2020-10-29 15:20:31.417 UTC [container] unlockContainer -> DEBU 5edb container lock deleted(mycc-1.0)
2020-10-29 15:20:31.417 UTC [chaincode] Launch -> DEBU 5edc launch complete
2020-10-29 15:20:31.417 UTC [chaincode] Deregister -> DEBU 5edd deregister handler: mycc:1.0
2020-10-29 15:20:31.417 UTC [endorser] callChaincode -> INFO 5ede [mychannel][502c46f0] Exit chaincode: name:"lscc"  (35376ms)
2020-10-29 15:20:31.417 UTC [endorser] SimulateProposal -> ERRO 5edf [mychannel][502c46f0] failed to invoke chaincode name:"lscc" , error: container exited with 0
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
2020-10-29 15:20:31.417 UTC [endorser] SimulateProposal -> DEBU 5ee0 [mychannel][502c46f0] Exit
2020-10-29 15:20:31.417 UTC [lockbasedtxmgr] Done -> DEBU 5ee1 Done with transaction simulation / query execution [502c46f068a775e5966ee76e646b9444410e582877e12bd2b69aa89102061299]
2020-10-29 15:20:31.417 UTC [endorser] func1 -> DEBU 5ee2 Exit: request from 192.168.0.6:50290

该问题是由docker compose网络名称引起的,该名称不是默认名称(byfn)。
通过将环境变量
CORE\u VM\u DOCKER\u HOSTCONFIG\u NETWORKMODE
添加到正确的名称

解决了该问题。该问题是由于DOCKER compose网络名称不是默认名称(byfn)引起的。
通过将环境变量
CORE\u VM\u DOCKER\u HOSTCONFIG\u NETWORKMODE
添加到正确的名称

哪个版本的Fabric?Fabric版本1.4.3链码无法生成-可以尝试设置为false吗?您还可以设置env var
CORE\u VM\u ATTACHSTDOUT=true
。这将通过管道将Docker日志传回对等方。我已将env var设置为true/false,并在没有任何不同结果的情况下运行实例化:-(@GariSingh刚刚升级到1.4.9版,实例化失败,但出现以下消息:
错误:无法组装事务,错误建议响应未成功,错误代码500,消息错误启动容器:错误启动容器:无法生成特定于平台的docker生成:执行生成错误:API错误(404):未找到网络\u byfn“”
我们使用的docker compose网络名称不同于
net\u byfn
…这可能是第一个原因吗?我们如何更改实例化以在不同的docker compose网络id内工作?哪个版本的Fabric?Fabric版本1.4.3链码无法生成-您可以尝试设置为false吗?您可以lso还设置了env var
CORE\u VM\u ATTACHSTDOUT=true
。这应该将Docker日志通过管道传回对等方。我已将env var设置为true/false,并在没有任何不同结果的情况下运行实例化:-(@GariSingh刚刚升级到1.4.9版,实例化失败,但出现以下消息:
错误:无法组装事务,错误建议响应未成功,错误代码500,消息错误启动容器:错误启动容器:无法生成特定于平台的docker生成:执行生成错误:API错误(404):network net\u byfn not found”“
我们使用的docker compose网络名称不同于
net\u byfn
…这可能是第一个原因吗?我们如何将实例化更改为在不同的docker compose网络id内工作?