1

I am following the following tutorial in deploying multiorg setup https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org

got the following error when installing business network for org2

composer network install --card PeerAdmin@byfn-network-org2 --archiveFile trade-network.bna
⠸ Installing business network. This may take a minute...E0730 17:45:02.761554740   18888 ssl_transport_security.cc:599] Could not load any root certificate.
E0730 17:45:02.761598128   18888 ssl_transport_security.cc:1400] Cannot load server root certificates.
E0730 17:45:02.761622077   18888 security_connector.cc:1025] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
E0730 17:45:02.761637302   18888 secure_channel_create.cc:111] Failed to create secure subchannel for secure name 'localhost:9051'
E0730 17:45:02.761647122   18888 secure_channel_create.cc:142] Failed to create subchannel arguments during subchannel creation.
E0730 17:45:02.762833479   18888 ssl_transport_security.cc:599] Could not load any root certificate.
E0730 17:45:02.762850109   18888 ssl_transport_security.cc:1400] Cannot load server root certificates.
E0730 17:45:02.762870079   18888 security_connector.cc:1025] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
E0730 17:45:02.762882355   18888 secure_channel_create.cc:111] Failed to create secure subchannel for secure name 'localhost:10051'
E0730 17:45:02.762891922   18888 secure_channel_create.cc:142] Failed to create subchannel arguments during subchannel creation.
⠴ Installing business network. This may take a minute...E0730 17:45:02.980148814   18888 ssl_transport_security.cc:599] Could not load any root certificate.
E0730 17:45:02.980190952   18888 ssl_transport_security.cc:1400] Cannot load server root certificates.
E0730 17:45:02.980211693   18888 security_connector.cc:1025] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
E0730 17:45:02.980223506   18888 secure_channel_create.cc:111] Failed to create secure subchannel for secure name 'localhost:9051'
E0730 17:45:02.980232858   18888 secure_channel_create.cc:142] Failed to create subchannel arguments during subchannel creation.
E0730 17:45:02.981421486   18888 ssl_transport_security.cc:599] Could not load any root certificate.
E0730 17:45:02.981448334   18888 ssl_transport_security.cc:1400] Cannot load server root certificates.
E0730 17:45:02.981466312   18888 security_connector.cc:1025] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
E0730 17:45:02.981476832   18888 secure_channel_create.cc:111] Failed to create secure subchannel for secure name 'localhost:10051'
E0730 17:45:02.981486083   18888 secure_channel_create.cc:142] Failed to create subchannel arguments during subchannel creation.
✖ Installing business network. This may take a minute...
Error: Error trying install business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT
Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT
Command failed

Everything went fine when deploying the business network to org1 when doing the same step to org2 got the following error

Cœur
  • 37,241
  • 25
  • 195
  • 267
  • sounds like your 2nd org definitions - eg `"peer0.org2.example.com":` section onwards - isn't quite right? Has it got the right `tlsCACerts` pem certificate, in the correct format (like should already be the case for Org1 peers) ? Is the profile defined to use `grpcs` for org2's peers? I would compare your connection.json for the Org2 admin, with the tutorial (obviously, you're going to have a real cert pasted in to your connection profile). Also see this for ref https://stackoverflow.com/questions/49667690/ssl-transport-security-cc599-could-not-load-any-root-certificate – Paul O'Mahony Jul 30 '18 at 15:06

1 Answers1

0

just restart the channel you have created in the firstnetwork folder it solved the error for me

./byfn.sh -m restart -c channelName

just in next step i got following error

Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1

so i stoped and removed all the containers

docker stop $(docker ps -aq)

docker rm $(docker ps -aq)

so i used the following command to up the dockers everything work fine

./byfn.sh -m up -s couchdb -a