can't instantiate chaincode after upgrade of new chaincode

0 votes
I have done upgrade of chaincode. Steps followed:

1.Install with new version

2.Upgrade with new version

3. Instantiate of new version(error:could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode with name 'fabcar' already exists)
May 29, 2019 by anonymous
140 views

1 answer to this question.

0 votes

The error tells that a chaincode by the name 'fabcar' already exists probably because this was instantiated when you were using the older version. Either instantiate the chaincode with a new name or delete the existing chaincode and the instantiate the chaincode as follows:

docker stop $(docker ps -aq)
docker rm -f $(docker ps -aq)
answered May 29, 2019 by Omkar
• 69,000 points

Related Questions

+1 vote
1 answer

Can't instantiate any chaincodes on peers of newly Added org

Seems like chaincode install may have been unsuccessful. Before ...READ MORE

answered Sep 20, 2018 in Blockchain by Perry
• 17,090 points
717 views
+1 vote
1 answer
0 votes
1 answer

Unalble to pull a new container after upgrading Helm.

If there are changes to roll out, ...READ MORE

answered Apr 12, 2018 in Docker by shubham
• 6,910 points
100 views
0 votes
1 answer

Get list of rownames as values after aggregating a dataframe

You can use reshape2 library: library(reshape2) data <- read.table(text="type ...READ MORE

answered Apr 17, 2018 in Data Analytics by Sahiti
• 6,290 points
53 views
0 votes
1 answer

How to read a state after writing it into a chaincode?

Data that is 'written' in chaincode is ...READ MORE

answered May 28, 2018 in Blockchain by Perry
• 17,090 points
1,037 views
0 votes
1 answer

Open new tab instead of a new window in Selenium WebDriver

The current version of Selenium do not ...READ MORE

answered Jun 22, 2018 in Selenium by Meci Matt
• 9,460 points
1,527 views
0 votes
1 answer

Can't install remote HTTP chaincode

Fabric 1.0 does not support remote paths ...READ MORE

answered Jun 27, 2018 in Blockchain by Omkar
• 69,000 points
70 views