YunoHost-Apps / pixelfed_ynh

The federated image shareing service Pixelfed for YunoHost
https://pixelfed.org/
GNU Affero General Public License v3.0
44 stars 15 forks source link

Upgrade fails : composer upgrade being killed (way to high memory usage issue) #145

Closed lapineige closed 2 years ago

lapineige commented 3 years ago

I can't upgrade, I have this error:

DEBUG ++ php7.3 /var/www/pixelfed/composer.phar update -d /var/www/pixelfed --quiet --no-interaction DEBUG /usr/share/yunohost/helpers.d/php: line 572: 27275 Killed COMPOSER_HOME="$workdir/.composer" php${phpversion} "$workdir/composer.phar" $commands -d "$workdir" --quiet --no-interaction

I don't know how to check more logs (?) to find out why…

Here I can see that it might be a memory issue error, but I have more than 1.5GB of free RAM during that operation…

lapineige commented 3 years ago

Wow, that was lightning fast !

Thanks !

lapineige commented 3 years ago

It's still happening, on a server with 2GB of RAM + 1GB of swap :(

(Yes, the memory limit parameter is active)

lapineige commented 3 years ago

Ok, I had to add 3GB of (zram) swap, and the memory usage went up to 1.8GB of RAM + 2.35GB of zram swap… so a real usage around 6GB I guess, just for composer update… I don't think that's normal.

lapineige commented 2 years ago

Composer 2 is supposed to solves this. We will need to upgrade Composer.