0
votes

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?

1
That error suggests that the network with that exact name and version is already started - check if you have docker containers running for that version with docker ps - R Thatcher
I'm not using docker unfortunately - I'm using the starter plan as a test enviroment, using the starter kit to deploy it. It says the chaincode is installed on the peers, but it says its Not Running. I just dont know how to get it running on other peers rather than the one that was used to set up the network (org1). - Simon Mullaney
I encountered the same error even when incrementing the chaincode version. - Marcello Romani

1 Answers

2
votes

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.