Reputation: 1144
I have setup all prerequisites on WINDOWS 10 Prof 64 BIT system.
I am trying to run hyperledger sample "balance transfer". I started the node app and when I try to register user I get an error back with following message
Failed to register the username Paresh for organization org1 with::failed Error: Invalid network configuration due to missing configuration data
I am not sure what I am missing.
Here is the full log:
[2018-03-13 20:20:04.855] [INFO] SampleWebApp - ****************** SERVER STARTED ************************
[2018-03-13 20:20:04.884] [INFO] SampleWebApp - *************** http://localhost:4000 ******************
[2018-03-13 20:20:46.938] [DEBUG] SampleWebApp - ------>>>>>> new request for /users
[2018-03-13 20:20:46.988] [DEBUG] SampleWebApp - End point : /users
[2018-03-13 20:20:46.988] [DEBUG] SampleWebApp - User name : Paresh
[2018-03-13 20:20:46.988] [DEBUG] SampleWebApp - Org name : org1
[2018-03-13 20:20:46.991] [DEBUG] Helper - getClientForOrg - ****** START org1 undefined
[2018-03-13 20:20:47.013] [DEBUG] Helper - [NetworkConfig101.js]: constructor, network_config: {"name":"balance-transfer","x-type":"hlfv1","description":"Balance Transfer Network","version":"1.0","channels":{"mychannel":{"orderers":["orderer.example.com"],"peers":{"peer0.org1.example.com":{"endorsingPeer":true,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":true},"peer1.org1.example.com":{"endorsingPeer":false,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":false},"peer0.org2.example.com":{"endorsingPeer":true,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":true},"peer1.org2.example.com":{"endorsingPeer":false,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":false}},"chaincodes":["mycc:v0"]}},"organizations":{"Org1":{"mspid":"Org1MSP","peers":["peer0.org1.example.com","peer1.org1.example.com"],"certificateAuthorities":["ca-org1"],"adminPrivateKey":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/keystore/5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8_sk"},"signedCert":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/[email protected]"}},"Org2":{"mspid":"Org2MSP","peers":["peer0.org2.example.com","peer1.org2.example.com"],"certificateAuthorities":["ca-org2"],"adminPrivateKey":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/users/[email protected]/msp/keystore/1995b11d6573ed3be52fcd7a5fa477bc0f183e1f5f398c8281d0ce7c2c75a076_sk"},"signedCert":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/users/[email protected]/msp/signcerts/[email protected]"}}},"orderers":{"orderer.example.com":{"url":"grpcs://localhost:7050","grpcOptions":{"ssl-target-name-override":"orderer.example.com","grpc-max-send-message-length":15},"tlsCACerts":{"path":"artifacts/channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt"}}},"peers":{"peer0.org1.example.com":{"url":"grpcs://localhost:7051","eventUrl":"grpcs://localhost:7053","grpcOptions":{"ssl-target-name-override":"peer0.org1.example.com"},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"}},"peer1.org1.example.com":{"url":"grpcs://localhost:7056","eventUrl":"grpcs://localhost:7058","grpcOptions":{"ssl-target-name-override":"peer1.org1.example.com"},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt"}},"peer0.org2.example.com":{"url":"grpcs://localhost:8051","eventUrl":"grpcs://localhost:8053","grpcOptions":{"ssl-target-name-override":"peer0.org2.example.com"},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt"}},"peer1.org2.example.com":{"url":"grpcs://localhost:8056","eventUrl":"grpcs://localhost:8058","grpcOptions":{"ssl-target-name-override":"peer1.org2.example.com"},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/ca.crt"}}},"certificateAuthorities":{"ca-org1":{"url":"https://localhost:7054","httpOptions":{"verify":false},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem"},"registrar":[{"enrollId":"admin","enrollSecret":"adminpw"}],"caName":"ca-org1"},"ca-org2":{"url":"https://localhost:8054","httpOptions":{"verify":false},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem"},"registrar":[{"enrollId":"admin","enrollSecret":"adminpw"}],"caName":"ca-org2"}}}
[2018-03-13 20:20:47.096] [ERROR] Helper - Failed to get registered user: Paresh with error: Error: Invalid network configuration due to missing configuration data
[2018-03-13 20:20:47.097] [DEBUG] SampleWebApp - -- returned from registering the username Paresh for organization org1
[2018-03-13 20:20:47.097] [DEBUG] SampleWebApp - Failed to register the username Paresh for organization org1 with::failed Error: Invalid network configuration due to missing configuration data
Upvotes: 4
Views: 1175
Reputation: 182
Typo error: Orgs name should be in PascalCase (Org1
instead of org1
)
Upvotes: 1