Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bring the network up fails in Hyperledger Fabric

I am following this tutorial, and trying to build the network. However, when I tried to run this command:./ byfn.sh -m up, but I got the following error:

Error: failed to create deliver client: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem: no such file or directory

Can anyone help me with that? Thanks very much! enter image description here

like image 821
xueying.B Avatar asked Nov 07 '22 06:11

xueying.B


1 Answers

I was facing the same issue as you are facing

Error: failed to create deliver client: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem: no such file or directory

In my case I was entering my local path instead "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto" this path. So I just copied my machine path from terminal and appended to the file path this resolved my issue.

Hope this will help in your case as well.

like image 128
Ravindra Avatar answered Dec 15 '22 00:12

Ravindra