admin管理员组文章数量:1642239
在执行 创建通道 的命令时
peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example.com -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile /home/user/go/src/github.com/hyperledger/fabric/scripts/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
出现以下错误:
Error:
failed to create deliver client for orderer:
failed to load config for OrdererClient:
unable to load orderer.tls.rootcert.file:
open /home/user/go/src/github/hyperledger/fabric/scripts/fabric-samples/test-network/organizations/ordererOrganizations/example/orderers/orderer.example/msp/tlscacerts/tlsca.example-cert.pem: no such file or directory
原因:
命令中的路径拼写错误
解决方法:
将
peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile \
/home/user/go/src/github/hyperledger/fabric/scripts/fabric-samples/test-network/organizations/ordererOrganizations/example/orderers/orderer.example/msp/tlscacerts/tlsca.example-cert.pem
改成
peer channel create -o localhost:7050 -c mychannel --ordererTLSHostnameOverride orderer.example -f ./channel-artifacts/mychannel.tx --outputBlock ./channel-artifacts/mychannel.block --tls --cafile \
/home/对应的用户名/go/src/github/hyperledger/fabric/scripts/fabric-samples/test-network/organizations/ordererOrganizations/example/orderers/orderer.example/msp/tlscacerts/tlsca.example-cert.pem
(虽然这个错误不用咋想就能给解决掉,但是我弄了几天才注意到这是命令中的路径拼写错误的问题,而不是配置文件的错误。。。。)
本文标签: 通道loadordererunableError
版权声明:本文标题:Fabric2.2创建通道Error:...unable to load orderer.tls.rootcert.file: open ...tlsca.example.com-cert.pem 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1729332204a1196533.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论