IBM / blockchain-application-using-fabric-java-sdk

Create and Deploy a Blockchain Network using Hyperledger Fabric SDK Java
https://developer.ibm.com/code/patterns
Apache License 2.0
289 stars 156 forks source link

Docker failed under Windows 10 #8

Closed hantsy closed 5 years ago

hantsy commented 6 years ago

I was using the latest Docker Toolbox 2018.06.1 under Windows 10 x64.

Following the steps in the README of this repo, when I tried to create the network by running the following command:

sh build.sh

The output info is ok, but when I ran docker ps -a and got the following info:

   docker ps  -a                                                                      
ONTAINER ID        IMAGE                                     COMMAND                
 CREATED             STATUS                      PORTS                    NAMES     
a548b8b0c91        hyperledger/fabric-peer:x86_64-1.1.0      "peer node start"      
 24 seconds ago      Exited (1) 21 seconds ago                            peer0.org2
example.com                                                                         
a4c3ab4baa8        hyperledger/fabric-peer:x86_64-1.1.0      "peer node start"      
 24 seconds ago      Exited (1) 21 seconds ago                            peer1.org1
example.com                                                                         
6029c9bd1b6        hyperledger/fabric-peer:x86_64-1.1.0      "peer node start"      
 24 seconds ago      Exited (1) 22 seconds ago                            peer1.org2
example.com                                                                         
03a8be35f58        hyperledger/fabric-peer:x86_64-1.1.0      "peer node start"      
 24 seconds ago      Exited (1) 22 seconds ago                            peer0.org1
example.com                                                                         
bf4f0888380        hyperledger/fabric-orderer:x86_64-1.1.0   "orderer"              
 26 seconds ago      Exited (1) 23 seconds ago                            orderer.ex
mple.com                                                                            
35b11a85b11        hyperledger/fabric-ca:x86_64-1.1.0        "sh -c 'fabric-ca-se…" 
 26 seconds ago      Up 24 seconds               0.0.0.0:7054->7054/tcp   ca_peerOrg

903462614f0        hyperledger/fabric-ca:x86_64-1.1.0        "sh -c 'fabric-ca-se…" 
 26 seconds ago      Up 24 seconds               0.0.0.0:8054->7054/tcp   ca_peerOrg

Some services are not running.

PS: I assigned 4G mem to the virtulbox vm when I created the machine.

hantsy commented 6 years ago

Anyone encountered the same issues?

maheshwarishikha commented 6 years ago

@hantsy , what did docker logs say?

hantsy commented 6 years ago

One of peer service node:

$ docker logs 9a76ba0de6eb
2018-09-02 10:10:42.441 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts: no such file or directory
maheshwarishikha commented 6 years ago

@hantsy - it seems to be certificate issue. As it is windows, so paths might be different than linux. Please check the paths in docker-compose.yml and modify if needed. Let me know if it helped. Thanks

hantsy commented 5 years ago

@maheshwarishikha Yes, it could be a Windows specific issue, and I have tried it in Vagrant ubuntu, it works .