Error 500 mychannel has been migrated to new lifecycle Chaincode instantiation error

+1 vote

Hello, I am following a tutorial posted on the Hyperledger Fabric site called: "commercial-paper". I have encountered a problem while instantiating chaincode on the channel.  Please have a look at the screenshots below.

Here is the screenshot of the actual error:

Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'mychannel' has been migrated to the new lifecycle, LSCC is now read-only. 

And here is the screenshot of the logs of peer and orderer of the network:

Your help will be appreciated, thank you.

If someone has successfully deployed a working commercial-paper network (PaperNet as in the example), please share your steps or guide me in this situation. 

Jan 9, 2020 in Blockchain by Aditya
• 250 points
This question can be marked solved and closed, thank you.

2 answers to this question.

+1 vote
Best answer

This error occured only because I had version differences. My docker images were of v2.0.0-beta and the tutorial chaincode (lifecycle?) and components expect us to have v1.4.4 docker images pulled.

This "lifecycle" message, if searched on the official documentation of Fabric will guide you to the "Upgrading to v2.0" page. They have certain channel capabilities and would want you to set them up before you instantiate chaincode - particularly in v2.0 of Fabric. 

I came to this conclusion looking at this GitLab code change:

ac.Capabilities().LifecycleV20() => Indicate capability check for a Lifecycle v2.0 module. 
Of course, you could always wipe out everything and start from a LTS - v1.4.4 version (since v2.0.0-beta is by its name, a beta release) ;)

answered Jan 9, 2020 by Aditya
• 250 points

selected Jan 10, 2020 by Kalgi
0 votes
Hi @Aditya, there are two possible problems that I can think of.

1. Maybe you do not have the required permissions to the mychannel file so please check those

2. Or your permissions for the previous lifecycle and the current one, might not be aligned.
answered Jan 9, 2020 by Kalgi
• 52,360 points
Thank you for time, Kalgi. I have yet to learn about the chaincode lifecycle but I eventually managed to deploy the tutorial with the v1.4.4 docker images.
Glad to help @Aditya.

All the best.

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers
+2 votes
4 answers

"failed to create new connection context deadline exceeded." error in Hyperledger Fabric

Try remove previous docker containers(have mentioned the ...READ MORE

answered Apr 24, 2019 in Blockchain by Kiran
+1 vote
1 answer

Hyperledger - How can I use transaction certificates to enforce privacy?

The transaction certificates don't actually address privacy ...READ MORE

answered Apr 17, 2018 in Blockchain by Perry
• 17,100 points
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
+1 vote
0 answers

Error 500 during instantiation of chaincode for commercial-paper example.

I am following this tutorial on setting ...READ MORE

Jan 9, 2020 in Blockchain by Aditya
• 250 points

reshown Jan 9, 2020 by Kalgi 1,628 views
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP