【hyperledger fabric v1.4】問題集錦

問題1、[45817] Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bingit

解決辦法github

  從新下載docker

 

問題2、Error: No such container: clibootstrap

解決辦法:網絡

  從新下載。沒有下載到fabric-iTools。命令  ./bootstrap.sh –dapp

 

問題3、UTC [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not existtcp

!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!測試

========= ERROR !!! FAILED to execute End-2-End Scenario ===========ui

解決辦法: 命令 ./byfn.sh downurl

 

問題4、生成網絡出現了start沒有出現end.

Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Get https://registry-1.docker.io/v2/hyperledger/fabric-baseos/manifests/amd64-0.4.15: Get https://auth.docker.io/token?scope=repository%3Ahyperledger%2Ffabric-baseos%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

!!!!!!!!!!!!!!! Chaincode instantiation on peer0.org2 on channel 'mychannel' failed !!!!!!!!!!!!!!!!

========= ERROR !!! FAILED to execute End-2-End Scenario ===========

ERROR !!!! Test failed

Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Get https://registry-1.docker.io/v2/hyperledger/fabric-baseos/manifests/amd64-0.4.15: dial tcp 52.87.94.70:443: i/o timeout

解決辦法:

  查看日誌 docker logs peer0.org2.example.com

 

問題5、增長組織時,沒法鏈接到org3的peer節點

 

解決辦法:

  排查順序:查看是否啓動節點——>查看docker ps——>查看端口。對比不一樣。最後發現,peer1.org3.example.com配置的端口號爲12051.因此須要改動。

 

問題六:通道重複註冊問題

root@0e658aba6e1c:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem

2019-11-15 09:14:59.082 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized

Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group]  /Channel/Application be at version 0, but it is currently at version 1

解決辦法

  建立通道的時候,報這個錯!! 已經存在通道了,就不要再添加了,能夠經過 peer channel list來查看通道.

 

問題7、發生在fabric sdk中,運行測試案例end2endit類的時候,會發生用戶已經註冊問題or超時問題

org.hyperledger.fabric_ca.sdk.exception.RegistrationException: Error while registering the user org.hyperledger.fabric.sdkintegration.SampleUser@3af9c5b7 url: http://192.168.10.101:7054  POST request to http://192.168.10.101:7054 failed request body {"id":"user1","type":"client","affiliation":"org1.department1","attrs":[]}. Response: {"result":"","errors":[{"code":0,"message":"Registration of 'user1' failed: Identity 'user1' is already registered"}

],"messages":[],"success":false}

org.hyperledger.fabric.sdk.exception.TransactionException: Channel foo, send transactions failed on orderer OrdererClient{id: 4, channel: foo, name: orderer.example.com, url: grpc://192.168.10.101:7050}. Reason:  timeout after 10000 ms.

解決辦法

  版本不對。切換版本就好。

  須要用到git    命令:git checkout release-1.4

***********這個切換版本問題須要在該源代碼當前目錄下。

相關文章
相關標籤/搜索