Hello All,
The peer has joined the channel and chaincode is packed on.
I have a problem with instantiating chaincode in Hyperledger fabric Network version 2:
# peer lifecycle chaincode install chaincode.tar.gz
It gives me:
2020-08-27 11:21:53.851 UTC [bccsp] GetDefault -> DEBU 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2020-08-27 11:21:53.862 UTC [bccsp] GetDefault -> DEBU 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP.
2020-08-27 11:21:53.865 UTC [bccsp_sw] openKeyStore -> DEBU 003 KeyStore opened at [/etc/hyperledger/msp/users/Admin@d.as.com/msp/keystore]...done
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 004 Reading directory /etc/hyperledger/msp/users/Admin@d.as.com/msp/signcerts
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 005 Inspecting file /etc/hyperledger/msp/users/Admin@d.as.com/msp/signcerts/Admin@d.as.com-cert.pem
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 006 Reading directory /etc/hyperledger/msp/users/Admin@d.as.com/msp/cacerts
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 007 Inspecting file /etc/hyperledger/msp/users/Admin@d.as.com/msp/cacerts/ca.d.as.com-cert.pem
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 008 Reading directory /etc/hyperledger/msp/users/Admin@d.as.com/msp/admincerts
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 009 Reading directory /etc/hyperledger/msp/users/Admin@d.as.com/msp/intermediatecerts
2020-08-27 11:21:53.865 UTC [msp] getMspConfig -> DEBU 00a Intermediate certs folder not found at [/etc/hyperledger/msp/users/Admin@d.as.com/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/msp/users/Admin@d.as.com/msp/intermediatecerts: no such file or directory]
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 00b Reading directory /etc/hyperledger/msp/users/Admin@d.as.com/msp/tlscacerts
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 00c Inspecting file /etc/hyperledger/msp/users/Admin@d.as.com/msp/tlscacerts/tlsca.d.as.com-cert.pem
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 00d Reading directory /etc/hyperledger/msp/users/Admin@d.as.com/msp/tlsintermediatecerts
2020-08-27 11:21:53.865 UTC [msp] getMspConfig -> DEBU 00e TLS intermediate certs folder not found at [/etc/hyperledger/msp/users/Admin@d.as.com/msp/tlsintermediatecerts]. Skipping. [stat /etc/hyperledger/msp/users/Admin@d.as.com/msp/tlsintermediatecerts: no such file or directory]
2020-08-27 11:21:53.865 UTC [msp] getPemMaterialFromDir -> DEBU 00f Reading directory /etc/hyperledger/msp/users/Admin@d.as.com/msp/crls
2020-08-27 11:21:53.865 UTC [msp] getMspConfig -> DEBU 010 crls folder not found at [/etc/hyperledger/msp/users/Admin@d.as.com/msp/crls]. Skipping. [stat /etc/hyperledger/msp/users/Admin@d.as.com/msp/crls: no such file or directory]
2020-08-27 11:21:53.865 UTC [msp] getMspConfig -> DEBU 011 Loading NodeOUs
2020-08-27 11:21:53.866 UTC [msp] newBccspMsp -> DEBU 012 Creating BCCSP-based MSP instance
2020-08-27 11:21:53.866 UTC [msp] New -> DEBU 013 Creating Cache-MSP instance
2020-08-27 11:21:53.866 UTC [msp] loadLocaMSP -> DEBU 014 Created new local MSP
2020-08-27 11:21:53.866 UTC [msp] Setup -> DEBU 015 Setting up MSP instance DMSP
2020-08-27 11:21:53.866 UTC [msp.identity] newIdentity -> DEBU 016 Creating identity instance for cert -----BEGIN CERTIFICATE-----
--cert--
-----END CERTIFICATE-----
2020-08-27 11:21:53.866 UTC [msp.identity] newIdentity -> DEBU 017 Creating identity instance for cert -----BEGIN CERTIFICATE-----
--cert--
-----END CERTIFICATE-----
2020-08-27 11:21:53.867 UTC [msp.identity] newIdentity -> DEBU 018 Creating identity instance for cert -----BEGIN CERTIFICATE-----
--cert--
-----END CERTIFICATE-----
2020-08-27 11:21:53.867 UTC [msp] setupSigningIdentity -> DEBU 019 Signing identity expires at 2030-08-19 07:54:00 +0000 UTC
2020-08-27 11:21:53.868 UTC [msp] GetDefaultSigningIdentity -> DEBU 01a Obtaining default signing identity
2020-08-27 11:21:53.870 UTC [grpc] Infof -> DEBU 01b parsed scheme: ""
2020-08-27 11:21:53.870 UTC [grpc] Infof -> DEBU 01c scheme "" not registered, fallback to default scheme
2020-08-27 11:21:53.870 UTC [grpc] Infof -> DEBU 01d ccResolverWrapper: sending update to cc: {[{127.0.0.1:7051 <nil> 0 <nil>}] <nil> <nil>}
2020-08-27 11:21:53.870 UTC [grpc] Infof -> DEBU 01e ClientConn switching balancer to "pick_first"
2020-08-27 11:21:53.870 UTC [grpc] Infof -> DEBU 01f Channel switches to new LB policy "pick_first"
2020-08-27 11:21:53.870 UTC [grpc] Infof -> DEBU 020 Subchannel Connectivity change to CONNECTING
2020-08-27 11:21:53.870 UTC [grpc] Infof -> DEBU 021 Subchannel picks a new address "127.0.0.1:7051" to connect
2020-08-27 11:21:53.870 UTC [grpc] UpdateSubConnState -> DEBU 022 pickfirstBalancer: HandleSubConnStateChange: 0xc000382c30, {CONNECTING <nil>}
2020-08-27 11:21:53.870 UTC [grpc] Infof -> DEBU 023 Channel Connectivity change to CONNECTING
2020-08-27 11:21:53.874 UTC [grpc] Infof -> DEBU 024 Subchannel Connectivity change to READY
2020-08-27 11:21:53.874 UTC [grpc] UpdateSubConnState -> DEBU 025 pickfirstBalancer: HandleSubConnStateChange: 0xc000382c30, {READY <nil>}
2020-08-27 11:21:53.874 UTC [grpc] Infof -> DEBU 026 Channel Connectivity change to READY
2020-08-27 11:21:53.875 UTC [grpc] Infof -> DEBU 027 parsed scheme: ""
2020-08-27 11:21:53.875 UTC [grpc] Infof -> DEBU 028 scheme "" not registered, fallback to default scheme
2020-08-27 11:21:53.875 UTC [grpc] Infof -> DEBU 029 ccResolverWrapper: sending update to cc: {[{127.0.0.1:7051 <nil> 0 <nil>}] <nil> <nil>}
2020-08-27 11:21:53.875 UTC [grpc] Infof -> DEBU 02a ClientConn switching balancer to "pick_first"
2020-08-27 11:21:53.875 UTC [grpc] Infof -> DEBU 02b Channel switches to new LB policy "pick_first"
2020-08-27 11:21:53.875 UTC [grpc] Infof -> DEBU 02c Subchannel Connectivity change to CONNECTING
2020-08-27 11:21:53.875 UTC [grpc] Infof -> DEBU 02d Subchannel picks a new address "127.0.0.1:7051" to connect
2020-08-27 11:21:53.875 UTC [grpc] UpdateSubConnState -> DEBU 02e pickfirstBalancer: HandleSubConnStateChange: 0xc0005267f0, {CONNECTING <nil>}
2020-08-27 11:21:53.875 UTC [grpc] Infof -> DEBU 02f Channel Connectivity change to CONNECTING
2020-08-27 11:21:53.877 UTC [grpc] Infof -> DEBU 030 Subchannel Connectivity change to READY
2020-08-27 11:21:53.877 UTC [grpc] UpdateSubConnState -> DEBU 031 pickfirstBalancer: HandleSubConnStateChange: 0xc0005267f0, {READY <nil>}
2020-08-27 11:21:53.877 UTC [grpc] Infof -> DEBU 032 Channel Connectivity change to READY
2020-08-27 11:21:53.878 UTC [msp.identity] Sign -> DEBU 033 Sign: plaintext: 0ACA070A6208031A0C08D1AE9EFA0510...FDFBFE160000FFFF0DCA33DD00120000
2020-08-27 11:21:53.878 UTC [msp.identity] Sign -> DEBU 034 Sign: digest: 2715703A70596B688F7C36B592747957EB324AF0B142BD3F91B1A9CFA5F30903
Error: chaincode install failed with status: 500 - error in simulation: failed to execute transaction 104b0c8f47f02adb3103a8c537f81ebd74275969a0d97aacad10f9e83bd7e33c: could not launch chaincode _lifecycle.syscc: error building chaincode: error building image: failed to get chaincode package for external build: could not get legacy chaincode package '_lifecycle.syscc': open /var/hyperledger/production/chaincodes/_lifecycle.syscc: no such file or directory
In the log of the peer - nothing interesting.
Hope someone face the same or will help solving with the issue!
Thanks in advance,
Bozhidar Ignatov