I am trying to create a channel and I am running this command:
peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
It worked well the first time but the second time I got this error:
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode with name 'mycc' already exists