OK, the problem comes from my Android version 4.1.2.
Please provide steps to reproduce and debug info. It’s impossible to provide reasonable help without the required information.
I tried synchronising my calendar and it did not synchronise my calendar.
Synchronising the same calendar between Thunderbird on my PC and the server works. The server is Baikal 0.4.4. DAVdroid managed however to obtain calendar name and description from the server, and contact synchronisation works.
I had the same problem in both versions, 0.9.1.3 and 184.108.40.206. The problem only occurred on this phone, on the Motorola Moto G2 running Cyanogenmod I had before, everything worked fine.
Debug info: https://paste.fedoraproject.org/371955/46447787/
There’s no notification, so it must be a soft error, probably I/O error. Get logs for further information.
This is what I got: https://paste.fedoraproject.org/372238/54941914/
@Bernhard Thanks for the logs. These are only the logs for an address book sync, and they show (as you said) no error.
Do you have any idea why the calendar might not sync?
The calendar and the address book are both correctly displayed in the app, even with their server-side descriptions. I synchronised them simultaneously, at least that’s what it looked like in the app, and this is the log.
@Bernhard As you can see, the log contains only an address book synchronization. Maybe it’s in another file, or the logging was not exactly active when you did a calendar synchronization.
There is another file. Could this be the log for the calendar sync?
2016-05-29 21:12:16 0 [App$ReinitLoggingReceiver] Received broadcast: re-initializing logger
So I tried logging again. The process generated 2 .txt files and 2 .txt.lck files. 3 of them are empty. This is the file with content: https://paste.fedoraproject.org/372332/58144146/
@Bernhard Again, these are only contact sync logs. You can see it in the first line:
2016-05-29 23:40:00 7 [syncadapter.SyncAdapterService$SyncAdapter] Sync for com.android.contacts has been initiated
How did you initiate a calendar sync? It seems like it’s just not initiated. You can try to
I tried synchronising calendar and contacts from within the DAVdroid-app. The calendar is not displayed in the Android-settings, only the address book shows up there. The account is also marked with a red circle and the words “synchronisation error”.
@Bernhard If the calendars are not shown, they can of course not be synchronized. However, in this case the red circle would then have to apply to the contacts sync, but those seem to work. Can you post screenshots? It’s just difficult to reproduce this problem here or to get an idea of the actual problem.
This is what I tried to describe: http://imgur.com/a/oGR7a
@devvv4ever Do you have any idea what might cause this problem?
Please help me! Do you need any further information?
I’m sorry that we can not help you. Did you try another server or do you have another Android device where everything is working fine?
@devvv4ever I tried using another server as well, but the problem was the same. Both times DAVdroid got the calendar name, description and even colour, but the calendar didn’t synchronise. Both servers synchronise with Thunderbird/Lightning.
@Bernhard DAVdroid is not initiating the synchronization. It relies on being called by the Android synchronization framework. According to the debug info, calendar sync is set to 240 min:
Calendar sync. interval: 240 min
I don’t know why “Calendar” doesn’t appear in your Android account settings (as seen in your screenshot). Is your calendar provider even enabled? You can have a look at: Android Settings / Apps / All (maybe: “Show system”) / Calendar Storage (com.android.providers.calendar).
Or maybe DAVdroid is prohibited to access the Calendar provider for some other reason (permissions, privacy guard, …)