# 區塊鏈安裝問題 ## 2021/02/19 ```shell= sh ./peer0.sh up Pulling peer0.uat.tcbbank.trade-insight-blockchain.com (hyperledger/fabric-peer: 2.2)... ERROR: Get https://registry-1.docker.io/v2/: net/http: request canceled while wa iting for connection (Client.Timeout exceeded while awaiting headers) sleep 10 ===================== Join channel start ===================== ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyp erledger/msp/peer/users/Admin@uat.tcbbank.trade-insight-blockchain.com/msp && peer channel fetch 0 /etc/hyperle dger/configtx/supply-chain.block -c supply-chain -o orderer0.uat.orderer.trade-insight-blockchain.com:7050 --tl s --cafile /etc/hyperledger/allKeys/ordererOrganizations/uat.orderer.trade-insight-blockchain.com/orderers/orde rer0.uat.orderer.trade-insight-blockchain.com/tls/ca.crt' + res=1 + set +x Error: No such container: peer0.uat.tcbbank.trade-insight-blockchain.com !!!!!!!!!!!!!!! Join channel on peer0.uat.tcbbank.trade-insight-blockchain.com has failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ``` docker-compose-tcbbank-peer0.yml ```yaml= image: hyperledger/fabric-peer:2.2 ``` 改 ```yaml= image: hyperledger/fabric-peer:2.2.1 ``` ```shell= Creating peer0.uat.tcbbank.trade-insight-blockchain.com ... done sleep 10 =========setChannelEnv start =========== =========setChannelEnv end =========== ===================== Join channel start ===================== ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/users/Admin@uat.tcbbank.trade-i nsight-blockchain.com/msp && peer channel fetch 0 /etc/hyperledger/configtx/supply-chain.block -c supply-chain -o orderer0.uat.orderer.trade-insight-blockchain. com:7050 --tls --cafile /etc/hyperledger/allKeys/ordererOrganizations/uat.orderer.trade-insight-blockchain.com/orderers/orderer0.uat.orderer.trade-insight-block chain.com/tls/ca.crt' + res=1 + set +x Error: failed to create deliver client for orderer: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /etc/hyperledger/all Keys/ordererOrganizations/uat.orderer.trade-insight-blockchain.com/orderers/orderer0.uat.orderer.trade-insight-blockchain.com/tls/ca.crt: no such file or direct ory !!!!!!!!!!!!!!! Join channel on peer0.uat.tcbbank.trade-insight-blockchain.com has failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ``` #把 certificates/crypto-config/ordererOrganizations 資料夾 放入 allKeys中 #把 certificates/crypto-config/peerOrganizations/uat.cathay.trade-insight-blockchain 資料夾 放入 allKeys/peerOrganizations ### sh ./peer0.sh deploy ```shell= ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/users/Admin@uat.tcbbank.trade-insight-blockchai n.com/msp && peer chaincode invoke -o orderer0.uat.orderer.trade-insight-blockchain.com:7050 --tls --cafile /etc/hyperledger/allKeys/ordererOrganizations/uat.orderer.trade-insi ght-blockchain.com/orderers/orderer0.uat.orderer.trade-insight-blockchain.com/tls/ca.crt -C supply-chain -n supplychain --peerAddresses peer0.uat.cathay.trade-insight-blockchai n.com:7051 --tlsRootCertFiles /etc/hyperledger/allKeys/peerOrganizations/uat.cathay.trade-insight-blockchain.com/peers/peer0.uat.cathay.trade-insight-blockchain.com/tls/ca.crt --peerAddresses peer0.uat.tcbbank.trade-insight-blockchain.com:7051 --tlsRootCertFiles /etc/hyperledger/allKeys/peerOrganizations/uat.tcbbank.trade-insight-blockchain.com/peers /peer0.uat.tcbbank.trade-insight-blockchain.com/tls/ca.crt --waitForEvent -c '\''{"Args":["invokeTest", "tcbbank-peer0-up-and-test"]}'\''' + res=1 + set +x Error: error getting endorser client for invoke: endorser client failed to connect to peer0.uat.cathay.trade-insight-blockchain.com:7051: failed to create new connection: conte xt deadline exceeded !!!!!!!!!!!!!!! Invoke transaction failed on peer0.uat.tcbbank.trade-insight-blockchain.com on channel 'supply-chain' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== [con_admin@UHCUDAPSBCS01 main]$ sudo sh ./peer0.sh deploy ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/users/Admin@uat.tcbbank.trade-insight-blockchain.com/msp && peer lifecycle chaincode package supplychain.tar.gz --path chaincode --lang golang --label supplychain_1' + res=0 + set +x ===================== Chaincode is packaged on peer0.uat.tcbbank.trade-insight-blockchain.com ===================== ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/users/Admin@uat.tcbbank.trade-insight-blockchain.com/msp && peer lifecycle chaincode install supplychain.tar.gz' + res=1 + set +x Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Failed to pull hyperledger/fabric-ccenv:2.2: API error (500): Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) !!!!!!!!!!!!!!! Chaincode installation on peer0.uat.tcbbank.trade-insight-blockchain.com has failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/users/Admin@uat.tcbbank.trade-insight-blockchain.com/msp && peer chaincode invoke -o orderer0.uat.orderer.trade-insight-blockchain.com:7050 --tls --cafile /etc/hyperledger/allKeys/ordererOrganizations/uat.orderer.trade-insight-blockchain.com/orderers/orderer0.uat.orderer.trade-insight-blockchain.com/tls/ca.crt -C supply-chain -n supplychain --peerAddresses peer0.uat.cathay.trade-insight-blockchain.com:7051 --tlsRootCertFiles /etc/hyperledger/allKeys/peerOrganizations/uat.cathay.trade-insight-blockchain.com/peers/peer0.uat.cathay.trade-insight-blockchain.com/tls/ca.crt --peerAddresses peer0.uat.tcbbank.trade-insight-blockchain.com:7051 --tlsRootCertFiles /etc/hyperledger/allKeys/peerOrganizations/uat.tcbbank.trade-insight-blockchain.com/peers/peer0.uat.tcbbank.trade-insight-blockchain.com/tls/ca.crt --waitForEvent -c '\''{"Args":["invokeTest", "tcbbank-peer0-up-and-test"]}'\''' + res=1 + set +x Error: error getting endorser client for invoke: endorser client failed to connect to peer0.uat.cathay.trade-insight-blockchain.com:7051: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Invoke transaction failed on peer0.uat.tcbbank.trade-insight-blockchain.com on channel 'supply-chain' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== [con_admin@UHCUDAPSBCS01 main]$ clear [con_admin@UHCUDAPSBCS01 main]$ sudo sh ./peer0.sh deploy ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/users/Admin@uat.tcbbank.trade-insight-blockchain.com/msp && peer lifecycle chaincode package supplychain.tar.gz --path chaincode --lang golang --label supplychain_1' + res=0 + set +x ===================== Chaincode is packaged on peer0.uat.tcbbank.trade-insight-blockchain.com ===================== ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/users/Admin@uat.tcbbank.trade-insight-blockchain.com/msp && peer lifecycle chaincode install supplychain.tar.gz' + res=1 + set +x Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Failed to pull hyperledger/fabric-ccenv:2.2: API error (500): Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) !!!!!!!!!!!!!!! Chaincode installation on peer0.uat.tcbbank.trade-insight-blockchain.com has failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/users/Admin@uat.tcbbank.trade-insight-blockchain.com/msp && peer chaincode invoke -o orderer0.uat.orderer.trade-insight-blockchain.com:7050 --tls --cafile /etc/hyperledger/allKeys/ordererOrganizations/uat.orderer.trade-insight-blockchain.com/orderers/orderer0.uat.orderer.trade-insight-blockchain.com/tls/ca.crt -C supply-chain -n supplychain --peerAddresses peer0.uat.cathay.trade-insight-blockchain.com:7051 --tlsRootCertFiles /etc/hyperledger/allKeys/peerOrganizations/uat.cathay.trade-insight-blockchain.com/peers/peer0.uat.cathay.trade-insight-blockchain.com/tls/ca.crt --peerAddresses peer0.uat.tcbbank.trade-insight-blockchain.com:7051 --tlsRootCertFiles /etc/hyperledger/allKeys/peerOrganizations/uat.tcbbank.trade-insight-blockchain.com/peers/peer0.uat.tcbbank.trade-insight-blockchain.com/tls/ca.crt --waitForEvent -c '\''{"Args":["invokeTest", "tcbbank-peer0-up-and-test"]}'\''' + res=1 + set +x Error: error getting endorser client for invoke: endorser client failed to connect to peer0.uat.cathay.trade-insight-blockchain.com:7051: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Invoke transaction failed on peer0.uat.tcbbank.trade-insight-blockchain.com on channel 'supply-chain' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ``` ```shell= ++ sudo docker exec peer0.uat.tcbbank.trade-insight-blockchain.com /bin/sh -c 'CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/users/Admin@uat.tcbbank.trade-insight-blockchain.com/msp && peer chaincode invoke -o orderer0.uat.orderer.trade-insight-blockchain.com:7050 --tls --cafile /etc/hyperledger/allKeys/ordererOrganizations/uat.orderer.trade-insight-blockchain.com/orderers/orderer0.uat.orderer.trade-insight-blockchain.com/tls/ca.crt -C supply-chain -n supplychain --peerAddresses peer0.uat.cathay.trade-insight-blockchain.com:7051 --tlsRootCertFiles /etc/hyperledger/allKeys/peerOrganizations/uat.cathay.trade-insight-blockchain.com/peers/peer0.uat.cathay.trade-insight-blockchain.com/tls/ca.crt --peerAddresses peer0.uat.tcbbank.trade-insight-blockchain.com:7051 --tlsRootCertFiles /etc/hyperledger/allKeys/peerOrganizations/uat.tcbbank.trade-insight-blockchain.com/peers/peer0.uat.tcbbank.trade-insight-blockchain.com/tls/ca.crt --waitForEvent -c '\''{"Args":["invokeTest", "tcbbank-peer0-up-and-test"]}'\''' + res=1 + set +x Error: error getting endorser client for invoke: endorser client failed to connect to peer0.uat.cathay.trade-insight-blockchain.com:7051: failed to create new connection: context deadline exceeded !!!!!!!!!!!!!!! Invoke transaction failed on peer0.uat.tcbbank.trade-insight-blockchain.com on channel 'supply-chain' failed !!!!!!!!!!!!!!!! ========= ERROR !!! FAILED to execute End-2-End Scenario =========== ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up