Welcome to the Linux Foundation Forum!

LAB 4.1: chaincode registration failed: container exited with 1

I have launched the test network and followed the complete chaincode lifecycle. When I querycommitt the chaincode, I get the desired output but I am unable to invoke the chaincode. I have attached the docker logs of peer as well, what could be the possible reason for the same.


  • Bobbijn
    Bobbijn Posts: 138

    @ayushj1912, Hello, let 's see if we can get to the bottom of this. One suggestion would be to make sure the chaincode is properly installed on all the peers. The system will let you approve and commit chaincode without it being installed on all peers. Let me know if this helps. Bobbi

  • ayushj1912
    ayushj1912 Posts: 4

    Do I need to package the chaincode seperately fpr each peer or a comman package works for all the peers? I have used a common package, then peer lifecycle chaincode install on each peer seperately, then approve the packageid for each org seperately and then committed it via a peer

  • ayushj1912
    ayushj1912 Posts: 4

    Thanks for your help @Bobbijn, I was able to spot the error, there was some mistake in chaincode folder layout.


Upcoming Training