Explore Courses Blog Tutorials Interview Questions
0 votes
in Blockchain by (12.7k points)

I'm working on this tutorial on a virtual machine Ubuntu 14.04 and I run the script ./ -m up to bring up the network. When I run this to install the chaincode

peer chaincode install -n mycc -v 1.0 -p

I get the following error

Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: Error installing chaincode code mycc:1.0(chaincode /var/hyperledger/production/chaincodes/mycc.1.0 exists))

how to fix this

1 Answer

0 votes
by (29.5k points)

Try to change chaincode name in install command, to something different, e.g:

peer chaincode install -n myNewCC -v 1.0 -p

An alternative could be to disable the execution of the, however, you will have to initialize and create the channel yourself

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers


104k users

Browse Categories