chaincode安装失败:Error getting chaincode code chaincode: <go, [env]>: failed with error: ...

栏目: Go · 发布时间: 6年前

内容简介:Chaincode安装失败,碰到如下错误:2018-09-06 10:00:43.959 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc2018-09-06 10:00:43.959 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc

Chaincode安装失败,碰到如下错误:

2018-09-06 10:00:43.959 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc

2018-09-06 10:00:43.959 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc

Error: Error getting chaincode code chaincode: <go, [env]>: failed with error: "exec: not started"

Usage:

peer chaincode install [flags]

Flags:

-c, --ctor string Constructor message for the chaincode in JSON format (default "{}")

-l, --lang string Language the chaincode is written in (default "golang")

-n, --name string Name of the chaincode

-p, --path string Path to chaincode

-v, --version string Version of the chaincode specified in install/instantiate/upgrade commands

Global Flags:

--cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint

--certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint

--clientauth Use mutual TLS when communicating with the orderer endpoint

--keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint

--logging-level string Default logging level and overrides, see core.yaml for full syntax

-o, --orderer string Ordering service endpoint

--ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer.

--tls Use TLS when communicating with the orderer endpoint

--transient string Transient map of arguments in JSON encoding

根本原因是什么:

安装chaincode不在支持在peer的container里面进行了,必须在CLI的container里面操作:

Root Cause:

The issue is that you can no longer use the peer container as the CLI. You should use the fabric-tools container instead.

Please note the change in the e2e compose file here: https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/docker-compose-cli.yaml#L42

Please try the fabric-tools image and things should work

FYI - the error is due to the fact that the Go compiler is no included in the fabric-peer image and it is now required when using the CLI to package chaincode


以上所述就是小编给大家介绍的《chaincode安装失败:Error getting chaincode code chaincode: : failed with error: ...》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

测试驱动开发

测试驱动开发

Kent Beck / 孙平平、张小龙 / 中国电力出版社 / 2004-4-1 / 28.00元

《测试驱动开发》(中文版)设想把编程看成是转动曲柄从井里提一桶水上来的过程。如果水桶比较小,那么仅需一个能自由转动的曲柄就可以了。如果水桶比较大而且装满水,那么还没等水桶全部被提上来你就会很累了。你需要一个防倒转的装置,以保证每转一次可以休息一会儿。水桶越重,防倒转的棘齿相距越近。测试驱动开发中的测试程序就是防倒转装置上的棘齿。一旦我们的某个测试程序能工作了,你就知道,它从现在开始并且以后永远都可......一起来看看 《测试驱动开发》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

MD5 加密
MD5 加密

MD5 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具