Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lapineige opened this issue Aug 2, 2021 · 4 comments · Fixed by YunoHost/yunohost#1278
Labels
bug Something isn't working

Comments

@lapineige
Copy link
Member

lapineige commented Aug 2, 2021

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
Copy link
Member Author

Wow, that was lightning fast !

Thanks !

@lapineige lapineige changed the title Upgrade (0.10 → 0.11) fails : composer upgrade being killed Upgrade fails : composer upgrade being killed (memory issue) Aug 2, 2021
@lapineige
Copy link
Member Author

lapineige commented Sep 16, 2021

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

(Yes, the memory limit parameter is active)

@lapineige
Copy link
Member Author

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 lapineige reopened this Sep 16, 2021
@lapineige lapineige changed the title Upgrade fails : composer upgrade being killed (memory issue) Upgrade fails : composer upgrade being killed (way to high memory usage issue) Sep 16, 2021
@lapineige
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant