Hyperledger Fabric对等错误 [英] Hyperledger Fabric peer error
问题描述
我正在 ubuntu 虚拟机上运行Hyperledger.安装了超级账本的前提条件和二进制文件后,当我尝试执行"peer"命令时,它将返回:
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 "".
在我的计算机(MAC)上,该命令可以完美运行并显示命令用法说明.
On my machine (MAC) the command runs perfectly and displays the command usage description.
有什么想法吗?我尝试使用3个虚拟机,所有结果均出现相同的错误.
Any ideas? I tried with 3 virtual machines and all result to to the same error.
推荐答案
- 设置路径
FABRIC_CFG_PATH=$PWD
-
以下配置错误
- 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/peerOrganizationizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
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.
这篇关于Hyperledger Fabric对等错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!