Hyperledger Fabric 对等错误
Hyperledger Fabric peer error
我在 ubuntu 虚拟机上 运行 Hyperledger。安装 hyperledger 先决条件和二进制文件后,当我尝试执行 'peer' 命令时,它 returns:
[main] main -> ERRO 001 Fatal error when initializing core config :
error when reading core config file: Unsupported Config Type "".
在我的机器上(MAC)命令运行完美并显示命令用法描述。
有什么想法吗?我尝试了 3 个虚拟机,结果都出现了同样的错误。
确保 FABRIC_CFG_PATH 环境变量设置为目录。在 Hyperledger Fabric docker 容器中,通常设置为 /etc/hyperledger/fabric。
可能的解决方案:
- 设置路径
FABRIC_CFG_PATH=$PWD
以下配置错误
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
您的代码中存在拼写错误。
我在 ubuntu 虚拟机上 运行 Hyperledger。安装 hyperledger 先决条件和二进制文件后,当我尝试执行 'peer' 命令时,它 returns:
[main] main -> ERRO 001 Fatal error when initializing core config :
error when reading core config file: Unsupported Config Type "".
在我的机器上(MAC)命令运行完美并显示命令用法描述。
有什么想法吗?我尝试了 3 个虚拟机,结果都出现了同样的错误。
确保 FABRIC_CFG_PATH 环境变量设置为目录。在 Hyperledger Fabric docker 容器中,通常设置为 /etc/hyperledger/fabric。
可能的解决方案:
- 设置路径
FABRIC_CFG_PATH=$PWD
以下配置错误
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
您的代码中存在拼写错误。