fabric-samples
fabric-samples copied to clipboard
Cannot create channel after closing the test-network by ./network.sh down command.
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.
- compose_orderer.example.com
- compose_peer0.org1.example.com
- 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.