成功解决:Cannot run peer because cannot init crypto, specified path “/opt/gopath…msp: no such file or

  • Post author:
  • Post category:其他



多机部署Fabric v2.2.0

时,主机2加入网络时报错如下


ERRO 001 Cannot run peer because cannot init crypto, specified path "/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist or cannot be accessed: stat /opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: no such file or directory

在这里插入图片描述

原因是没有将

虚拟机1

生成的证书和密钥文件复制到

虚拟机2

下相应的目录中,文件名为

ordererOrganizations



peerOrganizations


可以将

虚拟机1

先复制window电脑中

再由window复制到

虚拟机2



粘贴成功

再次启动网络

./addOrg3.sh up

成功解决:

Cannot run peer because cannot init crypto, specified path "/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist or cannot be accessed: stat /opt/gopath/src/github.com/hyperledger/fabric/peer/organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: no such file or directory

的问题

欢迎小伙伴的讨论,若有问题请在评论区评论或私信,谢谢你。



版权声明:本文为bean_business原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。