Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hyperledger fabric hyperledger结构-crytogen工具存在问题_Hyperledger Fabric - Fatal编程技术网

Hyperledger fabric hyperledger结构-crytogen工具存在问题

Hyperledger fabric hyperledger结构-crytogen工具存在问题,hyperledger-fabric,Hyperledger Fabric,我想创建hyperledger结构网络并创建我的crypto-config.yaml。但在下一步中,根据文件,我运行以下命令: export FABRIC_CFG_PATH=$PWD mkdir channel-artifacts configtxgen -profile ThreeOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block 但我得到了这个信息: 2020-01-22 14:33:12.289+0330[常

我想创建hyperledger结构网络并创建我的crypto-config.yaml。但在下一步中,根据文件,我运行以下命令:

export FABRIC_CFG_PATH=$PWD
mkdir channel-artifacts
configtxgen -profile ThreeOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
但我得到了这个信息:

2020-01-22 14:33:12.289+0330[常用/工具/配置TXGEN]主->警告 001不推荐省略configtxgen的通道ID。明确地 将来需要传递通道ID,默认为 “testchainid”。2020-01-22 14:33:12.289 +0330 [常用/工具/配置TXGEN]主->信息002加载配置 2020-01-22 14:33:12.290+0330[通用/工具/配置txgen/localconfig] LoadTopLevel->CRIT 003读取配置时出错:不支持 配置类型“”2020-01-22 14:33:12.290+0330 [common/tools/configtxgen]func1->ERRO 004找不到 configtx.yaml。请确保FABRIC\u CFG\u PATH或--configPath 设置为包含configtx.yaml的路径


我的错在哪里?我能做些什么来修复它?

第一个警告是正确的,但您可以避免它

让我们关注一下

ERRO 004 Could not find configtx.yaml. Please make sure that FABRIC_CFG_PATH or --configPath is set to a path which contains configtx.yaml
消息很清楚:您缺少configtx.yaml。
您的Fabric文件夹中是否有此文件?这是生成加密资料所必需的。

如错误中所述,configtx.yaml文件丢失。路径未指定

您应该从configtx.yaml所在的目录中尝试该命令。

运行以下命令:

导出结构\u CFG\u路径=


在执行上述命令后,您可以尝试使用cryptogen

是的,我已多次检查,是否有必要的位置?将其放置在您正在使用的脚本的同一目录中:)