Simon Mullaney
Simon Mullaney

Reputation: 447

Error - chaincode exists

I'm getting this error when trying to start running my chaincode:

Command: composer network start -c adminCardLessor -n block-aviation-network -V 0.0.1 -A admin -C ./credentials/lessor/admin-pub.pem -f delete_me.card

Error: Error trying to start business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 2 UNKNOWN: chaincode error (status: 500, message: chaincode exists block-aviation-network)

I successfully installed my chaincode on each of my peers but can seem to start it due to the above error...

Does anyone have any experience with this error or how to resolve it?

Upvotes: 0

Views: 1957

Answers (1)

Pronoy Chaudhuri
Pronoy Chaudhuri

Reputation: 131

Because the chaincode already exists on the network, you can only upgrade it, because I am assuming the network is not starting because you made some changes. Look toward questions such as How to upgrade a chaincode after modification? and then try starting the network. This should solve your problem.

Upvotes: 2

Related Questions