SUMMARY Since re-installing a fresh Fedora 40 after using Fedora 39, I am no longer able to add my nextcloud calendar or addressbooks in akonadi. The error message shown in the window is completely useless (driver error, on German, couldn't get it to show it in English), on the console it's a bit more usefull, org.kde.pim.akonadiserver: Handler exception when handling command FetchCollections on connection akonadi_davgroupware_resource_0 (0x560355340ab0) : Hierarchical RID does not specify an existing collection org.kde.pim.davresource: Unable to fetch collections 320 "Ungültige Antwort des Treibers" STEPS TO REPRODUCE 1. Install Fedora 40 with akonadi 6.0.2 2. Try to add a nextcloud ressource, either via the built in Nextcloud setting in the drop down or by specifying the URLs manually OBSERVED RESULT You get the above error EXPECTED RESULT It works The same nextcloud instance works with other software, e.g. a still running KDE 5.* based kontact on my desktop box, davx on Android etc. Operating System: Fedora Linux 40 KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Kernel Version: 6.8.9-300.fc40.x86_64 (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i5-8265U CPU @ 1.60GHz Memory: 15.4 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 620 Manufacturer: LENOVO Product Name: 20NQS30W00 System Version: ThinkPad X390 Yoga
I experience the same issue trying to fetch CardDav or CalDav from my Nextcloud (29.0.7) installation. The English error message is: org.kde.pim.davresource: Unable to fetch collections 320 "Invalid responses from backend" Operating System: CachyOS Linux KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 Kernel Version: 6.11.0-2-cachyos-lto (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics Memory: 29.3 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: TUXEDO Product Name: TUXEDO Pulse 14 Gen1
I can confirm this error and it seems to be specific to Nextcloud servers. My logs show: org.kde.pim.akonadiserver: Handler exception when handling command FetchCollections on connection akonadi_davgroupware_resource_5 (0x5fe50fd8e1f0) : Hierarchical RID does not specify an existing collection The German error message is the same as reported by @Christian and also appears when you try to add the server again and test the connection. My other connection to a Horde-based Dav server works without problems in Korganizer. On the other hand, I have no troubles synchronizing to my Nextcloud using DavX5 on Android. So I think it's a Nextcloud-specific bug within Akonadi.
I wonder, did you try to add the resource via Merkuro (Settings > Accounts)? For me Nextcloud Calendars work just fine from there. Operating System: Fedora Linux 41 KDE Plasma Version: 6.3.0 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 Kernel Version: 6.12.13-200.fc41.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 PRO 6650U with Radeon Graphics Memory: 30.7 GiB of RAM Graphics Processor: AMD Radeon Graphics
(In reply to Gauthier from comment #3) > I wonder, did you try to add the resource via Merkuro (Settings > Accounts)? > For me Nextcloud Calendars work just fine from there. Yes. As I wrote in the other bug report, the issue is in the underlying akonadi. You can add it via korganizer, via merkuro (just tried again) or akonadiconsole, same error message. They all use the same logic, and the flaw is in there. As it doesn't affect all users, my best guess would be either some localization or it having issues with certain web setups (e.g. well-known ressources etc.), but since the error message is most unhelpful and there being no decent logs, it's very hard to pinpoint.
(In reply to Christian (Fuchs) from comment #4) > (In reply to Gauthier from comment #3) > > I wonder, did you try to add the resource via Merkuro (Settings > Accounts)? > > For me Nextcloud Calendars work just fine from there. > > Yes. As I wrote in the other bug report, the issue is in the underlying > akonadi. You can add it via korganizer, via merkuro (just tried again) or > akonadiconsole, same error message. They all use the same logic, and the > flaw is in there. > As it doesn't affect all users, my best guess would be either some > localization or it having issues with certain web setups (e.g. well-known > ressources etc.), but since the error message is most unhelpful and there > being no decent logs, it's very hard to pinpoint. Makes sense. I asked only because in my case it (very strangely) doesn't work when adding via Organiser but does when adding via Merkuro! I can't make sense of it since as you say they both use the same logic and the calendar setting UI is identical. But unfortunately your case seems different.
In my case, it also doesn't work when I try to fetch the calendars in Merkuro.
Exactly the same problem on Nextcloud 30.0.6.2 Operating System: Manjaro Linux KDE Plasma Version: 6.3.2 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 Kernel Version: 6.13.0-3-rt5-MANJARO (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i5-7Y54 CPU @ 1.20GHz Memory: 15.5 GiB of RAM Graphics Processor: Intel® HD Graphics 615 Manufacturer: TUXEDO Computers Product Name: TUXEDO InfinityBook 14v1 Synopsis: DavX on Android works. On this box it does not matter how I try to add the dav resource, via kontacts, via akonadiconsole, as manual dav resource, merkuro, all same errors as described in this bugreport. It was working before I tried to reinstall the calendar, so the incompatibility is in the detection likely and it seems an akonadi incompatibility.
Frank, the fix doesn't land until KDE Frameworks version 6.12
Created attachment 179911 [details] Error when using the setup assistant for DAV Groupware Even with KDE Frameworks 6.12, I still get the same error message.
Hi, this bug is still present with KDE Frameworks 6.14, I still get the same error message. However, it recently came up on Opensuse Tumbleweed 20250513 (or a bit earlier). So something else than Frameworks?
Are you saying that it works for you on Opensuse Tumbleweed 20250513 but doesn't work with Fedora? It might be that you need to remove the nextcloud calendar on your existing Fedora setup and then add it back again. there could be some bogus settings that need to be refreshed.
Well, the last days it did not work on Tumbleweed, now it works again. There is some random behavior in it, which I cannot reproduce. Sorry for the noise.
This appears to be fixed now, out of interest, could you link the change / commit that did fix it? Can't say which version exactly contained the fix, but in F42 with frameworks 6.14.0 I can fetch from my Nextcloud again.
the fix was in kdav commit ce2b60fd8d4f1de5a1de7f2dcc45f7e98177d8af however, that fix was included with frameworks 6.12 so it should have been working for you since a few months. dunno
When I tried to add my Nextcloud Calendar using the setup assistant, the same driver error as before occurred when I tried to "test the connection". However, I could still add and manually update the calendar later in the calendar sources settings. Then the events actually occurred in KOrganizer and Merkuro. Still the logs show a few errors, I am not sure how critical they are: 02.06.25 15:30 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchCollections on connection akonadi_davgroupware_resource_11 (0x5b9ab67c5ee0) : Hierarchical RID does not specify an existing collection 02.06.25 15:30 akonadi_davgroupware_resource QFile::remove: Empty or null file name 02.06.25 15:30 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Impossible to remove "/home/laurenz/.config/akonadi/agent_config_akonadi_davgroupware_resource_11" 02.06.25 15:30 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Impossible to remove config file "/home/laurenz/.config/akonadi_davgroupware_resource_11rc" 02.06.25 15:30 akonadi_control org.kde.pim.akonadicontrol: ProcessControl: Application "/usr/bin/akonadi_davgroupware_resource" stopped unexpectedly ( "Der Prozess ist abgestürzt" ) 02.06.25 15:30 akonadi_control org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_davgroupware_resource' crashed. No restart! 02.06.25 15:30 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchCollections on connection akonadi_davgroupware_resource_12 (0x5b9ab67c5ee0) : Hierarchical RID does not specify an existing collection 02.06.25 15:30 akonadi_davgroupware_resource QFile::remove: Empty or null file name 02.06.25 15:30 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Impossible to remove "/home/laurenz/.config/akonadi/agent_config_akonadi_davgroupware_resource_12" 02.06.25 15:30 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Impossible to remove config file "/home/laurenz/.config/akonadi_davgroupware_resource_12rc" 02.06.25 15:30 akonadi_control org.kde.pim.akonadicontrol: ProcessControl: Application "/usr/bin/akonadi_davgroupware_resource" stopped unexpectedly ( "Der Prozess ist abgestürzt" ) 02.06.25 15:30 akonadi_control org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_davgroupware_resource' crashed. No restart! 02.06.25 15:31 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchCollections on connection akonadi_davgroupware_resource_13 (0x5b9ab679e170) : Hierarchical RID does not specify an existing collection 02.06.25 15:31 akonadi_davgroupware_resource QFile::remove: Empty or null file name 02.06.25 15:31 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Impossible to remove "/home/laurenz/.config/akonadi/agent_config_akonadi_davgroupware_resource_13" 02.06.25 15:31 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Impossible to remove config file "/home/laurenz/.config/akonadi_davgroupware_resource_13rc" 02.06.25 15:31 akonadi_control org.kde.pim.akonadicontrol: ProcessControl: Application "/usr/bin/akonadi_davgroupware_resource" stopped unexpectedly ( "Der Prozess ist abgestürzt" ) 02.06.25 15:31 akonadi_control org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_davgroupware_resource' crashed. No restart! 02.06.25 15:31 korganizer beginResetModel called on Akonadi::TodoModel(0x611d414b8930, name = "TodoModel") without calling endResetModel first 02.06.25 15:31 korganizer endResetModel called on Akonadi::TodoModel(0x611d414b8930, name = "TodoModel") without calling beginResetModel first 02.06.25 15:31 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchCollections on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) : Hierarchical RID does not specify an existing collection 02.06.25 15:31 akonadi_davgroupware_resource QWindow::fromWinId(): platform plugin does not support foreign windows. 02.06.25 15:32 akonadi_davgroupware_resource QWindow::fromWinId(): platform plugin does not support foreign windows. 02.06.25 15:33 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchItems on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:33 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchItems on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:33 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchItems on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:33 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchItems on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:33 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchItems on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:33 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchItems on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:33 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchItems on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:33 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchItems on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:35 akonadi_davgroupware_resource org.kde.pim.davresource: Unable to fetch collections 320 "Ungültige Antwort des Treibers" 02.06.25 15:35 korganizer beginResetModel called on Akonadi::TodoModel(0x5f0f48c35c60, name = "TodoModel") without calling endResetModel first 02.06.25 15:35 korganizer endResetModel called on Akonadi::TodoModel(0x5f0f48c35c60, name = "TodoModel") without calling beginResetModel first
And now, the calendar disappeared again completely from the Calendar list in Merkuro and KOrganizer. It seems like there is still something going wrong: 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:37 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Failed to retrieve collection for sync: "Collection does not exist" [...] 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:37 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Failed to retrieve collection for sync: "Collection does not exist" 02.06.25 15:37 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Failed to retrieve collection for sync: "Collection does not exist" 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection akonadi_davgroupware_resource_14 (0x5b9ab679e060) 02.06.25 15:37 akonadi_davgroupware_resource org.kde.pim.akonadiagentbase: Failed to retrieve collection for sync: "Collection does not exist" 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection ETMCalendar (0x5b9ab679df50) : Item query returned empty result set 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection ETMCalendar (0x5b9ab679df50) 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection ETMCalendar (0x5b9ab6740750) : Item query returned empty result set 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection ETMCalendar (0x5b9ab6740750) 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection ETMCalendar (0x5b9ab6740750) : Item query returned empty result set 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection [...] 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection ETMCalendar (0x5b9ab6740750) 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection ETMCalendar (0x5b9ab679df50) : Item query returned empty result set 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection ETMCalendar (0x5b9ab679df50) : Item query returned empty result set 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection ETMCalendar (0x5b9ab679df50) : Item query returned empty result set 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection ETMCalendar (0x5b9ab679df50) : Item query returned empty result set 02.06.25 15:37 akonadiserver org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection ETMCalendar (0x5b9ab679df50)
maybe try a manual setup rather than going through the wizard
Seems to do the trick, at least when using Nextcloud 31 as the server. For now, the calendar remains visible in KOrganizer and Merkuro. I will open a new issue if that changes again in the future.
I have the very same problem on a Gentoo system. Here kdav-6.15.0 is installed. Regardless whether I go through the wizard or add a Nextcloud DAV resource manually the behaviour always is as follows: - wizard or manually adding succeed - when I manually fetch the collections for CardDAV or CalDAV all addressbooks and calendars are there - however, in akonadiconsole the resources always show as "offline", in korganizer the calendars do not show up - the same happens, BTW, also with a SOGo calendar, so this is not Nextcloud specific I also manually on the console deleted everything related to akonadi (in .local/, .config/, .cache/) but this did not change anything. All akonadi_davgroupware_resource just show offline. There is an error message (here shown for the case when I restart one of the agents): org.kde.pim.akonadicontrol: Restarting application '/usr/bin/akonadi_davgroupware_resource'. org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f67ec181fb0) ) org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f67ec181fb0) identified as "AgentBaseChangeRecorder - 94830372768496" org.kde.pim.akonadiserver: Handler exception when handling command FetchCollections on connection akonadi_davgroupware_resource_2 (0x55acda1ffa10) : Hierarchical RID does not specify an existing collection