fabric-samples icon indicating copy to clipboard operation
fabric-samples copied to clipboard

Cannot create channel after closing the test-network by ./network.sh down command.

Open foreso-GitHub opened this issue 2 years ago • 0 comments

Cannot create channel after close the test-network by ./network.sh down command.

Status: 405
{
        "error": "cannot join: channel already exists"
}

I checked the docker volume, found there were three volumes left after executing ./network.sh down command.

  1. compose_orderer.example.com
  2. compose_peer0.org1.example.com
  3. compose_peer0.org2.example.com

I fixed the problem by changing line 343,

${CONTAINER_CLI} volume rm docker_orderer.example.com docker_peer0.org1.example.com docker_peer0.org2.example.com

to

${CONTAINER_CLI} volume rm compose_orderer.example.com compose_peer0.org1.example.com compose_peer0.org2.example.com

FYI.

foreso-GitHub avatar Mar 16 '22 03:03 foreso-GitHub