Gerrit 3.7 Max object size limit is 2,147,483,639 bytes fails to Push

1,705 views
Skip to first unread message

Sourav Srivastava

unread,
Feb 7, 2023, 3:21:28 AM2/7/23
to Repo and Gerrit Discussion
Hi ,

I am stuck in an issue where I am not able to push large file into gerrit.
Version Using : 3.7
I tried Changing Gerrit config file (Tried with m k g format also)
[receive]
        enableSignedPush = true
        maxObjectSizeLimit = 28000000000
[core]
        packedGitLimit = 30000000000

And the Git through Gerrit UI General tab Maximum Git object size limit page also.

But Every time getting same error. 
Is this a known Issue.
Any Solution or fix for this.

Sharing output of error while trying to push. 
Counting objects: 2081, done.
Delta compression using up to 30 threads.
Compressing objects: 100% (1974/1974), done.
error: Object too large (2,731,367,288 bytes), rejecting the pack. Max object size limit is 2,147,483,639 bytes.
error: remote unpack failed: error Object too large (2,731,367,288 bytes), rejecting the pack. Max object size limit is 2,147,483,639 bytes.
error: failed to push some refs to 'ssh://sou...@192.168.x.x:29418/Project1/media/downloads'

I tried push with --no-thin   as well.
Any update on the query and Help is highly appreciated.

Thanks & Regards,
Sourav 






Han-Wen Nienhuys

unread,
Feb 7, 2023, 4:53:53 AM2/7/23
to Sourav Srivastava, Repo and Gerrit Discussion
On Tue, Feb 7, 2023 at 9:21 AM Sourav Srivastava <sourav.s...@gmail.com> wrote:
error: Object too large (2,731,367,288 bytes), rejecting the pack. Max object size limit is 2,147,483,639 bytes.
error: remote unpack failed: error Object too large (2,731,367,288 bytes), rejecting the pack. Max object size limit is 2,147,483,639 bytes.
error: failed to push some refs to 'ssh://sou...@192.168.x.x:29418/Project1/media/downloads'


It looks like a fundamental limitation of Java. Maybe you can try to compress down the file so it is less than 2G in size?
 
--
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--

Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Paul Manicle, Liana Sebastian

Sven Selberg

unread,
Feb 7, 2023, 5:13:09 AM2/7/23
to Repo and Gerrit Discussion
On Tuesday, February 7, 2023 at 10:53:53 AM UTC+1 han...@google.com wrote:
On Tue, Feb 7, 2023 at 9:21 AM Sourav Srivastava <sourav.s...@gmail.com> wrote:
error: Object too large (2,731,367,288 bytes), rejecting the pack. Max object size limit is 2,147,483,639 bytes.
error: remote unpack failed: error Object too large (2,731,367,288 bytes), rejecting the pack. Max object size limit is 2,147,483,639 bytes.

If you need to check in such large files you should consider using git lfs.

Sourav Srivastava

unread,
Feb 8, 2023, 1:25:42 AM2/8/23
to Repo and Gerrit Discussion
Thanks Sven and Han-Wen,

for the revert and update on my query. 
I tried implementing git lfs also  on server but still getting same error.
Can you help me with some tutorial or guide me in setting up the lfs so that I can upload my files in same single git repository.
total size of my directory is 15G which I am trying to push into gerrit.

Thanks & Regards,
Sourav Srivastava
Reply all
Reply to author
Forward
0 new messages