go - 无法组装交易,err 提案响应未成功,错误代码 500,msg 链码注册失败 : container exited with 0

标签 go hyperledger-fabric hyperledger

我正在尝试实例化链码,但发生错误,并且我找不到解决方案。

Ubuntu 18.04
super 账本结构 1.4.1
我已经按照该文档进行操作,上周成功了。相同的代码在另一台计算机上运行良好。
在实例化之前,一切都进展顺利,包括创建 channel 。 我的项目中没有应用node。

代码:

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

最佳答案

哦,我已经修好了! 这是由 docker compose .yaml 文件引起的。我更改了目录名称,但没有更新该文件中的“网络”。保持与目录名相同后,现在就没有错误了。

关于go - 无法组装交易,err 提案响应未成功,错误代码 500,msg 链码注册失败 : container exited with 0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56269378/

相关文章:

hyperledger-fabric - super 账本 : Not able to submit a transaction if one peer is down

hyperledger-fabric - 为什么 hyperledger-fabric 需要不止一个 orderer?

docker - Hyperledger Fabric对等容器未启动日志无法与Couchdb连接

docker - channel 创建失败。 GRPC超时

hyperledger - 多主机验证对等集群设置

去 GORM db.Automigrate

go - 通过值获取世界状态

struct - 如何在控制台中打印结构变量?

go - 事件处理中的死锁

docker - 测试从Docker容器到验证程序的连接时遇到的问题。 curl http://rest-api:8008/blocks