Bug 451987 - Nextcloud synchronization not working
Summary: Nextcloud synchronization not working
Status: REPORTED
Alias: None
Product: korganizer
Classification: Applications
Component: groupware (show other bugs)
Version: 5.13.3
Platform: Ubuntu Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-28 10:11 UTC by Benjamin
Modified: 2022-05-03 15:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!