Created attachment 184283 [details] KOrganizer showing an error message instead of appointments After updating from KOrganizer 25.04.3-1to 25.08.0-1, the latter being 6.5.0 according to the about dialog, the program does not show me any of my appointments but instead shows me an error message saying "A required backgroundservice does not work. See FAQ for hints to solve the problem". There is a "Details" button but clicking it does nothing. Also the word "FAQ" looks like a link but clicking it also does nothing. I attached two screenshots showing KOrganizer during startup and the subsequent error message. There are also no appointments shown when clicking the date and time applet.
Created attachment 184284 [details] KOrganizer upon starting it
This is on Operating System: Arch Linux KDE Plasma Version: 6.4.4 KDE Frameworks Version: 6.17.0 Qt Version: 6.9.1 Kernel Version: 6.16.1-arch1-1 (64-bit) Graphics Platform: Wayland
Output when running it from a terminal: ``` korganizer beginResetModel called on Akonadi::TodoModel(0x55fcbd100d30, name = "TodoModel") without calling endResetModel first beginResetModel called on QIdentityProxyModel(0x55fcbd0fb860) without calling endResetModel first beginResetModel called on TodoViewSortFilterProxyModel(0x55fcbd185f30) without calling endResetModel first endResetModel called on Akonadi::TodoModel(0x55fcbd100d30, name = "TodoModel") without calling beginResetModel first endResetModel called on QIdentityProxyModel(0x55fcbd0fb860) without calling beginResetModel first endResetModel called on TodoViewSortFilterProxyModel(0x55fcbd185f30) without calling beginResetModel first org.kde.pim.pimcommonactivities: Plasma activities is not running: 1 org.kde.pim.akonadicalendar: Search failed: "" org.kde.pim.akonadicore: Failed to fetch tags: "" org.kde.pim.akonadicore: Job error: "" for collection: QList() ```
I'm getting the exact same error message in KMail as well. The dialog behaves the same, non-responsive way, as well.
This is what it says in journalctl after launching both KMail and KOrganizer subsequently: ``` Aug 20 14:29:15 systemd[1408]: Started KMail - E-Mail-Programm. Aug 20 14:29:15 systemd[1408]: Created slice Slice /app/dbus-:1.1-org.freedesktop.Akonadi.Control. Aug 20 14:29:15 systemd[1408]: Started dbus-:1.1-org.freedesktop.Akonadi.Control@0.service. Aug 20 14:29:15 akonadi_control[20552]: org.kde.pim.akonadicontrol: Service org.freedesktop.Akonadi.Control.lock already registered, terminating now. Aug 20 14:30:05 kmail[20527]: org.kde.pim.pimcommonactivities: Plasma activities is not running: 1 Aug 20 14:30:35 kmail[20527]: org.kde.pim.akonadicore: Job error: "" for collection: QList() Aug 20 14:30:35 kmail[20527]: org.kde.pim.akonadicore: Job error: "" for collection: QList() Aug 20 14:30:35 kmail[20527]: org.kde.pim.messagelist: Failed to load tags "" Aug 20 14:30:35 kmail[20527]: org.kde.pim.kmail: "" Aug 20 14:30:35 kmail[20527]: org.kde.pim.mailcommon: failed to retrieve tags "" Aug 20 14:30:57 systemd[1408]: app-org.kde.kmail2@ab262656ec6a403ca7c7f6f8cbea05de.service: Consumed 1.618s CPU time, 290.3M memory peak. Aug 20 14:33:41 systemd[1408]: Started KOrganizer - Persönliche Daten organisieren. Aug 20 14:33:42 korganizer[20897]: beginResetModel called on Akonadi::TodoModel(0x55b9a5b02cd0, name = "TodoModel") without calling endResetModel first Aug 20 14:33:42 korganizer[20897]: beginResetModel called on QIdentityProxyModel(0x55b9a5b023a0) without calling endResetModel first Aug 20 14:33:42 korganizer[20897]: beginResetModel called on TodoViewSortFilterProxyModel(0x55b9a5bc5c30) without calling endResetModel first Aug 20 14:33:42 korganizer[20897]: endResetModel called on Akonadi::TodoModel(0x55b9a5b02cd0, name = "TodoModel") without calling beginResetModel first Aug 20 14:33:42 korganizer[20897]: endResetModel called on QIdentityProxyModel(0x55b9a5b023a0) without calling beginResetModel first Aug 20 14:33:42 korganizer[20897]: endResetModel called on TodoViewSortFilterProxyModel(0x55b9a5bc5c30) without calling beginResetModel first Aug 20 14:33:42 korganizer[20897]: org.kde.pim.pimcommonactivities: Plasma activities is not running: 1 Aug 20 14:34:11 korganizer[20897]: org.kde.pim.akonadicalendar: Search failed: "" Aug 20 14:34:11 korganizer[20897]: org.kde.pim.akonadicore: Failed to fetch tags: "" Aug 20 14:34:11 korganizer[20897]: org.kde.pim.akonadicore: Job error: "" for collection: QList() Aug 20 14:34:14 systemd[1408]: app-org.kde.korganizer@3dc68fcdde954944a8fb025713e3c2b1.service: Consumed 2.904s CPU time, 80.1M memory peak. ```
After looking into Akonadi for a bit, this seems to be a duplicate of https://bugs.kde.org/show_bug.cgi?id=508382 with two differences: I'm using Arch Linux, not KDE Neon and I don't get an error when running kinfo.
I ran akonadictl vacuum, this is the output: >vacuuming database, that'll take some time and require a lot of temporary disk space... >optimizing table SchemaVersionTable... >optimizing table ResourceTable... >optimizing table CollectionTable... >optimizing table MimeTypeTable... >optimizing table PimItemTable... >optimizing table FlagTable... >optimizing table PartTypeTable... >optimizing table PartTable... >optimizing table CollectionAttributeTable... >optimizing table TagTypeTable... >optimizing table TagTable... >optimizing table TagAttributeTable... >optimizing table TagRemoteIdResourceRelationTable... >optimizing table PimItemFlagRelation... >optimizing table PimItemTagRelation... >optimizing table CollectionMimeTypeRelation... >optimizing table CollectionPimItemRelation... >vacuum done I then ran akonadictl fsck --verbose, this is the output: > 1/19 Looking for collections not belonging to a valid resource... >Failed to query orphaned collections, skipping test > 2/19 Checking collection tree consistency... > 3/19 Looking for items not belonging to a valid collection... >Failed to query orphaned items, skipping test > 4/19 Looking for item parts not belonging to a valid item... >Failed to query orphaned parts, skipping test > 5/19 Looking for item flags not belonging to a valid item... >Failed to query orphaned item flags, skipping test > 6/19 Looking for duplicate item flags... >Error while trying to remove duplicate Flags > 7/19 Looking for duplicate mime types... >Error while trying to remove duplicate MimeTypes > 8/19 Looking for duplicate part types... >Error while trying to remove duplicate PartTypes > 9/19 Looking for duplicate tag types... >Error while trying to remove duplicate TagTypes >10/19 Looking for overlapping external parts... >Failed to query overlapping parts, skipping test >11/19 Verifying external parts... >Found 15627 external files. >Failed to query existing parts, skipping test >12/19 Checking size threshold changes... >Failed to query parts larger than threshold, skipping test >13/19 Looking for dirty objects... >Failed to query collections without RID, skipping test >14/19 Looking for rid-duplicates not matching the content mime-type of the parent collection >15/19 Migrating parts to new cache hierarchy... >No external parts in legacy location, skipping migration >16/19 Making sure virtual search resource and collections exist >Failed to create Search resource. >17/19 Looking for resources in the DB not matching a configured resource... >ERROR: Couldn't talk to 1 >18/19 Checking search index consistency... >Failed to query collections, skipping test >19/19 Flushing collection statistics memory cache... >Consistency check done. > Neither of these had any effect, all programs are still showing the same error.
Not sure how, but it seems like installing and launching akonadiconsole fixed it? I started it, it reported several issues with the database - mainly it wasn't able to connect through the socket - and the same error as the other applications, when I then tried to investigate this database socket file issue I kill -7'd all akonadi processes and then I launched kmail again, this time I just got a message that said that the background service isn't running and below that a "Start" button. I clicked it and everything started to work. Of note: I did the same thing, kill -7ing the akonadi processes, a few times during the day without that doing anything so this must've had something to do with the akonadiconsole application?
*** This bug has been marked as a duplicate of bug 508382 ***