IBM / todo-list-fabricV1

A todo list application using Hyperledger Fabric V1 as a data source
https://developer.ibm.com/code/patterns/create-a-to-do-list-app-using-blockchain/
Apache License 2.0
107 stars 60 forks source link

Error starting peers #5

Closed nealef closed 7 years ago

nealef commented 7 years ago

When I use docker-compose to start I see this message in all the peers and the orderer.

2017-08-17 17:31:04.548 UTC [main] main -> ERRO 001 Cannot run peer because error when setting up MSP from directory /etc/hyperledger/msp/peer/: err admin 0 is invalid, validation error Could not obtain certification chain, err A CA certificate cannot be used directly by this MSP

I am not able to workout what the message is telling me.

Also, the yaml file just specifies image: couchdb - should this be image: hyperledger-couchdb?

ishangulhane commented 7 years ago

It's working fine me. I am not able to replicate the issue. You can either use couchdb or hyperledger/fabric-couchdb image. Following are the screenshots for the same. Please provide more information on the issue and modifications.

screen shot 2017-08-17 at 12 10 04 pm screen shot 2017-08-17 at 12 17 05 pm
nealef commented 7 years ago

What does your log on orderer0 look like? Here's mine -

2017-08-17 17:30:59.686 UTC [orderer/main] main -> INFO 001 Starting orderer: Version: 1.0.1 Go version: go1.7.4 OS/Arch: linux/s390x 2017-08-17 17:30:59.691 UTC [bccsp_sw] openKeyStore -> DEBU 002 KeyStore opened at [/etc/hyperledger/msp/orderer/keystore]...done 2017-08-17 17:30:59.691 UTC [bccsp] initBCCSP -> DEBU 003 Initialize BCCSP [SW] 2017-08-17 17:30:59.691 UTC [msp] getPemMaterialFromDir -> DEBU 004 Reading directory /etc/hyperledger/msp/orderer/signcerts 2017-08-17 17:30:59.691 UTC [msp] getPemMaterialFromDir -> DEBU 005 Inspecting file /etc/hyperledger/msp/orderer/signcerts/ordererOrg1orderer1-cert.pem 2017-08-17 17:30:59.691 UTC [msp] getPemMaterialFromDir -> DEBU 006 Reading directory /etc/hyperledger/msp/orderer/cacerts 2017-08-17 17:30:59.691 UTC [msp] getPemMaterialFromDir -> DEBU 007 Inspecting file /etc/hyperledger/msp/orderer/cacerts/ordererOrg1-cert.pem 2017-08-17 17:30:59.691 UTC [msp] getPemMaterialFromDir -> DEBU 008 Reading directory /etc/hyperledger/msp/orderer/admincerts 2017-08-17 17:30:59.691 UTC [msp] getPemMaterialFromDir -> DEBU 009 Inspecting file /etc/hyperledger/msp/orderer/admincerts/ordererOrg1-cert.pem 2017-08-17 17:30:59.691 UTC [msp] getPemMaterialFromDir -> DEBU 00a Reading directory /etc/hyperledger/msp/orderer/intermediatecerts 2017-08-17 17:30:59.691 UTC [msp] getMspConfig -> DEBU 00b Intermediate certs folder not found at [/etc/hyperledger/msp/orderer/intermediatecerts]. Skipping. [stat /etc/hyperledger/msp/orderer/intermediatecerts: no such file or directory] 2017-08-17 17:30:59.692 UTC [msp] getPemMaterialFromDir -> DEBU 00c Reading directory /etc/hyperledger/msp/orderer/tlscacerts 2017-08-17 17:30:59.692 UTC [msp] getMspConfig -> DEBU 00d TLS CA certs folder not found at [/etc/hyperledger/msp/orderer/tlsintermediatecerts]. Skipping and ignoring TLS intermediate CA folder. [stat /etc/hyperledger/msp/orderer/tlscacerts: no such file or directory] 2017-08-17 17:30:59.692 UTC [msp] getPemMaterialFromDir -> DEBU 00e Reading directory /etc/hyperledger/msp/orderer/crls 2017-08-17 17:30:59.692 UTC [msp] getMspConfig -> DEBU 00f crls folder not found at [/etc/hyperledger/msp/orderer/crls]. Skipping. [stat /etc/hyperledger/msp/orderer/crls: no such file or directory] 2017-08-17 17:30:59.692 UTC [msp] getMspConfig -> DEBU 010 MSP configuration file not found at [/etc/hyperledger/msp/orderer/config.yaml]: [stat /etc/hyperledger/msp/orderer/config.yaml: no such file or directory] 2017-08-17 17:30:59.692 UTC [msp] NewBccspMsp -> DEBU 011 Creating BCCSP-based MSP instance 2017-08-17 17:30:59.692 UTC [msp] GetLocalMSP -> DEBU 012 Created new local MSP 2017-08-17 17:30:59.692 UTC [msp] Setup -> DEBU 013 Setting up MSP instance OrdererMSP 2017-08-17 17:30:59.692 UTC [msp/identity] newIdentity -> DEBU 014 Creating identity instance for ID &{OrdererMSP 5e795b639b7b0b6fdf826cd13ecc62271337bceb59effe2c61f7e6abb783465f} 2017-08-17 17:30:59.698 UTC [msp/identity] newIdentity -> DEBU 015 Creating identity instance for ID &{OrdererMSP 5e795b639b7b0b6fdf826cd13ecc62271337bceb59effe2c61f7e6abb783465f} 2017-08-17 17:30:59.702 UTC [msp/identity] newIdentity -> DEBU 016 Creating identity instance for ID &{OrdererMSP 5e795b639b7b0b6fdf826cd13ecc62271337bceb59effe2c61f7e6abb783465f} 2017-08-17 17:30:59.710 UTC [msp/identity] newIdentity -> DEBU 017 Creating identity instance for ID &{OrdererMSP a4cf0d19a3695340c0ee2fa64a6c606dd8b7495312e1e5dd8883db23207a5e7a} 2017-08-17 17:30:59.714 UTC [bccsp_sw] loadPrivateKey -> DEBU 018 Loading private key [9707908924f92bbaa5c8a6961c260dc4992ad2fd7043cccf3f3948ffbea989e1] at [/etc/hyperledger/msp/orderer/keystore/9707908924f92bbaa5c8a6961c260dc4992ad2fd7043cccf3f3948ffbea989e1_sk]... 2017-08-17 17:30:59.716 UTC [msp/identity] newIdentity -> DEBU 019 Creating identity instance for ID &{OrdererMSP a4cf0d19a3695340c0ee2fa64a6c606dd8b7495312e1e5dd8883db23207a5e7a} 2017-08-17 17:30:59.720 UTC [msp] Validate -> DEBU 01a MSP OrdererMSP validating identity 2017-08-17 17:30:59.720 UTC [orderer/main] initializeLocalMsp -> CRIT 01b Failed to initialize local MSP: admin 0 is invalid, validation error Could not obtain certification chain, err A CA certificate cannot be used directly by this MSP

ishangulhane commented 7 years ago

Logs for orderer0 : logs.txt

nealef commented 7 years ago

Is this missing the top bit of the log? It doesn’t show the same header as mine.

ishangulhane commented 7 years ago

Few lines are missing.