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

fix_services #116

Closed yalh76 closed 4 years ago

yalh76 commented 4 years ago

Problem

Solution

PR Status

Package_check results


Build Status

lapineige commented 4 years ago

Upgrade of php dependencies seems to take too long:

Info: [######+.............] > Updating php dependencies... Warning: ynh_composer__2: line 9: 18923 Killed COMPOSER_HOME="$workdir/.composer" php${phpversion} "$workdir/composer.phar" $commands -d "$workdir" --quiet --no-interaction Warning: [Error] Upgrade failed.

I wonder if I don't have a general issue in my system :thinking:

yalh76 commented 4 years ago

During my tests, several times, I've seen errors during the composer part. Mainly because composer download a lot of stuff at github... And if you retry it will work...

So let's try when you have time. And if it fails, launch the upgrade from the command line with --debug, you will see what's happen during composer

lapineige commented 4 years ago

What is strange is that it's the first time I experience that this php composer upgrade takes forever, and that the process is killed in the end. And I tried 5 times.

I'll try again with --debug.

lapineige commented 4 years ago

Still fails, same issue… :(

The process takes too long, and is killed.

222820 DEBUG ++ ynh_handle_getopts_args --phpversion=7.3 --workdir=/var/www/pixelfed --commands=update 222820 DEBUG ++ set +o xtrace
222820 DEBUG ++ workdir=/var/www/pixelfed
222820 DEBUG ++ phpversion=7.3
222820 DEBUG ++ COMPOSER_HOME=/var/www/pixelfed/.composer
222820 DEBUG ++ php7.3 /var/www/pixelfed/composer.phar update -d /var/www/pixelfed --no-interaction
227328 DEBUG Do not run Composer as root/super user! See https://getcomposer.org/root for details
228229 DEBUG Loading composer repositories with package information
229932 DEBUG Updating dependencies (including require-dev)
2850622 DEBUG ynh_composer__2: line 9: 27201 Killed COMPOSER_HOME="$workdir/.composer" php${phpversion} "$workdir/comp oser.phar" $commands -d "$workdir" --no-interaction
2850929 DEBUG + ynh_exit_properly

yalh76 commented 4 years ago

an you check how is the memory of you YunoHost whit the command: free

lapineige commented 4 years ago

I can't really, as the load goes up to >35 and the connection is almost closed… it's not responding enough to get the memory info. But I didn't see anything strange afterwards… I'll check again :thinking:

yalh76 commented 4 years ago

@lapineige do we merge ?

lapineige commented 4 years ago

I'll trust you on this one. I'm merging