Hyperledger Fabric peer error

会有一股神秘感。 提交于 2019-12-08 10:52:21

问题


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 :

  1. Set Path FABRIC_CFG_PATH=$PWD
  2. 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

  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!