I was running Hyperleddger byfn, to bring up the first network, on Mac. Each time I got this error above. What I tried so far for resolutio:
docker rm -f $(docker ps -aq) — del existing containers docker rmi -f $(docker images -a) — del existing images ./byfn.sh -m down ./byfn.sh -m generate ./byfn.sh -m up
But I keep getting the same error. Also tried executing the command line in byfn script - where the error is generated, separately on docker cli
docker exec cli peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /Users/debg/fabric-samples/first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
Error: failed to create deliver client: failed to load config for OrdererClient: unable to load orderer.tls.rootcert.file: open /Users/debg/fabric-samples/first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem: no such file or directory
But I can clearly see the .pem file on the same folder, with 755 access through all the directories in the hierarchy and the file. Can anyone please help?