Reputation: 51
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
Upvotes: 5
Views: 4216
Reputation: 1274
I too observed the same error. Finally came to know the I didn't generate the certs using ./byfn.sh generate
or
../bin/cryptogen generate --config=./crypto-config.yaml
Please make sure above certs are generated in crypto-config
directory in your local machine before you spinup the network.
Upvotes: 0
Reputation: 275
I got past this point by correcting my GOPATH environment variable. I'm running on MacOS High Sierra (10.13.5) and following the tutorial led me to setting:
export GOPATH=$HOME/go
where my $HOME environment variable was set to be
/Users/<username>
My Go installation isn't located there. I corrected my GOPATH by running the following:
which go
export GOPATH=<which_go_output>
I copied the second line into my .bash_profile and removed the following line, which the tutorial also suggests:
export PATH=$PATH:$GOPATH/bin
Upvotes: 0
Reputation: 210
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.
Upvotes: 3