Problem Description
I am trying to deploy and invoke a chaincode on Hyperledger Fabric 2.4 using deployChaincode.sh. The chaincode installation and approval complete successfully, but when I try to invoke the chaincode using chaincodeInvokeInit, I get the following error:
Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 83cdc94eeead01384f3eeabc101a71417645997f5d895e5be48dfa773b1900b3: could not launch chaincode residentManagement_1:13e03034c9144a182ea9a37c54a8b67d0df045cff62cccfafea937a01e8471ec: chaincode registration failed: container exited with 0"
Environment Details
Hyperledger Fabric Version: 2.4
Node.js Version: 16.20.2
Operating System: Ubuntu (running inside WSL)
Chaincode Language: JavaScript
What I Have Tried
Chaincode installation, approval, and commit all succeed.
Checked that all peers and orderers are running correctly.
Verified that the chaincode package ID matches the installed chaincode.
Chaincode Installation, Approval, and Commit Logs
Checked logs for possible issues but did not find any clear errors.