Bug 508515 - KOrganizer shows an error "A backgroundservice does not work"
Summary: KOrganizer shows an error "A backgroundservice does not work"
Status: RESOLVED DUPLICATE of bug 508382
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.5.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-20 12:16 UTC by Steffen W.
Modified: 2025-09-03 14:22 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
KOrganizer showing an error message instead of appointments (23.91 KB, image/png)
2025-08-20 12:16 UTC, Steffen W.
Details
KOrganizer upon starting it (43.03 KB, image/png)
2025-08-20 12:16 UTC, Steffen W.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen W. 2025-08-20 12:16:09 UTC
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.
Comment 1 Steffen W. 2025-08-20 12:16:37 UTC
Created attachment 184284 [details]
KOrganizer upon starting it
Comment 2 Steffen W. 2025-08-20 12:17:21 UTC
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
Comment 3 Steffen W. 2025-08-20 12:28:24 UTC
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()
```
Comment 4 Steffen W. 2025-08-20 12:31:24 UTC
I'm getting the exact same error message in KMail as well. The dialog behaves the same, non-responsive way, as well.
Comment 5 Steffen W. 2025-08-20 12:34:55 UTC
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.
```
Comment 6 Steffen W. 2025-08-20 13:38:28 UTC
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.
Comment 7 Steffen W. 2025-08-20 13:45:25 UTC
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.
Comment 8 Steffen W. 2025-08-20 14:24:42 UTC
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?
Comment 9 Steffen W. 2025-09-03 14:22:26 UTC

*** This bug has been marked as a duplicate of bug 508382 ***