You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
@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.
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,
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!
The text was updated successfully, but these errors were encountered: