无法组装事务,错误的提案响应未成功,错误代码500,味精链码注册失败:容器退出,返回0

I'm trying to instantiate the chaincode, but an error happens, and I can not find solutions to it.

ubuntu 18.04
hyperledger fabric 1.4.1
I've followed the document and it succeeded last week. The same code works well on another computer.
Before instantiate, everything went on well including making channels. I have not applied node in my project.

Codes:

root@c442cc2748e7:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n mycc -l golang -v 1.0 -c '{"Args":[]}' -P "AND ('Org1MSP.peer','Org2MSP.peer')"
2019-05-23 06:31:31.382 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-05-23 06:31:31.382 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0
dongye7231
dongye7231 其他一些信息:容器日志:[mychannel][e10540fc]无法调用链码名称:“lscc”,错误:容器以0github.com/hyperledger/fabric/core/chaincode退出。(*RuntimeLauncher).Launch.func1
一年多之前 回复

1个回答



哦,我已经修复了!
这是由docker compose .yaml文件引起的。 我更改了目录名称,而未更新此文件中的“网络”。 将其保留为目录名称后,现在没有错误。</ p>
</ div>

展开原文

原文

Oh, I have fixed it! It is caused by docker compose .yaml file. I changed the name of directory, without updating the "network" in this file. After keeping it the same as the name of directory, there's no error now.

dongroufan6846
dongroufan6846 网络名称应与目录名称匹配。
大约一年之前 回复
doomm4711
doomm4711 嗨,我有同样的问题,并得到同样的错误。 我更改了链码的目录名称,但不了解它与网络名称的关系。 你能解释更多吗?
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐