Thank you for the update on this and also for the clarification – hopefully it helps other people that run into same issues 🙂
Calendar not sync in nextcloud 13?
-
Hi
My server (nextcloud 13) is OK, but since a few days calendar and contacts are not syncing with davdroid.
Is there any known issues? -
No known issues currently. Since a lot of people use DAVdroid with NC we would know if there is something broken. You can post your logs/debug infos here and we can take a look at it.
-
Everything was working ok for the last year but now suddenly the sysnc is not working.
In the app there are no errors but when i create something in the phone it’s not synced to the nextcloud and vice versa.It’s only me?
-
I have no errors
which logs? from nextcloud or there are any produced by davdroid?@ricardos said in Calendar not sync in nextcloud 13?:
ontacts are not syncing with davdroid
-
Please have a look at https://www.davdroid.com/faq/how-to-debug/
We’re using NC13 with DAVdroid ourselves and there are no problems…
-
Can anyone see anything wrong here
It’s not syncing with nextcloud 13 server (last stable version)
I don’t understand what’s happening2018-03-08 20:41:53 1 [PackageChangedReceiver] Tasks provider available = true 2018-03-08 20:41:53 0 [settings.Settings] Initializing Settings service 2018-03-08 20:41:53 0 [settings.Settings] Looking up setting override_proxy 2018-03-08 20:41:53 0 [settings.Settings] DefaultsProvider: value = false, continue: true 2018-03-08 20:41:53 0 [settings.Settings] SharedPreferencesProvider: value = false, continue: true 2018-03-08 20:41:53 0 [settings.Settings] Looked up setting override_proxy -> false 2018-03-08 20:41:53 0 [settings.Settings] Looking up setting override_proxy_host 2018-03-08 20:41:53 0 [settings.Settings] DefaultsProvider: value = localhost, continue: true 2018-03-08 20:41:53 0 [settings.Settings] SharedPreferencesProvider: value = localhost, continue: true 2018-03-08 20:41:53 0 [settings.Settings] Looked up setting override_proxy_host -> localhost 2018-03-08 20:41:53 0 [settings.Settings] Looking up setting override_proxy_port 2018-03-08 20:41:53 0 [settings.Settings] DefaultsProvider: value = 8118, continue: true 2018-03-08 20:41:53 0 [settings.Settings] SharedPreferencesProvider: value = 8118, continue: true 2018-03-08 20:41:53 0 [settings.Settings] Looked up setting override_proxy_port -> 8118 2018-03-08 20:41:53 0 [settings.Settings] Looking up setting distrust_system_certs 2018-03-08 20:41:53 0 [settings.Settings] DefaultsProvider: value = false, continue: true 2018-03-08 20:41:53 0 [settings.Settings] SharedPreferencesProvider: value = true, continue: true 2018-03-08 20:41:53 0 [settings.Settings] Looked up setting distrust_system_certs -> true 2018-03-08 20:41:56 0 [settings.Settings] Shutting down Settings service
-
This are the last events in the NC13 LOGS
{"reqId":"6433Vnu8l7M4FNuwgqJ4","level":4,"time":"2017-08-20T10:02:09+00:00","remoteAddr":"","user":"--","app":"cron","method":"--","url":"--","message":"Not installed","userAgent":"--","version":""} {"reqId":"I2eWAnvXcvPkBiHQyifx","level":3,"time":"2017-08-30T11:27:31+00:00","remoteAddr":"62.173.40.229","user":"--","app":"PHP","method":"GET","url":"\/admin\/config.php","message":"Exception: The requested uri(\/admin\/config.php) cannot be processed by the script '\/core\/templates\/404.php') at \/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Request.php#729","userAgent":"curl\/7.21.0 (i486-pc-linux-gnu) libcurl\/7.21.0 OpenSSL\/0.9.8o zlib\/1.2.3.4 libidn\/1.15 libssh2\/1.2.6","version":"12.0.2.0"} {"reqId":"Vb0iEGD0FEhUBjlM1hIZ","level":4,"time":"2017-08-30T14:34:56+00:00","remoteAddr":"193.136.108.166","user":"ricardo","app":"webdav","method":"PUT","url":"\/remote.php\/webdav\/Mi_Ric\/2017\/08\/2017-08-17a23\/IMG_20170816_170144.jpg","message":"Exception: {\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\BadRequest\",\"Message\":\"expected filesize 2256363 got 630784\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php(151): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put(Resource id #8)\\n#1 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1096): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createFile('IMG_20170816_17...', Resource id #8)\\n#2 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(525): Sabre\\\\DAV\\\\Server->createFile('Mi_Ric\\\/2017\\\/08\\\/...', Resource id #8, NULL)\\n#3 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#5 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:PUT', Array)\\n#6 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#7 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(71): Sabre\\\\DAV\\\\Server->exec()\\n#8 \\\/var\\\/www\\\/nextcloud\\\/remote.php(162): require_once('\\\/var\\\/www\\\/nextcl...')\\n#9 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php\",\"Line\":151}","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"12.0.2.0"} {"reqId":"KuHuVYW1gC2zsNCJVrqR","level":3,"time":"2017-08-30T17:16:19+00:00","remoteAddr":"71.6.202.198","user":"--","app":"PHP","method":"GET","url":"\/xxbb","message":"Exception: The requested uri(\/xxbb) cannot be processed by the script '\/core\/templates\/404.php') at \/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Request.php#729","userAgent":"Mozilla\/5.0 zgrab\/0.x","version":"12.0.2.0"} {"reqId":"P48A6YrbYcsWrdbb1fgL","level":2,"time":"2017-08-30T18:07:02+00:00","remoteAddr":"193.136.108.166","user":"--","app":"core","method":"POST","url":"\/index.php\/login","message":"Login failed: 'admin' (Remote IP: '193.136.108.166')","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"12.0.2.0"} {"reqId":"umjSskRDkkpYU4fT6KBZ","level":2,"time":"2017-08-30T18:07:09+00:00","remoteAddr":"193.136.108.166","user":"--","app":"core","method":"POST","url":"\/index.php\/login?user=admin","message":"Login failed: 'admin' (Remote IP: '193.136.108.166')","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"12.0.2.0"} {"reqId":"hD2rvofFWkCLwDYBH2vf","level":2,"time":"2017-08-30T18:07:21+00:00","remoteAddr":"193.136.108.166","user":"--","app":"core","method":"POST","url":"\/index.php\/login?user=admin","message":"Login failed: 'admin' (Remote IP: '193.136.108.166')","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"12.0.2.0"} {"reqId":"kSNv6NybeNpbdQ4OzE0l","level":2,"time":"2017-08-30T18:08:01+00:00","remoteAddr":"193.136.108.166","user":"admin","app":"core","method":"GET","url":"\/index.php\/logout?requesttoken=o1VptUb\/yQ9CbZWV19W9276VOr\/GLehIltIgE7kiKgU%3D%3A7y0v8Sm4v3kGPb7d4LSJlNPeV\/2HSr4a7KtKUtEVQUE%3D","message":"Login failed: 'admin' (Remote IP: '193.136.108.166')","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"12.0.2.0"}
-
Please provide steps to reproduce, Web server and Nextcloud logs taken while the problem occurs, DAVdroid debug info and verbose DAVdroid logs etc as described in [READ BEFORE POSTING] What’s required to diagnose a problem.
-
I can confirm this.
Nextcloud 13.0.0
DAVDroid Version 1.10.1.1-oseDowngrade to Version 1.9.10-ose fixed the Problem for me though.
It seems to be a problem concerning timezones:
2018-03-11 13:41:22 5006 [syncadapter.CalendarSyncManager] Received invalid iCalendar, ignoring EXCEPTION at.bitfire.ical4android.InvalidCalendarException: Couldn't parse iCalendar resource at at.bitfire.ical4android.Event$Companion.fromReader(Event.kt:84) at at.bitfire.ical4android.Event$Companion.fromReader$default(Event.kt:76) at at.bitfire.davdroid.syncadapter.CalendarSyncManager.processVEvent(CalendarSyncManager.kt:180) at at.bitfire.davdroid.syncadapter.CalendarSyncManager.downloadRemote(CalendarSyncManager.kt:164) at at.bitfire.davdroid.syncadapter.SyncManager.performSync(SyncManager.kt:157) at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$CalendarsSyncAdapter.sync(CalendarsSyncAdapterService.kt:55) at at.bitfire.davdroid.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:70) at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272) Caused by: net.fortuna.ical4j.data.ParserException: Error at line 105:Attempt to invoke virtual method 'java.util.TimeZone java.util.Calendar.getTimeZone()' on a null object reference at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:158) at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:198) at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:178) at at.bitfire.ical4android.Event$Companion.fromReader(Event.kt:82) ... 7 more Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.TimeZone java.util.Calendar.getTimeZone()' on a null object reference at java.text.DateFormat.getTimeZone(DateFormat.java:704) at net.fortuna.ical4j.model.Iso8601.setTime(Iso8601.java:149) at net.fortuna.ical4j.model.DateTime.setTime(DateTime.java:422) at net.fortuna.ical4j.model.component.Observance.calculateOnset(Observance.java:324) at net.fortuna.ical4j.model.component.Observance.calculateOnset(Observance.java:309) at net.fortuna.ical4j.model.component.Observance.getLatestOnset(Observance.java:207) at net.fortuna.ical4j.model.TimeZone.getRawOffset(TimeZone.java:180) at net.fortuna.ical4j.model.TimeZone.<init>(TimeZone.java:69) at net.fortuna.ical4j.data.CalendarBuilder$ContentHandlerImpl.endComponent(CalendarBuilder.java:245) at net.fortuna.ical4j.data.CalendarParserImpl$ComponentParser.parse(CalendarParserImpl.java:444) at net.fortuna.ical4j.data.CalendarParserImpl$ComponentParser.access$900(CalendarParserImpl.java:406) at net.fortuna.ical4j.data.CalendarParserImpl$PropertyListParser.parse(CalendarParserImpl.java:208) at net.fortuna.ical4j.data.CalendarParserImpl.parseCalendar(CalendarParserImpl.java:115) at net.fortuna.ical4j.data.CalendarParserImpl.parseCalendarList(CalendarParserImpl.java:180) at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:149) ... 10 more
-
@redcider Can you please provide the full debug info and the contents of the remote resource mentioned in the debug info? Without this information, there’s no chance to find out what’s going on.
-
Hey guys, I’ve got the same problem and I can provide you with some more information.
This is the debug output. I have replaced the following:
- my personal email address with “user@server.com”
- my tld with “myserver.com”
- my name with “encryptor”
- my real calendar-titles into “cal”+“one/two/three/four”
https://paste.fedoraproject.org/paste/ZFYKyFwdahNFhNLcozOMpw
This is the log output of my nextcloud server. I have replaced the following:
- my ip-address with “127.0.0.1”
- my name with “encryptor”
- my tld with “myserver.com”
- my (one and only active) calendar-title into “caltwo” (The error occours to every other calendar as well. I just wanted to keep it short)
https://paste.fedoraproject.org/paste/1Vi05fksu2X4s5E1G02zhA
And this is the same output, but I have inserted some whitespace and shifted some lines to get a better overview of what’s going on. You can see, that davdroid doesn’t support the right username two times, so it results in an “attempt”. And the third try supports the rigth username and then it’s successful.
https://paste.fedoraproject.org/paste/DYWr5LvO0MDUO741uz5BRA
Regarding the timezone, I have set up my nextcloud config as this: https://paste.fedoraproject.org/paste/ZJW6i2zPxAOFkdmp9ffSiw
Does this help you? What else do you need?
Thanks a lot,
Encrypor -
I have sent the latest beta version via email to check if the problem still occurs with it (there have been related changes).