【问题标题】:fabric samples first network byfn sh up Channel creation failedFabric samples first network byfn sh up 频道创建失败
【发布时间】:2020-09-30 16:33:27
【问题描述】:

频道名称:我的频道 正在创建频道... + 对等通道创建 -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer /crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem + 资源=1 + 设置 +x cat:log.txt:权限被拒绝 !!!!!!!!!!!!!!!频道创建失败!!!!!!!!!!!!!!!! ========= 错误!!!执行 End-2-End 场景失败 ===========

错误!!!!测试失败

【问题讨论】:

  • 当命令尝试cat logs.txt 时,您会收到permission denied 错误。修复文件权限问题,它会工作。还要检查log.txtowner 以及使用命令ls -lh 存在log.txt 的目录。

标签: hyperledger-fabric blockchain channel


【解决方案1】:

您收到权限被拒绝错误。如果您使用的是 Ubuntu,请键入以下命令以授予对您的结构网络所在目录的完全访问权限,

sudo chmod -R 777 'path to the first network directory'

【讨论】:

    猜你喜欢
    • 2019-05-21
    • 1970-01-01
    • 1970-01-01
    • 2019-07-26
    • 1970-01-01
    • 2019-02-04
    • 2019-01-06
    • 2018-01-25
    • 1970-01-01
    相关资源
    最近更新 更多