[英]cannot find Signcert hyperledger fabric
i am trying to run the fabric network and getting the following error. 我正在尝试运行结构网络并收到以下错误。
peer1.org2.example.com | 2019-08-09 19:37:30.561 UTC [main] InitCmd ->
ERRO 001 Cannot run peer because error when setting up MSP of type bccsp
from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate
from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts:
no such file or directory
I also tried to find the directory in the crypto-config folder and don't see signcerts folder there as well. 我还尝试在crypto-config文件夹中找到该目录,并且在那里也看不到signcerts文件夹。 I am not sure if
我不确定
cryptogen generate --config=./crypto-config.yaml
generates this folder or not. 是否生成此文件夹。
I am using docker-compose to run the fabric network. 我正在使用docker-compose运行结构网络。 and I have following two mounts
我有以下两个坐骑
../crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp
../crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls
Please suggest. 请提出建议。
cryptogen generates the crypto-config directory but to avoid your error. cryptogen会生成crypto-config目录,但要避免您的错误。 you should run following commands by making changes according to your system path.
您应该通过根据系统路径进行更改来运行以下命令。
docker exec -it cli bash docker exec -it cli bash
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
CORE_PEER_LOCALMSPID="Org1MSP"
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
So the issue was, the folder it generates is inside the 所以问题是,它生成的文件夹位于
crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/signcert
and i was looking in the 我在看
crypto-config/peerOrganizations/org1.example.com/msp
also one mount was wrong. 一个坐骑也错了。 Another things with orderer was relative mapping
./ instead of ../
订购者要注意的另一件事是相对映射
./ instead of ../
Thanks for your help @adarshJha 感谢您的帮助@adarshJha
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.