老师,这里报错了,我设置了path,目录下也有configtx.yaml

来源:6-2 网络搭建配置生成

慕丝6063840

2020-02-17

root@inet:~/go/src/github.com/hyperledger/fabric/imocc/deploy# configtxgen -profile OneOrgOrdererGenesis -outputBlock ./config/genesis.block
2020-02-17 13:35:18.698 CST [common/configtx/tool] main -> INFO 001 Loading configuration
2020-02-17 13:35:18.698 CST [common/configtx/tool/localconfig] Load -> CRIT 002 Error reading configuration: Unsupported Config Type ""
2020-02-17 13:35:18.698 CST [common/configtx/tool] func1 -> ERRO 003 Could not find configtx.yaml. Please make sure that FABRIC_CFG_PATH is set to a path which contains configtx.yaml
root@inet:~/go/src/github.com/hyperledger/fabric/imocc/deploy# ll
total 44
drwxrwxr-x 4 inet inet 4096 Feb 17 13:20 ./
drwxrwxr-x 7 inet inet 4096 Feb 13 14:19 …/
drwxrwxr-x 2 inet inet 4096 Feb 13 14:19 config/
-rw-rw-r-- 1 inet inet 5104 Feb 13 14:19 configtx.yaml
drwxr-xr-x 4 root root 4096 Feb 17 13:20 crypto-config/
-rw-rw-r-- 1 inet inet 4145 Feb 13 14:19 crypto-config.yaml
-rw-rw-r-- 1 inet inet 5482 Feb 13 14:19 docker-compose.yaml
-rw-rw-r-- 1 inet inet 3020 Feb 13 14:19 memo.md

写回答

1回答

自游蜗牛

2020-02-17

Could not find configtx.yaml. Please make sure that FABRIC_CFG_PATH is set to a path which contains configtx.yaml

设置下这个环境变量

0
1
慕丝6063840
这个FABRIC_CFG_PATH设置了,export FABRIC_CFG_PATH=root/go/src/github.com/hyperledger/fabric/imocc/deploy
2020-02-17
共1条回复

Hyperledger Fabric实战联盟链-企业端区块链原理精讲

兼顾区块链应用层和底层 进击区块链工程师

787 学习 · 564 问题

查看课程