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

Testing #110

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 went fine (from master) :)

lapineige commented 4 years ago

No it didn't : now my Pixelfed is crashed (by the cron ?). After cleaning artisan cache, I no longer have a blank page, but Pixelfed UI with a "something went wrong" message. Also I missed an error with horizon service not being recognized or something like that.

I'm removing it and restoring the backup.

yalh76 commented 4 years ago

Well, I will install one pixelfed_ynh to see if also have issues....

lapineige commented 4 years ago

I'm sorry but I have to testing server to do so, it's only my production server and I need it right now ^^

yalh76 commented 4 years ago

I'm sorry but I have to testing server to do so, it's only my production server and I need it right now ^^

No problem, I just installed a pixelfed instance and will make some tests..

yalh76 commented 4 years ago

Well.. after two days, the test instance is still up... I will try to install master version and upgrade to testing to see if there is an issue...

yalh76 commented 4 years ago

Made an installation from master and upgraded to testing. Launched several artisan commands and the instance is still OK. So if someone has time to test and upgrade ^^

lapineige commented 4 years ago

I'll try again :)

lapineige commented 4 years ago

Again, my instance went to the "Something went wrong" state :sweat_smile:

/var/log/pixelfed/pixelfed-horizon.log is kind of empty:

Horizon started successfully. [2020-05-01 08:44:36][1] Processing: App\Jobs\InboxPipeline\InboxWorker [2020-05-01 08:44:36][1] Processed: App\Jobs\InboxPipeline\InboxWorker [2020-05-01 09:06:39][1] Processing: App\Jobs\InboxPipeline\InboxWorker [2020-05-01 09:06:40][1] Failed: App\Jobs\InboxPipeline\InboxWorker [2020-05-01 09:06:40][2] Processing: App\Jobs\InboxPipeline\InboxWorker [2020-05-01 09:06:40][2] Processed: App\Jobs\InboxPipeline\InboxWorker [2020-05-01 09:06:40][3] Processing: App\Jobs\LikePipeline\LikePipeline [2020-05-01 09:06:40][3] Processed: App\Jobs\LikePipeline\LikePipeline [2020-05-01 09:35:48][4] Processing: App\Jobs\InboxPipeline\InboxWorker [2020-05-01 09:35:49][4] Processed: App\Jobs\InboxPipeline\InboxWorker

Looking at ./storage/logs/laravel.log, I see these errors:

tail -n 500 ./storage/logs/laravel.log | grep ERROR [2020-05-01 16:05:51] production.ERROR: could not find driver (SQL: select from "profiles" where "domain" is null and "username" = MyPseudo and "profiles"."deleted_at" is null limit 1) {"exception":"[object] (Illuminate\Database\QueryException(code: 0): could not find driver (SQL: select from \"profiles\" where \"domain\" is null and \"username\" = MyPseudo and \"profiles\".\"deleted_at\" is null limit 1) at /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669)

[2020-05-01 16:05:55] production.ERROR: could not find driver (SQL: select from "profiles" where "domain" is null and "username" = MyPseudo and "profiles"."deleted_at" is null limit 1) {"exception":"[object] (Illuminate\Database\QueryException(code: 0): could not find driver (SQL: select from \"profiles\" where \"domain\" is null and \"username\" = MyPseudo and \"profiles\".\"deleted_at\" is null limit 1) at /var/www/pixelfed/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669)

[2020-05-01 16:06:06] production.ERROR: The provided cwd "" does not exist. {"exception":"[object] (Symfony\Component\Process\Exception\RuntimeException(code: 0): The provided cwd \"\" does not exist. at /var/www/pixelfed/vendor/symfony/process/Process.php:336)

The same 3 errors each ~1m.

I also saw this one:

production.ERROR: Key path "file:///var/www/pixelfed/storage/oauth-public.key" does not exist or is not readable {"exception":"[object] (LogicException(code: 0): Key path \"file:///var/www/pixelfed/storage/oauth-public.key\" does not exist or is not readable at /var/www/pixelfed/vendor/league/oauth2-server/src/CryptKey.php:48)

yalh76 commented 4 years ago

Can you provide your upgrade logs ?

lapineige commented 4 years ago

https://vps.lapineige.fr/privatebin/?5358b2547b023ada#ANzoBaDkDBgb1HQpfC2vHovAu1N61jpFrLucmbBTD4g=

yalh76 commented 4 years ago

I've updated the php7.3 dependencies. That should solve production.ERROR: could not find driver I've also done a package_check and it's all ok. If someone can test an upgrade and let know if it has gone fine or not.

lapineige commented 4 years ago

Upgraded again yesterday, it didn't crash yet :)

yalh76 commented 4 years ago

well let me know if it's still ok we will merge ;)

lapineige commented 4 years ago

It's still up and running. Let's merge.