内容简介: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:
- Mac 下安装 cryptography 失败
- Win2016上安装SFB2015先决条件安装失败:RewriteModule
- PHPRAP 1.0.2 发布,修复安装失败 Bug 和优化细节
- go get 安装一个特定版本的包失败解决方法
- mysql5.7.18安装时mysql服务启动失败的解决方法
- vim-go ctrl+] 自动跳转失败处理 安装gure
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
从0开始做运营 入门篇
张亮 / 4.99元
此书是《从零开始做运营》系列的入门篇。 在互联网产品经理热的今天,关于传统的网站与产品运营的书籍一直非常缺乏,很多有志于互联网行业的年轻人并不明白一款产品、一个网站的策划、上线、成长、成熟直到衰落的过程中,除了产品和网站本身的设计之外,还有一块非常重要的工作是针对网站与产品生命周期的持续运营。 网站与产品运营是一个非常辛苦而非常有趣的事情,希望本书可以为有志于从事互联网网站与产品运营的......一起来看看 《从0开始做运营 入门篇》 这本书的介绍吧!