Git gc, failed to run repack, Out of memory

My YunoHost server

Hardware: Raspberry Pi 4 at home
YunoHost version: x.x.x
I have access to my server : Through SSH & through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
I upgraded from the same SD from a RPI3 to a RPI4 without full re-install

Description of my issue

I launched sudo yunohost app upgrade and get those warning messages:

Warning: Auto packing the repository in background for optimum performance.
Warning: See "git help gc" for manual housekeeping.
Warning: warning: The last gc run reported the following. Please correct the root cause
Warning: and remove .git/gc.log.
Warning: Automatic cleanup will not be performed until the file is removed.
Warning: fatal: Out of memory, malloc failed (tried to allocate 141475841 bytes)
Warning: fatal: failed to run repack
Warning: Auto packing the repository in background for optimum performance.
Warning: See "git help gc" for manual housekeeping.
Warning: warning: The last gc run reported the following. Please correct the root cause
Warning: and remove .git/gc.log.
Warning: Automatic cleanup will not be performed until the file is removed.
Warning: fatal: Out of memory, malloc failed (tried to allocate 141475841 bytes)
Warning: fatal: failed to run repack

What do you recommend in order to fix those warnings ?

Thanks

A full log would be better than an extract, but from the looks of it, “Out of memory” is self-explanatory. You might consider creating a swap file to extend RAM to a drive. You can check out the forum for it, I think there are tutorials in there. Avoid creating the swap file onto the SD card though, it might wear it faster.

Here is a complete log https://paste.yunohost.org/raw/ifexumurop
Message appears at “2022-10-31 22:15:26,777”

Here are my memory stats:

admin@ynh:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       117G   99G   14G  88% /
devtmpfs        1.8G     0  1.8G   0% /dev
tmpfs           1.9G   28K  1.9G   1% /dev/shm
tmpfs           768M  828K  767M   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/mmcblk0p1  505M   76M  429M  16% /boot
tmpfs           384M     0  384M   0% /run/user/1007
admin@ynh:~ $ free -h
               total        used        free      shared  buff/cache   available
Mem:           3.7Gi       767Mi       769Mi        33Mi       2.2Gi       2.8Gi
Swap:           99Mi          0B        99Mi

You can see that have some RAM available and a bit of swap

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.