Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After Start.sh 9 minutes wait, no chaincode deployed, still 3 containers #97

Open
deverge opened this issue Feb 22, 2017 · 3 comments
Open

Comments

@deverge
Copy link

deverge commented Feb 22, 2017

Install was ok.
I am on MAC OS Sierra 10.12.3
docker 1.13.1


$ ./start.sh

Grab the Car Lease Demo directory.

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )";
cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd
dirname "${BASH_SOURCE[0]}"

If the keyValStore exits, remove it

if [ -f $DIR/keyValStore ]
then
rm -r $DIR/keyValStore;
fi

Tag the latest version of fabric-baseimage

docker pull hyperledger/fabric-baseimage:x86_64-0.1.0
x86_64-0.1.0: Pulling from hyperledger/fabric-baseimage
Digest: sha256:ac6a2784cfd028ae62f5688f4436f95d7a60eeacd8506eb303c9c6335328c388
Status: Image is up to date for hyperledger/fabric-baseimage:x86_64-0.1.0
docker tag hyperledger/fabric-baseimage:x86_64-0.1.0 hyperledger/fabric-baseimage:latest

Clean up old docker containers

docker-compose -f $DIR/docker-compose.yml kill;
docker-compose -f $DIR/docker-compose.yml down;
Removing carleasedemo_car-lease-demo_1 ... done
Removing carleasedemo_vp0_1 ... done
Removing carleasedemo_membersrvc_1 ... done
Removing network carleasedemo_default
docker-compose -f $DIR/docker-compose.yml build;
Building membersrvc
Step 1/2 : FROM hyperledger/fabric-membersrvc:latest
---> b3654d32e4f9
Step 2/2 : COPY membersrvc.yaml ./membersrvc
---> Using cache
---> f59d40f8ca92
Successfully built f59d40f8ca92
vp0 uses an image, skipping
Building car-lease-demo
Step 1/10 : FROM node:argon
---> 66a83b6db17d
Step 2/10 : RUN apt-get -y update && apt-get -y install netcat
---> Using cache
---> f67f1bc5746c
Step 3/10 : RUN mkdir -p /usr/src/app
---> Using cache
---> 8b4429a6955f
Step 4/10 : WORKDIR /usr/src/app
---> Using cache
---> 96e9a8885450
Step 5/10 : RUN npm install -g npm
---> Using cache
---> 3bd8f4848c32
Step 6/10 : COPY package.json /usr/src/app/
---> Using cache
---> dbc901676b93
Step 7/10 : RUN npm install --quiet
---> Using cache
---> 763756f9feb5
Step 8/10 : COPY . /usr/src/app
---> 8853018a4c41
Removing intermediate container 1fc70ed7a28a
Step 9/10 : CMD sh ./Scripts/docker-startup.sh
---> Running in 3d735779ce73
---> ba32e1d2c203
Removing intermediate container 3d735779ce73
Step 10/10 : EXPOSE 8080
---> Running in b1a029cbad2c
---> f4087ecc4cc3
Removing intermediate container b1a029cbad2c
Successfully built f4087ecc4cc3
docker-compose -f $DIR/docker-compose.yml up -d ;
Creating network "carleasedemo_default" with the default driver
Creating carleasedemo_membersrvc_1
Creating carleasedemo_vp0_1
Creating carleasedemo_car-lease-demo_1


$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
790a57787a40 carleasedemo_car-lease-demo "sh ./Scripts/dock..." 9 minutes ago Up 9 minutes 0.0.0.0:8080->8080/tcp carleasedemo_car-lease-demo_1
e771ed7664f3 hyperledger/fabric-peer:latest "sh -c 'while ! nc..." 9 minutes ago Up 9 minutes 0.0.0.0:7050-7053->7050-7053/tcp carleasedemo_vp0_1
3a2fae2fc18b carleasedemo_membersrvc "membersrvc" 9 minutes ago Up 9 minutes 0.0.0.0:7054->7054/tcp carleasedemo_membersrvc_1


then i "Force" a manual start of the node app.js cmd
$ node ../app.js
peer0: grpc://vp0:7051
membersrvc: grpc://membersrvc:7054
Server Up
INFO Startup complete on port 8080


NO changes still 3 containers, no chaincode deployed, impossible to start the demo

NO ideas where to check what is wrong
Thanks for any help

@liam-grace
Copy link
Contributor

Can you post logs from the peer? That will give an indication of what is wrong

@AmusementPark
Copy link

Hi. I also meet such problem, What ever I tried, I can only have 3 containers in running...
The Container 'Dev...xxxxxx' container without PORTS info is never run.

My OS is MAC OS X EI Captain.

By the way, how to check the peer logs? Using command docker logs CONTAINER_ID?

@AmusementPark
Copy link

Wait for the Hyperledger Fabric to start.

while ! nc membersrvc 7054 </dev/null; do sleep 1; done
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused
membersrvc [172.18.0.2] 7054 (?) : Connection refused

This is the log for carleasedemomaster_car-lease-demo container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants