在部署一个空的业务网络时,出现以下错误:-
前端:-
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
在日志中:-
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
即使所有容器都已启动并正在运行,错误仍然存在。 当我执行以下命令时:-
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
答案 0 :(得分:0)
查看屏幕截图并查看卡片,看来您以前已经连接OK,并且能够部署测试业务网络。因此,看起来您尝试连接的Fabric似乎不可用(未启动?)
您是否重新启动了承载Fabric的计算机?
在承载Fabric的计算机上,尝试使用命令docker ps
,查看是否有任何Dock容器正在运行。您也可以尝试docker ps -a
查看所有容器是否正在运行。
如果您的Fabric未运行,并且使用了Composer工具提供的“ Development Fabric”,请please see this posting了解startFabric.sh脚本的工作原理。