问题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
***********这个切换版本问题须要在该源代码当前目录下。