duanque2413 2019-05-23 06:41
浏览 389

无法组装事务,错误的提案响应未成功,错误代码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
  • 写回答

1条回答

  • douwaz34842 2019-05-24 08:39
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?