问题
I'm trying to deploy a Hyperledger 2.0.1 Network with 3 orgs, 2 peers per org and 5 RAFT orderers. All this in GCP under Container optimized OS. On my orderer nodes I observe the following Warnings:
2020-03-12 09:44:41.684 UTC [msp] loadCertificateAt -> WARN 007 Failed loading OrdererOU certificate at [/var/hyperledger/orderer/msp/cacerts\ca.industrial-cert.pem]: [could not read file /var/hyperledger/orderer/msp/cacerts\ca.industrial-cert.pem: open /var/hyperledger/orderer/msp/cacerts\ca.industrial-cert.pem: no such file or directory]
The problem has obviously to do with the wrong slash msp/cacerts\ca.industrial-cert.pem
. The file is there on the node and is accessible. Here is a part of docker-compose file:
image: hyperledger/fabric-orderer:2.0.1
environment:
- FABRIC_LOGGING_SPEC=INFO
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt,/var/hyperledger/peers/tls/ca_1.crt,/var/hyperledger/peers/tls/ca_2.crt,/var/hyperledger/peers/tls/ca_3.crt]
- ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1
- ORDERER_KAFKA_VERBOSE=true
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
Is this a bug, or I miss anything?
来源:https://stackoverflow.com/questions/60652529/backslash-problem-in-hyperledger-2-0-1-when-orderer-peer-look-for-pem-files