IBM-Blockchain-Archive / car-lease-demo

A demonstration using IBM Blockchain to show how the lifecycle of vehicles can be recorded on a blockchain
Other
170 stars 304 forks source link

Running start script brings the containers up but connection is refused, ncat is missing #118

Open cnaseeb opened 7 years ago

cnaseeb commented 7 years ago

I receive the following 3 errors. Basicaly when I run the start script the containers are started but connection is refused. I think main problem is that nc/ ncat is not there. I have configured as per the guide on this project. changed to htpp and running on localhost:8080.

  1. vp0_1 | sh: 1: nc: not found car-lease-demo_1 | vp0 [172.19.0.3] 7050 (?) : Connection refused

docker logs -f 9371ddbd9e82 results in

  1. sh: 1: nc: not found

When I run docker-compose -f docker-compose.yml up command, I get the following error

  1. vp0 [172.19.0.3] 7050 (?) : Connection refused

Logs: docker logs ee81f20cf45f

Wait for the Hyperledger Fabric to start.

while ! nc -q 1 membersrvc 7054 </dev/null; do sleep 1; done membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused membersrvc [172.19.0.2] 7054 (?) : Connection refused while ! nc -q 1 vp0 7050 </dev/null; do sleep 1; done vp0 [172.19.0.3] 7050 (?) : Connection refused

kavinaravind commented 7 years ago

I get the same issue, vp0_1 | sh: 1: nc: not found. Not sure how to fix this

kavinaravind commented 7 years ago

So I got that to work by adding:

image: hyperledger/fabric-peer:x86_64-1.0.0 command: "sh -c 'apt-get update && apt-get install netcat && while ! nc membersrvc 7054; do sleep 1; done; peer node start'"

to docker-compose.yml

However after running script, I now get transport: http2Server.HandleStreams failed to receive the preface from client: EOF issue upon looking at docker log file for carleasedemo_membersrvc