OS: Windows 10 Home Version 2004 64-bit
Docker Version: 19.03.8
docker-compose version: 1.25.5
When bringing up the network using ./byfn.sh up, I've encountered multiple errors loading certificates in channel creation, joining peers, and querying chaincode on peers. Anyone experience this issue and solved it?
2020-06-10 03:49:03.416 UTC [msp] loadCertificateAt -> WARN 001 Failed loading ClientOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem: no such file or directory]
2020-06-10 03:49:03.418 UTC [msp] loadCertificateAt -> WARN 002 Failed loading PeerOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem: no such file or directory]
2020-06-10 03:49:03.419 UTC [msp] loadCertificateAt -> WARN 003 Failed loading AdminOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem: no such file or directory]
2020-06-10 03:49:03.421 UTC [msp] loadCertificateAt -> WARN 004 Failed loading OrdererOU certificate at [/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem]: [could not read file /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem: open /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem: no such file or directory]
Your path description is invalid in terms of linux container environment. Instead of /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts\ca.org1.example.com-cert.pem
it should be:
/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem
The given path is relatively specified in the config.yaml
file for every MSP that is created. You can verify it there. Also, make sure that you have not changed the default docker-compose files. Otherwise, the docker volume mounts will not work correctly unless properly modified.
Please perform a ./byfn.sh down
and then start the network again with ./byfn.sh up
.