hyperledger fabric first_network example create channel got BAD_REQUEST

好久不见. 提交于 2019-12-04 17:41:19

It might be because the certificates aren't replaced in right place. I suggest you to pull the following repo. And try running your byfn from there.

git clone -b issue-6978 https://github.com/sstone1/fabric-samples.git

What is the value of $CORE_PEER_TLS_ENABLED in your peer channel create command?

I had the same problem, and I fixed it by doing:

$ docker rmi -f $(docker images -q) 

to remove the docker images. Then, from the official website I downloaded the fabric samples, and the binaries again, the commands I used were:

git clone -b master https://github.com/hyperledger/fabric-samples.git
curl -sSL [insert link from the website] | bash -s 1.1.0-rc1

Then, it should work with you.

./byfn.sh -m restart -c (channelName) replace channel name by your own channel name if u have ran (./byfn.sh -m up) previously and if its your first time doing it then use ./byfn.sh -m up(in first-network in folder)

song chan back

When I used fabric, usually not removing docker container makes a lot of problems. So I recommend removing docker-container, use that

docker ps -aq | xargs docker rm -f

But you are careful about using another docker container.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!