Re: rpc error when installing chaincode


satheesh
 

If we build chaincode using below steps repeatedly without removing .tar bundle each time, we can observe increase in bundle file size.
Eventually we encounter rpc error mentioned.

peer lifecycle chaincode package contract.tar.gz --path . --lang golang --label <label>

peer lifecycle chaincode install contract.tar.gz

I am using fabric 2.4.3

Regards,
Satheesh

On Friday, June 24, 2022, 10:56:45 PM GMT+5:30, David Enyeart <enyeart@...> wrote:


Exactly what chaincode build steps are you doing? Are you following one of the samples or docs? What component is the suspected bug in?

 

From: fabric@... <fabric@...> on behalf of satheesh via lists.hyperledger.org <ctsatheesh=yahoo.com@...>
Date: Friday, June 24, 2022 at 12:46 PM
To: Fabric <fabric@...>
Subject: [EXTERNAL] Re: [Hyperledger Fabric] rpc error when installing chaincode

Got resolution from this thread: Hyperledger Fabric Go chaincode size too big - Stack Overflow @Fabric team, Is this not a bug ? If the packaged tar is not removed, repeated builds are increasing the size of tar, eventually failing with this

ZjQcmQRYFpfptBannerStart

This Message Is From an External Sender

This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd

Got resolution from this thread:

 

 

@Fabric team,

 

Is this not a bug ? 

If the packaged tar is not removed, repeated builds are increasing the size of tar, eventually failing with this error.

 

Regards,

Satheesh

 

 

On Friday, June 24, 2022, 07:19:43 PM GMT+5:30, satheesh via lists.hyperledger.org <ctsatheesh=yahoo.com@...> wrote:

 

 

When installing chaincode in a fabric network, I get below error:

 

# peer lifecycle chaincode install contract.tar.gz

Error: failed to endorse chaincode install: rpc error: code = ResourceExhausted desc = trying to send message larger than max (122921707 vs. 104857600)

 

Strangely this happens even after I shutdown my complete vm and created the network from scratch.

 

Is there anything I am missing ? Any resource issue in the vm ?

Appreciate any pointers.

 

Regards,

Satheesh

Join fabric@lists.hyperledger.org to automatically receive all group messages.