无法运行peer因为无法init加密

时间:2017-07-17 15:18:17

标签: blockchain hyperledger-fabric

我正在关注本教程(Art auction hyperledger fabric): https://github.com/ITPeople-Blockchain/auction

在“调用API和用法”(CLI模式)步骤中,我尝试按如下方式运行PostUsers命令:

user @ user-VirtualBox:〜/ go / src / github.com / hyperledger / fabric / build / bin $ ./peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["100", "USER", "Ashley Hart", "TRD", "Morrisville Parkway, #216, Morrisville, NC 27560", "9198063535", "ashley@itpeople.com", "SUNTRUST", "00017102345", "0234678"]}'

我收到以下错误: CEST [主要]主要 - > ERRO 001无法运行peer因为无法初始化加密,缺少/opt/gopath/src/github.com/hyperledger/fabric/msp/sampleconfig文件夹

我跑了这个命令:

export FABRIC_CFG_PATH=$PWD

现在我有以下错误:

panic: Fatal error when initializing core config : Error when reading core config file: Unsupported Config Type ""

goroutine 1 [running]:
panic(0x555f5b365cc0, 0xc4201c81f0)
    /usr/local/go/src/runtime/panic.go:500 +0x1a1
main.main()
    /home/user/go/src/github.com/hyperledger/fabric/peer/main.go:94 +0x852

1 个答案:

答案 0 :(得分:0)

截至此日期,此特定示例应用尚未针对Hyperledger Fabric v1.0进行更新。基本上您看到的错误是由于缺少样本中涉及的各种角色的msp证书。我建议您浏览hyperledger/fabric-samples,因为它们与1.0版本保持一致。