码迷,mamicode.com
首页 > 其他好文 > 详细

【hyperledger fabric v1.4】问题集锦

时间:2019-12-16 17:41:21      阅读:657      评论:0      收藏:0      [点我收藏+]

标签:rpc   arc   type   amp   chain   abr   sed   strong   lease   

问题一、[45817] Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin

解决办法

  重新下载

 

问题二、Error: No such container: cli

解决办法:

  重新下载。没有下载到fabric-iTools。命令  ./bootstrap.sh –d

 

问题三、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 exist

!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!

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

解决办法: 命令 ./byfn.sh down

 

问题四、生成网络出现了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

 

问题五、增加组织时,无法连接到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来查看通道.

 

问题七、发生在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

***********这个切换版本问题需要在该源代码当前目录下。

 

 

 

【hyperledger fabric v1.4】问题集锦

标签:rpc   arc   type   amp   chain   abr   sed   strong   lease   

原文地址:https://www.cnblogs.com/youngyan/p/12050012.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!