Korganizer saves in Nextcloud only after Akonadi restart

Hello,

I use Kubuntu 26.04 and my own private remote Nextcloud instance. Before, I edited my calendar items in Korganizer and they were synchronized quickly. At some point (I don’t know if it is since the upgrade to Kubuntu 26.04), the new items start being saved in Nextcloud only if I do akonadictl restart or if I restart the Nextcloud account in Korganizer settings.

Scenario:

  • Start the machine (I have auto-login)
  • Programs are restored.
  • In a console, I do QT_LOGGING_RULES=".=true;qt.*=false" akonadictl restart | tee /tmp/a.log to have the logs. It behaves the same way without this step.
  • In the windows, I have a popup “KDE wallet Service” telling me that KDE needs the access to “kdewallet” wallet and requires its password. I enter it.
  • Open KOrganizer. Create a new item “Test1” in one of the remote calendars.
  • Open in a browser the Nextcloud site in the calendar section. Observe that “Test1” does not appear.
  • Do akonadictl restart or restart the Nextcloud account in Korganizer settings.
  • Modify “Test1” and observe it is still not present in Nextcloud site.
  • In KOrganizer, create a new item “Test2”.
  • Refresh Nextcloud site and observe that “Test2” is present, but not “Test1”.
  • Edit “Test1” to move it to another calendar of the same Nextcloud.
  • Refresh Nextcloud site and observe that “Test1” is still not there.
  • Change the location of “Test1” to a local ical, then back to a Nextcloud calendar.
  • Refresh Nextcloud site and observe that “Test1” now appears.

I create the Nextcloud item after the restart of Akonadi, I got that in the logs:

org.kde.pim.davresource: Received notification for added item. Local id = 1608 . Remote id = “” . Collection remote id = “https://myserver.com/remote.php/dav/calendars/john/personal/
org.kde.pim.akonadicore: asked to convert a “application/x-vnd.akonadi.calendar.event” item to format KContacts::Addressee
org.kde.pim.davresource: Item 1608 will be put to “https://myserver.com/remote.php/dav/calendars/john/personal/1234568901.R146.ics

[…]

org.kde.pim.akonadi_indexer_agent: collectionIndexingJob::indexItems(const QListAkonadi::Item::Id &itemIds) count: 1
org.kde.pim.akonadi_indexer_agent: CollectionIndexingJob::slotPendingItemsReceived 1
org.kde.pim.akonadi_indexer_agent: void CollectionIndexingJob::slotPendingItemsReceived(const Akonadi::Item::List &items) 1608
org.kde.pim.akonadi_indexer_agent.calendar: Indexing calendar event: “Test10” “”
org.kde.pim.akonadi_indexer_agent: CollectionIndexingJob::slotPendingIndexed
org.kde.pim.akonadi_indexer_agent: Indexed 1 items in (ms): 11
org.kde.pim.akonadi_indexer_agent: Indexing complete. Total time: 12
org.kde.pim.akonadi_indexer_agent: Processing done

But if I create an item before the restart of Akonadi, I don’t get these two lines:

org.kde.pim.akonadicore: asked to convert a “application/x-vnd.akonadi.calendar.event” item to format KContacts::Addresseeorg.kde.pim.davresource: Item 1608 will be put to “https://myserver.com/remote.php/dav/calendars/john/personal/1234568901.R146.ics

Any idea why? Did I miss something? Should I create a bug ticket?

On what may be a related note, items (to-dos, but not events) that exist on the Nextcloud calendar disappear from the local Korganiser calendar. Very disconcerting.

The “work around” (if you can call it that), is to go into the Nextcloud calendar on the web interface, move the to-dos that have disappeared to some other day and then move them back. If it is recurrent to-do you only have to move one instance fortunately.

Finally, I right click on the calendar in Korganiser and choose “Update calendar” from the pop-up. The missing to-dos will appear.

This, of course, defeats the purpose of having a calendar in the first place, as you have to remember when things are done to know what is missing.

Maybe someone like @carl or @claucambra who work both on PIM-related stuff at KDE and Nextcloud stuff could figure this one out.

Note that I have not submitted a bug report because I am not sure whether it is Korganiser, Nextcloud or something else which is failing here.