【问题标题】:Failed in creating Peer channel in Hyperledger Fabric在 Hyperledger Fabric 中创建 Peer 通道失败
【发布时间】:2019-02-04 18:12:16
【问题描述】:

我正在按照教程将 Hyperledger Composer 区块链业务网络部署到多个组织中的 Hyperledger Fabric:https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org

我遵循了先决条件,在执行第一步时,在成功生成通道的证书和创世块后,执行命令时:

./byfn.sh -m up -s couchdb -a

它给出了以下错误:

Channel name : mychannel
Creating channel...
2018-08-29 21:10:17.473 UTC [main] main -> ERRO 001 Cannot run peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp folder
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========

+ res=1
+ set +x
ERROR !!!! Test failed

有人知道如何解决这个问题吗?

【问题讨论】:

  • 你用的是什么操作系统?
  • Ubuntu 16.04 虚拟机

标签: hyperledger-fabric hyperledger blockchain hyperledger-composer


【解决方案1】:

确保您的GOPATH 设置正确。

看看crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp 路径存在与否。此路径位于 crypto-config 文件夹内。

有时管理员证书因 root 用户而无法访问。

【讨论】:

  • 在 crypto-config 文件夹中,我有路径 peerOrganizations/org1.example.com/users/Admin@org1.example.com 但现在当我执行相同的命令时,它会给出另一个错误:prntscr.com/kp2kp2
猜你喜欢
  • 2019-05-21
  • 1970-01-01
  • 2019-07-26
  • 2019-01-06
  • 2018-01-25
  • 2019-06-01
  • 1970-01-01
  • 2018-06-19
  • 2019-12-30
相关资源
最近更新 更多