2017-07-03 119 views
0

我執行此命令。Faild作曲家網絡部署超時

composer network deploy -a basic-sample-network.bna -p defaultProfile -i admin -s Xurw3yU9zI0l 

但是,zhcon失敗與超時..

這裏是日誌。

Deploying business network from archive: basic-sample-network.bna 
Business network definition: 
    Identifier: [email protected] 
    Description: The Hello World of Hyperledger Composer samples 

✖ Deploying business network definition. This may take a minute... 

timed out waiting for transaction to complete 
Command failed 

Colud你告訴我,作曲家網絡部署沒有時間的方式。

回答

0

這是我見過的其他地方報告的Fabric問題。

看起來docker logs 47525938ac95較早發佈揭示了這個問題。

從您的命令行,你需要拉基本映像(您可能已經完成) - 和泊塢窗標記它:

如。 docker pull hyperledger/fabric-baseimage:x86_64-0.1.0(或任何你喜歡的baseimage版本)。

搬運工標籤hyperledger /織物baseimage:x86_64-0.1.0 hyperledger /織物baseimage:最新

然後重試

基本上,當你部署chaincode,對等點請求泊塢窗運行運行鏈碼的fabric-baseimage。

0

謝謝你的回答。

我使用Hyperledger Fabric v0.6環境。

[email protected]:~/composer/bna$ docker ps -a 
CONTAINER ID  IMAGE            COMMAND     CREATED    STATUS    PORTS                       NAMES 
3f3f0b3b6156  hyperledger/fabric-peer:x86_64-0.6.1-preview   "sh -c 'sleep 5; p..." 5 minutes ago  Up 5 minutes  0.0.0.0:7150->7050/tcp, 0.0.0.0:7151->7051/tcp, 0.0.0.0:7152->7052/tcp, 0.0.0.0:7153->7053/tcp fabricconfig_vp1_1 
f9819ca1fc89  hyperledger/composer-playground      "pm2-docker compos..." 5 minutes ago  Up 5 minutes  0.0.0.0:8080->8080/tcp                   fabricconfig_composer_1 
6488421e4878  hyperledger/fabric-peer:x86_64-0.6.1-preview   "sh -c 'sleep 5; p..." 5 minutes ago  Up 5 minutes  0.0.0.0:7350->7050/tcp, 0.0.0.0:7351->7051/tcp, 0.0.0.0:7352->7052/tcp, 0.0.0.0:7353->7053/tcp fabricconfig_vp3_1 
886c5594bba2  hyperledger/fabric-peer:x86_64-0.6.1-preview   "sh -c 'sleep 5; p..." 5 minutes ago  Up 5 minutes  0.0.0.0:7250->7050/tcp, 0.0.0.0:7251->7051/tcp, 0.0.0.0:7252->7052/tcp, 0.0.0.0:7253->7053/tcp fabricconfig_vp2_1 
1c407073c7ec  hyperledger/fabric-peer:x86_64-0.6.1-preview   "sh -c 'sleep 5; p..." 5 minutes ago  Up 5 minutes  0.0.0.0:7050-7053->7050-7053/tcp                 fabricconfig_vp0_1 
ae2cd708ecc1  hyperledger/fabric-membersrvc:x86_64-0.6.1-preview "membersrvc"    5 minutes ago  Up 5 minutes  0.0.0.0:7054->7054/tcp                   fabricconfig_membersrvc_1 

感謝

+0

您可以發佈可能包含的信息的問題是什麼同行日誌。該命令的格式爲「docker logs 」,容器ID是docker ps命令中顯示的值。 –

0

這是新CONTEINER ID。

[email protected]:~/composer/bna$ docker ps -a 
CONTAINER ID  IMAGE            COMMAND     CREATED    STATUS    PORTS                       NAMES 
180a05ba4a66  hyperledger/composer-playground      "pm2-docker compos..." 6 minutes ago  Up 2 minutes  0.0.0.0:8080->8080/tcp                   fabricconfig_composer_1 
47525938ac95  hyperledger/fabric-peer:x86_64-0.6.1-preview   "sh -c 'sleep 5; p..." 6 minutes ago  Up 2 minutes  0.0.0.0:7150->7050/tcp, 0.0.0.0:7151->7051/tcp, 0.0.0.0:7152->7052/tcp, 0.0.0.0:7153->7053/tcp fabricconfig_vp1_1 
962df523b480  hyperledger/fabric-peer:x86_64-0.6.1-preview   "sh -c 'sleep 5; p..." 6 minutes ago  Up 2 minutes  0.0.0.0:7350->7050/tcp, 0.0.0.0:7351->7051/tcp, 0.0.0.0:7352->7052/tcp, 0.0.0.0:7353->7053/tcp fabricconfig_vp3_1 
6ea2ec92d454  hyperledger/fabric-peer:x86_64-0.6.1-preview   "sh -c 'sleep 5; p..." 6 minutes ago  Up 2 minutes  0.0.0.0:7250->7050/tcp, 0.0.0.0:7251->7051/tcp, 0.0.0.0:7252->7052/tcp, 0.0.0.0:7253->7053/tcp fabricconfig_vp2_1 
fb09850fba53  hyperledger/fabric-peer:x86_64-0.6.1-preview   "sh -c 'sleep 5; p..." 6 minutes ago  Up 2 minutes  0.0.0.0:7050-7053->7050-7053/tcp                 fabricconfig_vp0_1 
1e5d14cacb02  hyperledger/fabric-membersrvc:x86_64-0.6.1-preview "membersrvc"    6 minutes ago  Up 2 minutes  0.0.0.0:7054->7054/tcp                   fabricconfig_membersrvc_1 

這裏是「泊塢窗日誌」 它看起來像連接錯誤。

[email protected]:~/composer/bna$ docker logs 47525938ac95 
: 
04:59:24.290 [dockercontroller] deployImage -> ERRO 117 Error building images: manifest for hyperledger/fabric-baseimage:latest not found 
04:59:24.290 [dockercontroller] deployImage -> ERRO 118 Image Output: 
******************** 
Step 1/4 : FROM hyperledger/fabric-baseimage 

******************** 

[email protected]:~/composer/bna$ docker logs 962df523b480 
    : 
    02:51:31.563 [peer] chatWithPeer -> ERRO 15aa Error creating connection to peer address 172.18.0.5:7051: grpc: timed out when dialing 
    : 

[email protected]:~/composer/bna$ docker logs 6ea2ec92d454 
: 
02:54:25.298 [peer] chatWithPeer -> ERRO 1a05 Error creating connection to peer address 172.18.0.5:7051: grpc: timed out when dialing 
: 

[email protected]:~/composerPoCTool-master/tools/composer/bna$ docker logs fb09850fba53 
: 
02:55:48.718 [peer] chatWithPeer -> ERRO 1c33 Error creating connection to peer address 172.18.0.5:7051: grpc: timed out when dialing 
: