问题
I'm running Hyperledger on an ubuntu virtual machine. After installing hyperledger prerequisites and binaries, when I try to execute the 'peer' command, it returns:
[main] main -> ERRO 001 Fatal error when initializing core config :
error when reading core config file: Unsupported Config Type "".
On my machine (MAC) the command runs perfectly and displays the command usage description.
Any ideas? I tried with 3 virtual machines and all result to to the same error.
回答1:
Please refer to this link.
Possible solutions :
- Set Path
FABRIC_CFG_PATH=$PWD Error in following configuration
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp CORE_PEER_ADDRESS=peer0.org1.example.com:7051 CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
There is typo mistake in your code.
回答2:
Make sure FABRIC_CFG_PATH environment variable is set to a directory. In the Hyperledger Fabric docker containers, it is usually set to /etc/hyperledger/fabric.
来源:https://stackoverflow.com/questions/49551179/hyperledger-fabric-peer-error