Reputation: 1
I am having the same problem with Hyperledger fabric 2.1.1, but I am able to run test network with default options, but when I try to run Fabcar javascript chaincode I get an error:
Error: error getting endorser client for channel: endorser client failed to connect to localhost:7051: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7051: connect: connection refused"
I have tried everything mentioned in thread Error deploying Fabric test-network fabcar chaincode, removed docker images, ran prune, removed organizations data and fired ./network.sh up createChannel -ca -c mychannel -s couchdb -i 2.1.1
, but the error is still there. Also, my RAM is 16Gb, so the problem is not there. Any other suggestion, please ?
Upvotes: 0
Views: 6347
Reputation: 1
docker stop $(docker ps -q)
docker rm $(docker ps -a -q)
docker network rm $(docker network ls -q | grep -v "bridge\|host\|none")
Use this commands to remove already existing network running on your pc it will resolve your issue
Upvotes: -1
Reputation: 1
Change the version of docker images in your docker compose file to 2.2 and it will work.
For example:
From: orderer.example.com: container_name: orderer.example.com image: hyperledger/fabric-orderer
To: orderer.example.com: container_name: orderer.example.com image: hyperledger/fabric-orderer:2.2
Upvotes: 0
Reputation: 474
This situation is happened because you called a gRPC to 127.0.0.1:7051 server but your call failed to hit the server. This situation may happen for many reasons, but for most of the cases the situation is happened due to server down(server exit or down due to misconfiguration) or for wrong certificate or your call failed to hit the server due to misconfiguration.
Please check the following docker container and ensure that is running properly.
Upvotes: 1