Open makefu opened 3 years ago
running sudo -u tt_rss /nix/store/hzawk0frm2s1gz1y1cfcni1kkp06hn9r-php-with-extensions-7.4.18/bin/php /var/lib/tt-rss/update.php --update-schema
seems to have fixed this.
Some Context: before the update i had the line systemd.services.tt-rss.serviceConfig.ExecStart = lib.mkForce "${pkgs.php}/bin/php /var/lib/tt-rss/update_daemon2.php";
in my configuration as it seemed to be necesary before. disabling this override resulted in a similar error :
I had the same problem and used the same solution.
We can add this to the startup script but then it would be impossible to downgrade. I don't know what the best option is.
Unrelated, maybe you'd be interested in reviewing https://github.com/NixOS/nixpkgs/pull/122095
Yikes, we just ran into this on a brand-new install on 22.11. Suggestion: have an option under the services.tt-rss API to add it to the startup script, have that option disabled by default, and give a thorough explanation that existing installs may be impossible to downgrade if enabled?
For any completely new systems this still should be enabled, however. So maybe some kind of script that goes in and checks "do we even have a database" and if not runs the script and adds it into the service for every upgrade, and if so prompts for the user to do this themselves?
Describe the bug After upgrading the system to 21.05 the tt-rss update service does not work correctly anymore, it shows
Schema version is wrong, please upgrade the database
To Reproduce Steps to reproduce the behavior:
systemctl status tt-rss
Expected behavior the tt-rss update daemon should work without manual intervention after upgrade. alternatively a workaround is described in the manual on how to perform the upgrade.
Screenshots
Additional context
Notify maintainers @symphorien @flokli
Metadata
"x86_64-linux"
Linux 5.4.105, stockholm/NixOS, unknown/21.05pre-git (Okapi)
yes
yes
nix-env (Nix) 2.3.12
/var/src/nixpkgs
Maintainer information: