状态:500,消息:无法获取链码包 [英] status: 500, message: cannot get package for chaincode

查看:329
本文介绍了状态:500,消息:无法获取链码包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

root@93272a1da547:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n fabrep -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"

在尝试实例化我的链码时,出现以下错误:

While trying to instantiate my chaincode, I am getting the following error:

2018-06-19 09:03:09.526 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2018-06-19 09:03:09.526 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: cannot get package for chaincode (fabrep:1.0))

谁能告诉我这是什么意思?以及如何解决该错误?

Can anyone tell what this means? and how to resolve the error?

推荐答案

  • 首先检查对等方是否已安装链码

    • First check if chaincode is installed on the peer

      $ peer chaincode list --installed

      并使用已安装的链码的确切名称运行instantiate命令

      And ran the instantiate command with the exact name of the installed chaincode

      这篇关于状态:500,消息:无法获取链码包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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