Bug 451987

Summary: Nextcloud synchronization not working
Product: [Applications] korganizer Reporter: Benjamin <benjamin10>
Component: groupwareAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: gjditchfield
Priority: NOR    
Version: 5.13.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Benjamin 2022-03-28 10:11:43 UTC
Hi there!
For some time now I am facing troubles with kontact and nextcloud synchronisation. Caldav synchronisation.

Connecting kontact to my nextcloud instance works nicley and all the calendar dates are downloaded. After some time synchronisation seems to stop without an obvious reason.

Problem is: I do think (but am not sure) when i try to move a calendar date from one day to another, something is stopping the sync process and nothing is syncing anymore. Closing and reopening or manually triggering the sync process does nothing at all anymore.

I have tried to install kontact from different sources but the problem persists.

Deleting and readding the caldav calendar does resync all dates but after sometime the same problem reappears.


STEPS TO REPRODUCE
1. Move a date / Create a date /  change a date
2. nothing is synced anymore



SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kubuntu 20.04
(available in About System)
KDE Plasma Version: 5.18.8 
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Comment 1 Benjamin 2022-04-04 09:54:43 UTC
Okay I tried to debug the problems...I found a working solution (seems to work will see for the future)

...Reinstalled the flatpak at flathub:
sudo flatpak install flathub org.kde.kontact

Then there seems to be a bug which is described here:
https://syve.wordpress.com/2020/05/24/akonadi-bug-qlocalsocketconnecttoserver-invalid-name/

I just did remove the databases with:
akonadictl stop
mv $HOME/.local/share/akonadi/db_data $HOME/.local/share/akonadi/db_data_old

Attention because this removes all the data and calendars! So better backup before if you are unsure.

and then readded the calendars and everything seems to work...hopefully.
Comment 2 Benjamin 2022-04-04 10:20:42 UTC
Okay the problem still exists: Any hints how to get it working? It is really annoying...

I think the problem is:

org.kde.pim.akonadicore: Akonadi Client Session: connection config file 'akonadi/akonadiconnectionrc' can not be found!
org.kde.pim.akonadicore: "QLocalSocket::connectToServer: Ungültiger Name" "/home/benji/.var/app/org.kde.kontact/data/akonadiakonadiserver-cmd.socket"
org.kde.pim.akonadicore: Failed to connect to server!
org.kde.pim.akonadicore: Akonadi Client Session: connection config file 'akonadi/akonadiconnectionrc' can not be found!
org.kde.pim.akonadicore: "QLocalSocket::connectToServer: Ungültiger Name" "/home/benji/.var/app/org.kde.kontact/data/akonadiakonadiserver-cmd.socket"
org.kde.pim.akonadicore: Failed to connect to server!