SUMMARY Running some remote ics calendars. In the past they updated automatically, but current it just stucks in InvalideCacheForCollection. STEPS TO REPRODUCE Reproducing is currently not possible, due to bug 425460. OBSERVED RESULT When I look in akonadi console in the task list of the resource it is always sitting in the current task "InvalideCacheForCollection". (With a "SyncAll" queued up but never executed.) In the code I see that "InvalidateCacheJobPrivate::itemStoreResult" is calling "emitResult", but "ResourceScheduler::taskDone" or "ResourceScheduler::executeNext" is never called again. SOFTWARE/OS VERSIONS Linux: 5.8 KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 KDE Apps Version: 20.08.1 Qt Version: 5.15.1
I recover (for the moment) by putting the agent offline, restart it, abort all activities, put it online again and manually start synchronize all. Restarting the agent again, will block in InvalideCacheForCollection again, when the (ics) file changed: "The hash has changed." I checked in resourcebase.cpp, the commit removed the connect of the result? https://github.com/KDE/akonadi/commit/97fcc9bebd790289b02680c3db7e621bb6a1a9a0#diff-b2f3b083990c6ceb5ed429b2a5fd820fL698 Reverting that bit makes InvalideCacheForCollection finish again. Was it removed on purpose?
I added Dan as CC of this bug. As indeed it seems not logical to remove it. But perhaps he has a reason for removing it
Git commit b2e4ee76d5831df075349a5a597c371a4d9c1460 by Laurent Montel. Committed on 11/10/2020 at 17:43. Pushed by mlaurent into branch 'release/20.08'. Bug 427358 - akonadi_ical_resource stuck in InvalideCacheForCollection Readd code removed. Thanks for Markus for debugging it FIXED-IN: 5.15.3 M +2 -1 src/agentbase/resourcebase.cpp https://invent.kde.org/pim/akonadi/commit/b2e4ee76d5831df075349a5a597c371a4d9c1460