Hyperledger Fabric链码实例化错误 [英] Hyperledger Fabric chaincode instantiation error

查看:69
本文介绍了Hyperledger Fabric链码实例化错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用为作曲家提供的架构工具来部署架构网络,因为它部署了1个对等方,1个订购者,1个bedddb和&1个面料-ca.我可以在对等节点上安装链代码,但是实例化失败,并出现以下错误.我在fabric-peer上使用命令.

I'm using fabric tools provided for composer to deploy fabric network as it deploys 1 peer, 1 orderer, 1 couchdb, & 1 fabric-ca. I am able to install chain code on peer but instantiation fails with following error. I am using command on fabric-peer.

对等链代码实例化-o orderer.example.com:7050 -C composerchannel -n测试-l节点-v 1.0 -c'{"Args":["init","a","100","b","200"]}'

错误:无法组装交易,错误的投标响应不正确成功,错误代码500,味精无法执行事务83b806a14ec33d47e11950581357cc0ab05ef51dfb53d35c6b9f00eca7a49051:启动链码测试时超时已过期:1.0用于事务83b806a14ec33d47e11950581357cc0ab05ef51dfb53d35c6b9f00eca7a49051

Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 83b806a14ec33d47e11950581357cc0ab05ef51dfb53d35c6b9f00eca7a49051: timeout expired while starting chaincode test:1.0 for transaction 83b806a14ec33d47e11950581357cc0ab05ef51dfb53d35c6b9f00eca7a49051

如果我查看订购者的日志,就会得到:

And if I check the logs of orderer I get:

2018-09-01 11:09:16.205 UTC [orderer/common/broadcast]句柄-> WARN973从172.19.0.14:33674读取错误:rpc错误:代码=已取消desc =上下文已取消

2018-09-01 11:09:16.205 UTC [orderer/common/broadcast] Handle -> WARN 973 Error reading from 172.19.0.14:33674: rpc error: code = Canceled desc = context canceled

推荐答案

检查托管peer0的节点(VM)上的日志:

Check logs on node (VM) which host peer0 with:

docker ps -a

您将找到带有退出代码的链式代码容器ID.

you will find chaincode container ID with exit code.

CONTAINER ID: **718e367bf1db**
IMAGE: dev-peer1-org1-**mycc-0.2**-9c1906
COMMAND: "/bin/sh -c 'cd /usr…"

其中 mycc-0.2 是您的链码名称和版本.
找到容器ID后,您可以使用以下方法检查错误日志:

where mycc-0.2 is you chaincode name and version.
Once you find the container ID - you can check the error log with:

docker logs <container_id>

我认为您的链码中有错误,并且应用程序无法启动.

I assume there is a bug in the your chaincode and the application can't start.

这篇关于Hyperledger Fabric链码实例化错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆