answered
2017-08-24 12:59:23 +0200
Sorry, not an answer, but a tentative to find the root of the problem.
After the work of @chris.adams on the concurrent access on the clean flag file, the disappearance should not appear anymore. But it does for some. Let's investigate.
Can anyone with the disappearance issue still happening reports the content of the file located in /home/nemo/.local/share/system/privileged/Sync/caldav.ini
, before sync and after sync, in both senarios where the server is reachable or unreachable. It should be true for all account ids.
Additionally, can anyone also report the log of msyncd
when the server is not reachable. Particularly the lines near the answer with the network error reply.
Thank you, hopefully we can find the root of the issue.
From a technical point of view, looking at the source in buteo-sync-plugin-caldav
, there are some possible roots for calendar deletion:
- Network answer is ContentNotFoundError (server is reachable and reply that calendar has been deleted upstream), see
src/notebooksyncagent.cpp#720
, and lines 351 and 440. - The flag in the caldav.ini file is present but not true, so on startup of sync action, the calendars are deleted, see
src/caldavclient.cpp#201
. Then if server is not reachable, the calendars will stay deleted of course otherwise, they will be recreated. - On sync finished, if it is first sync and there are some errors, the calendars are deleted also, see
caldavclient.cpp#387
. The first sync status has itself two causes, either the calendars have been removed because of clean flag (cf. latter point), or there is no last succesfull sync as found in file /home/nemo/.cache/msyncd/sync/logs/caldav-sync-xx.log.xml
.
2017/08/26 edit: I think, I've found the root cause: when on autosync, there may be no last successfull sync in the caldav-sync.log.xml file because only the last five entries are kept. Which means after five failed attempts to contact the server, the plugin switch to the clean sync and delete the notebooks. I'll discuss with @chris.adams on Monday on the best way to correct this.
Maybe it fits to caldav calendars gone after a while. It could be, that my radicale server wasn't available too.
jolladiho ( 2016-08-20 19:06:38 +0200 )editI have to look if that is the same problem. But I don't think so. I never experienced such problems before. If I set Sync on manual all is fine. If my Own Cloud Server is available there are no problems. Only if I am on Autosync and my Server is not reachable the calendars disappear. And it's not only that the dates are gone. No the complete calendars are gone and you can't see them under "manage calendars"
Fellfrosch ( 2016-08-21 22:04:05 +0200 )editUpdate: Also my Tablet looses the calendars. So now it's three devices. I have on one device disabled the option to sync automatically when a date is generated or edited So it is now just syncing every 30 Minutes. This one runs now stable since nearly a day. I will report if this indeed does the trick or if it is just random behaviour.
Fellfrosch ( 2016-08-22 12:15:17 +0200 )editSeems to be random behaviour. Just lost the calendar again. It's strange, because as soon as the server is available again. The calendars reappear and stay there for a while. Thinking about downgrading my devices to 2.0.1.11 again. Unfortunately that probably will not work with Jolla C.
Fellfrosch ( 2016-08-23 14:56:00 +0200 )editYes, seems to be a bit different from the other issue. I did not get back the calendars with the existing account. Had to create a new one.
jolladiho ( 2016-08-23 20:48:17 +0200 )edit