Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chaincode launch is failing while upgrading peer from Hyperledger Fabric v2.5.10 to Fabric v3 #5114

Open
cclchd-soundaryaayyappan opened this issue Jan 22, 2025 · 1 comment

Comments

@cclchd-soundaryaayyappan
Copy link

cclchd-soundaryaayyappan commented Jan 22, 2025

I have a hyperledger fabric network with version 2.5.10. While trying to upgrade the network to v3, unable to launch the chaincode containers.

Chaincode launch is failing while upgrading peer from Hyperledger Fabric v2.5.10 to Fabric v3.

I have deployed a hyperledger fabric network with CA version as v1.5.13 and the peer, orderer versions as 2.5.10. Then installed asset transfer chaincodes and performed some transactions.

Next, I have stopped the orderer container, took data backup, and removed the v2.5.10 orderer container. Then using the backed up data, started the orderer with v3. After this, tried invoke and query, everything worked fine till here.

Then I planned to upgrade the peer. To do so, I took backup and started the peer with the backed up data. Peer started running fine, and it even has the details of the channel it has joined to. But related to chaincode, I am seeing an error in the peer like below,

! could not launch chaincode 'basic_1.0:29cafe2e5576ddf8ca872875fb58b46b1f501a954627b27eab72d87ed756a8be': chaincode registration failed: container exited with 2

Also, I see the chaincode container in exited status with the logs,

2025/01/21 11:19:46 Error starting asset-transfer-basic chaincode: rpc error: code = Unavailable desc = name resolver error: produced zero addresses
panic: Error starting asset-transfer-basic chaincode: rpc error: code = Unavailable desc = name resolver error: produced zero addresses

goroutine 1 [running]: log.Panicf({0xc14185?, 0x1?}, {0xc0001c3f20?, 0x0?, 0x46a405?}) /usr/local/go/src/log/log.go:439 +0x65 main.main() /chaincode/input/src/assetTransfer.go:21 +0xc8

Can anyone please guide me to upgrade my network?

Thanks in Advance!

@bestbeforetoday bestbeforetoday transferred this issue from hyperledger/fabric-samples Jan 22, 2025
@bestbeforetoday
Copy link
Member

@cclchd-soundaryaayyappan This issue looks general to Fabric rather than anything related to the samples so I've moved it to the main Fabric repository.

In case you haven't seen it already, there is information on the upgrade process in the Fabric documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants