找不到 Signcert 超级账本结构

cannot find Signcert hyperledger fabric

我正在尝试 运行 结构网络并收到以下错误。

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

我还尝试在 crypto-config 文件夹中找到该目录,但也没有在其中看到 signcerts 文件夹。我不确定

cryptogen generate --config=./crypto-config.yaml

是否生成此文件夹。

我正在使用 docker-compose 到 运行 结构网络。我有以下两个坐骑

    ../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

求推荐。

cryptogen 生成 crypto-config 目录,但为了避免您的错误。您应该 运行 通过根据您的系统路径进行更改来执行命令。

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

所以问题是,它生成的文件夹在

crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/signcert

我在看

crypto-config/peerOrganizations/org1.example.com/msp

还有一个坐骑错了。排序者的另一件事是相对映射 ./ instead of ../

感谢您的帮助@adarshJha