简体   繁体   中英

Hyperledger Fabric :- Response from attempted peer comms was an error: Error: Failed to connect before the deadline

While deploying an empty business network , getting below errors :-

在此处输入图片说明

Front end :-

An error has occurred
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

In the logs :-

warn: [Hyperledger-Composer] :HLFConnection            :_checkCCListener()        could not find any connected event hubs out of 1 defined hubs to listen on for chaincode events
warn: [Hyperledger-Composer] :HLFConnection            :_checkCCListener()        could not find any connected event hubs out of 1 defined hubs to listen on for chaincode events
warn: [Hyperledger-Composer] :HLFConnection            :_checkCCListener()        could not find any connected event hubs out of 1 defined hubs to listen on for chaincode events
error: [Hyperledger-Composer] :HLFConnectionManager     :fabric-client()           [Remote.js]: Error: Failed to connect before the deadline
error: [Hyperledger-Composer] :HLFConnectionManager     :fabric-client()           [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Failed to connect before the deadline
    at checkState (/usr/local/lib/node_modules/composer-playground/node_modules/grpc/src/client.js:838:16)
warn: [Hyperledger-Composer] :HLFConnection            :_validatePeerResponses()  Response from attempted peer comms was an error: Error: Failed to connect before the deadline
error: [Hyperledger-Composer] :HLFConnection            :install()                 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
    at HLFConnection.install (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:518:30)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
error: [Hyperledger-Composer] :ConnectorServer          :connectionDeploy()        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
    at HLFConnection.install (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:518:30)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
warn: [Hyperledger-Composer] :HLFConnection            :_checkCCListener()        could not find any connected event hubs out of 1 defined hubs to listen on for chaincode events
warn: [Hyperledger-Composer] :HLFConnection            :_checkCCListener()        could not find any connected event hubs out of 1 defined hubs to listen on for chaincode events
warn: [Hyperledger-Composer] :HLFConnection            :_checkCCListener()        could not find any connected event hubs out of 1 defined hubs to listen on for chaincode events
warn: [Hyperledger-Composer] :HLFConnection            :_checkCCListener()        could not find any connected event hubs out of 1 defined hubs to listen on for chaincode events

在此处输入图片说明

Still the error is coming even if all the containers are up and running . When i am exectuing below command :-

bcuser@CUSVLDEV1HFB01:~/fabric-dev-servers/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

Looking at the screenshot and seeing the cards, it looks like you have connected OK previously and been able to deploy a test Business Network. So it does look like the Fabric you are trying to connect to is not available (not started?)

Have you restarted the computer where the Fabric is hosted?

On the computer where the Fabric is hosted try the command docker ps to see if there are any Dock Containers running. You can also try docker ps -a to see ALL containers whether running or not.

If your Fabric is not running, and you use the 'Development Fabric' provided by the Composer tools, please see this posting to understand how the startFabric.sh script works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM