Welcome to the Linux Foundation Forum!

Lab 4.1 : Chaincode registration failed:

peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile ${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n simple_chaincode --peerAddresses localhost:7051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt --peerAddresses localhost:9051 --tlsRootCertFiles ${PWD}/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt -c '{"function":"put","Args":["k","v"]}'
Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction 7a819af214cf74548e68e66d2ac943055652f94aba9728de358dc5bea4e85ea7: could not launch chaincode simple_chaincode_1.0:63dc749f8c0329eb6c1c468d9a31dd088065911ab74329367a3e04a508911f3f: chaincode registration failed: container exited with 254" 

Getting this error while in Lab 4.1. Did anyone else face the same issue?

Answers

  • Bobbijn
    Bobbijn Posts: 75

    @nerlekarneeraj, Hello let's see if we can get to the bottom of this. It looks like the chaincode isn't installed properly for one of the peers. A suggestion would be to retrace your steps for installing the chaincode. Keep learning. Bobbi

  • Thank you, Bobbi, for your response. I did retrace the steps but got the same error. I will try it once more from the start to check if I can proceed ahead.

Categories

Upcoming Training