Bug 486871 - Can't fetch caldav or carddav from Nextcloud in Fedora 40, driver error
Summary: Can't fetch caldav or carddav from Nextcloud in Fedora 40, driver error
Status: CONFIRMED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: DAV Resource (show other bugs)
Version: 6.2.3
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-10 19:49 UTC by Christian (Fuchs)
Modified: 2025-04-01 14:26 UTC (History)
7 users (show)

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


Attachments
Error when using the setup assistant for DAV Groupware (70.00 KB, image/png)
2025-04-01 14:26 UTC, major-mayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian (Fuchs) 2024-05-10 19:49:59 UTC
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
Comment 1 Alexander Minges 2024-09-20 12:31:12 UTC
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
Comment 2 major-mayer 2024-12-10 10:15:28 UTC
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.
Comment 3 Gauthier 2025-02-21 11:11:48 UTC
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
Comment 4 Christian (Fuchs) 2025-02-21 11:16:32 UTC
(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.
Comment 5 Gauthier 2025-02-21 11:20:16 UTC
(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.
Comment 6 major-mayer 2025-02-23 19:46:55 UTC
In my case, it also doesn't work when I try to fetch the calendars in Merkuro.
Comment 7 Frank 2025-03-11 21:56:45 UTC
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.
Comment 8 Allen Winter 2025-04-01 11:14:35 UTC
Frank,
the fix doesn't land until KDE Frameworks version 6.12
Comment 9 major-mayer 2025-04-01 14:26:17 UTC
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.