Composer network install: ERROR no valid responses from any peers

一曲冷凌霜 提交于 2019-12-13 17:06:13

问题


I'm working on the hyperledger blockchain on Ubuntu 18-04 LTS via this tuto hyperledger.github.io/composer/latest/tutorials/developer-tutorial . I have installed all the pre-requisites and in this step of running "composer network install", I faced this issue and tried some solutions but still not working. Any help please ? Thanks !

~/tutorial-network$ composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna

✖ Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: Failed to connect before the deadline Command failed

Docker ps and version


回答1:


Just mentioning this for others who might face this issue - While in your case fabric network was not running, in my case it was an issue with proxy. Once I cleared that, I was able to deploy successfully.




回答2:


your fabric network is not running.

go to your fabric-dev-servers folder and run ./startFabric.sh

if you get any errors there, like some containers already exist then do a ./teardownFabric.sh first then run the start command again.

This will give you a basic running network with one org, one peer and one orderer.

Once your network is running then you need to create your admin card by running ./createPeerAdminCard.sh

only at this point you are ready to install and start your chaincode.



来源:https://stackoverflow.com/questions/52185717/composer-network-install-error-no-valid-responses-from-any-peers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!