多机部署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
的问题
欢迎小伙伴的讨论,若有问题请在评论区评论或私信,谢谢你。