Summary: | postgresql16 fails to run after DB update from postgresql13 - errors from akonadictl start | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | BingMyBong <bingmybong> |
Component: | server | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | carl |
Priority: | NOR | ||
Version: | 5.24.2 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
BingMyBong
2023-11-06 10:14:07 UTC
(In reply to BingMyBong from comment #0) > ---------- Errors from the journal using "journalctl -xeu postgresql.service" > > Oct 31 16:24:13 Lian-Li systemd[1]: Starting PostgreSQL database server... > Subject: A start job for unit postgresql.service has begun execution > Defined-By: systemd > Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel > > A start job for unit postgresql.service has begun execution. > > The job identifier is 2241. > Oct 31 16:24:13 Lian-Li postgresql-script[5916]: Your database files were > created by PostgreSQL version 9.6. > Oct 31 16:24:13 Lian-Li postgresql-script[5916]: Could not find executables > for this version. > Oct 31 16:24:13 Lian-Li postgresql-script[5916]: Please install the > PostgreSQL server package for version 9.6. > Oct 31 16:24:13 Lian-Li systemd[1]: postgresql.service: Control process > exited, code=exited, status=1/FAILURE > Subject: Unit process exited > Defined-By: systemd > Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel > > An ExecStart= process belonging to unit postgresql.service has exited. > > The process' exit code is 'exited' and its exit status is 1. > Oct 31 16:24:13 Lian-Li systemd[1]: postgresql.service: Failed with result > 'exit-code'. > Subject: Unit failed > Defined-By: systemd > Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel There's a small misunderstanding here. Akonadi doesn't use the system postgres but runs its own instance. That's why the db lives in $HOME/.local/share/akonadi/db_data. Whatever lives in var/lib/pgsql is not your akonadi DB. > QSqlDatabase: QPSQL driver not loaded This looks more interesting. Is libQt5Sql5-postgresql installed on your system? (In reply to Christophe Marin from comment #1) > (In reply to BingMyBong from comment #0) > > There's a small misunderstanding here. Akonadi doesn't use the system > postgres but runs its own instance. > That's why the db lives in $HOME/.local/share/akonadi/db_data. Whatever > lives in var/lib/pgsql is not your akonadi DB. I know very little about postgresql so i have no idea why it started referencing that directory or file > > QSqlDatabase: QPSQL driver not loaded > > This looks more interesting. Is libQt5Sql5-postgresql installed on your > system? No, it wasn't. I've now installed it and it works fine. Would this file have been required by previous versions of postgresql? If yes, i wonder how it got uninstalled. Do you know if I can uninstall postgresql 11, 12, 13, 14 and 15 with zypper and not remove libQt5Sql5-postgresql? Thanks a lot for having a look at my problem and giving me the solution. (In reply to BingMyBong from comment #2) > > I know very little about postgresql so i have no idea why it started > referencing that directory or file If you didn't enable it yourself, you can just prevent it from starting on your system (it won't affect akonadi): sudo systemctl stop postgresql.service sudo systemctl disable postgresql.service > > > > QSqlDatabase: QPSQL driver not loaded > > > > This looks more interesting. Is libQt5Sql5-postgresql installed on your > > system? > No, it wasn't. I've now installed it and it works fine. Would this file > have been required by previous versions of postgresql? If yes, i wonder how > it got uninstalled. > Do you know if I can uninstall postgresql 11, 12, 13, 14 and 15 with zypper > and not remove libQt5Sql5-postgresql? Yes, once your database is migrated and functional, you can uninstall old versions. |