FS#78876 - [wallabag] upgrade will return http 500

Attached to Project: Arch Linux
Opened by Guoyi (malacology) - Friday, 23 June 2023, 18:53 GMT
Last edited by George Rawlinson (rawlinsong) - Friday, 23 June 2023, 22:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To George Rawlinson (rawlinsong)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After upgrade from 2.5.4-1 to 2.6.1-1

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

- Upgrade

- get HTTP 500

- follow archwiki

- sudo -u wallabag php bin/console --help
```
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "DoctrineFixturesBundle" from namespace "Doctrine\Bundle\FixturesBundle".
Did you forget a "use" statement for another namespace? in /usr/share/wallabag/app/AppKernel.php:50
Stack trace:
#0 /usr/share/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(446): AppKernel->registerBundles()
#1 /usr/share/wallabag/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(133): Symfony\Component\HttpKernel\Kernel->initializeBundles()
#2 /usr/share/wallabag/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(169): Symfony\Component\HttpKernel\Kernel->boot()
#3 /usr/share/wallabag/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(75): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()
#4 /usr/share/wallabag/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(149): Symfony\Bundle\FrameworkBundle\Console\Application->doRun()
#5 /usr/share/wallabag/bin/console(27): Symfony\Component\Console\Application->run()
#6 {main}
thrown in /usr/share/wallabag/app/AppKernel.php on line 50
```

Still useless
This task depends upon

Closed by  George Rawlinson (rawlinsong)
Friday, 23 June 2023, 22:22 GMT
Reason for closing:  Not a bug
Additional comments about closing:  User deviated from wiki instructions.
Comment by Guoyi (malacology) - Friday, 23 June 2023, 19:13 GMT
If I use sudo -u wallabag php bin/console doctrine:migrations:migrate --env=prod

After migration

Oops! An Error Occurred
The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
Comment by Guoyi (malacology) - Friday, 23 June 2023, 20:18 GMT
Okay, I got the reason, upgrade make the owner change to root, so maybe you need to fix it via write xxxusers correctly? Could you also add wallabag.install to make sure notice people to use commands for migration.

I always use http:http for all files, because the archwiki configure for php-fpm.d/wallabag is hard to follow

Previously AUR pkg's PKGBUILD would be a great example.
Comment by Toolybird (Toolybird) - Friday, 23 June 2023, 22:01 GMT
You've deviated from the Wiki instructions so this is somehow an Arch problem? This does *not* look like an Arch packaging bug to me.

Loading...