![](/img/trans.png)
[英]Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp
[英]Issue with Hyperledger byfn - ERRO 002 Cannot run peer because cannot init crypto
我在 Mac 上运行 Hyperledger byfn,以启动第一个网络。 每次我在上面得到这个错误。 到目前为止我为解决方案所做的尝试:
docker rm -f $(docker ps -aq) — 删除现有容器 docker rmi -f $(docker images -a) — 删除现有图像。/byfn.sh -m down./byfn.sh -m generate. sh -m 起来
但我不断收到同样的错误。 还尝试在 byfn 脚本中执行命令行 - 生成错误的地方,分别在 docker cli
docker exec cli peer channel create -o orderer.example.com:7050 -c mychannel -f./channel-artifacts/channel.tx --tls true --cafile /Users/debg/fabric-samples/first-network/crypto -config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
错误:无法创建交付客户端:无法加载 OrdererClient 的配置:无法加载 orderer.tls.rootcert.file:打开 /Users/debg/fabric-samples/first-network/crypto-config/ordererOrganizations/example.com/ orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem:没有这样的文件或目录
但是我可以清楚地看到同一个文件夹中的.pem文件,通过层次结构中的所有目录和文件有755个访问权限。 有人可以帮忙吗?
给定路径: /Users/debg/fabric-samples/first-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
在您的cli
docker 容器内。
您能否确认证书是否正确安装到cli
容器内的该位置?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.