@enr00ted Maybe other apps use other CalDAV methods (for instance, only PROPFIND instead of the better-suited REPORT calendar-query). If these clients are open-source, you can have a look at the source code – would be interesting.
One of three calenders could not be synchronized after the last two updates 3.1 and 3.1.1
-
Hello guys,
after the last updates one of my calendars is not able to be synchronized with my DiskStation. I have no clue why. When I switch back to 3.0 it works fine…
--- BEGIN DEBUG INFO --- SYNCHRONIZATION INFO Account name: Kalender2 Authority: org.dmfs.tasks HTTP REQUEST: Request{method=REPORT, url=https://diskstation.com:8001/calendar/, headers=[Accept-Encoding:br,gzip]} <?xml version='1.0' encoding='UTF-8' ?><CAL:calendar-multiget xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav"><prop><getcontenttype /><getetag /><CAL:calendar-data /></prop></CAL:calendar-multiget> HTTP RESPONSE: Response{protocol=http/1.1, code=404, message=Not Found, url=https://diskstation.com:8001/calendar/} REMOTE RESOURCE: https://diskstation.com:8001/calendar/ EXCEPTION: at.bitfire.dav4jvm.exception.NotFoundException: HTTP 404 Not Found at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:6) at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:3) at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:1) at at.bitfire.dav4jvm.DavCalendar.multiget(DavCalendar.kt:23) at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1.invoke(TasksSyncManager.kt:2) at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1.invoke(TasksSyncManager.kt:1) at at.bitfire.davdroid.syncadapter.SyncManager.useRemote(SyncManager.kt:1) at at.bitfire.davdroid.syncadapter.SyncManager.useRemoteCollection(SyncManager.kt:1) at at.bitfire.davdroid.syncadapter.TasksSyncManager.downloadRemote(TasksSyncManager.kt:2) at at.bitfire.davdroid.syncadapter.SyncManager$syncRemote$1$1$1.invokeSuspend(SyncManager.kt:2) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:2) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:18) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919) SOFTWARE INFORMATION * at.bitfire.davdroid 3.1.1-gplay (301010002) from com.android.vending * org.dmfs.tasks 1.2.3 (77600) from com.android.vending * com.android.providers.contacts 10 (29) from com.android.vending * com.android.providers.calendar 10 (29) * com.google.android.contacts 3.25.3.314396553 (2414146) from com.android.vending * org.withouthat.acalendarplus 2.3.4 (2003403) from com.android.vending CONNECTIVITY (at the moment) - [ Transports: CELLULAR Capabilities: MMS&SUPL&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED LinkDnBandwidth>=25073Kbps Specifier: <1>] CONFIGURATION Power saving disabled: yes Notifications (not blocked): [group] sync isBlocked=false syncProblems: importance=3 syncIoErrors: importance=1 syncWarnings: importance=2 general: importance=3 debug: importance=4 Permissions: READ_CONTACTS: granted WRITE_CONTACTS: granted READ_CALENDAR: granted WRITE_CALENDAR: granted READ_TASKS: granted WRITE_TASKS: granted ACCESS_COARSE_LOCATION: denied System-wide synchronization: automatically APP SETTINGS Distrust system certs: false Override system proxy: false ACCOUNTS Account: Kalender3 Address book sync. interval: — Calendar sync. interval: 240 min OpenTasks sync. interval: 240 min WiFi only: false getIsSyncable(CalendarContract): 1 getIsSyncable(OpenTasks): 1 [CardDAV] Contact group method: GROUP_VCARDS [CalDAV] Time range (past days): null Default alarm (min before): null Manage calendar colors: true Use event colors: true Account: Kontakte_Privat Address book sync. interval: 60 min Calendar sync. interval: — OpenTasks sync. interval: — WiFi only: false getIsSyncable(CalendarContract): 0 getIsSyncable(OpenTasks): 0 [CardDAV] Contact group method: GROUP_VCARDS [CalDAV] Time range (past days): 90 Default alarm (min before): null Manage calendar colors: true Use event colors: false Account: nomad_Privat Address book sync. interval: — Calendar sync. interval: 60 min OpenTasks sync. interval: 240 min WiFi only: false getIsSyncable(CalendarContract): 1 getIsSyncable(OpenTasks): 1 [CardDAV] Contact group method: GROUP_VCARDS [CalDAV] Time range (past days): null Default alarm (min before): null Manage calendar colors: true Use event colors: true Account: Kalender2 Address book sync. interval: — Calendar sync. interval: 30 min OpenTasks sync. interval: 30 min WiFi only: false getIsSyncable(CalendarContract): 1 getIsSyncable(OpenTasks): 1 [CardDAV] Contact group method: GROUP_VCARDS [CalDAV] Time range (past days): 0 Default alarm (min before): null Manage calendar colors: true Use event colors: true Address book account: addressbook (Kontakte_Privat Gw) Main account: Account {name=Kontakte_Privat, type=bitfire.at.davdroid} URL: diskstation.com:8003/addressbooks/__uids__/DC281142-47CC-542E-B5FE-14E820A78475/addressbook/ Sync automatically: true SQLITE DUMP android_metadata | locale | | de_DE | ---------- room_master_table | id | identity_hash | | 42 | a7554d1ebc5ecfe0c7aefe271485d63c | ---------- service | id | accountName | type | principal | | 1 | Kalender2 | caldav | <null> | | 4 | nomad_Kontakte | carddav | diskstation.com:8003/principals/__uids__/DC281142-47CC-542E-B5FE-14E820A78475/ | | 6 | nomad_Kalender | caldav | <null> | | 7 | Kalender4 | caldav | <null> | | 8 | Kalender3 | caldav | <null> | | 9 | Kontakte_Privat | carddav | diskstation.com:8003/principals/__uids__/DC281142-47CC-542E-B5FE-14E820A78475/ | | 10 | nomad_Privat | caldav | <null> | ---------- sqlite_sequence | name | seq | | service | 10 | | homeset | 10 | | collection | 10 | ---------- homeset | id | serviceId | url | privBind | displayName | | 1 | 1 | https://diskstation.com:8001/calendar/ | 1 | <null> | | 4 | 4 | diskstation.com:8003/addressbooks/__uids__/DC281142-47CC-542E-B5FE-14E820A78475/ | 1 | Ich | | 6 | 6 | https://diskstation.com:8003/homes/nomad/Privat_nomad/ | 1 | <null> | | 7 | 7 | https://diskstation.com:8001/calendar/ | 1 | <null> | | 8 | 8 | https://diskstation.com:8003/Download/Kalender3/ | 1 | <null> | | 9 | 9 | diskstation.com:8003/addressbooks/__uids__/DC281142-47CC-542E-B5FE-14E820A78475/ | 1 | Ich | | 10 | 10 | https://diskstation.com:8003/homes/nomad/Privat_nomad/ | 1 | <null> | ---------- collection | id | serviceId | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | supportsVJOURNAL | source | sync | | 1 | 1 | CALENDAR | https://diskstation.com:8001/calendar/ | 1 | 1 | 0 | <null> | <null> | <null> | <null> | 1 | 1 | 1 | <null> | 1 | | 2 | 4 | ADDRESS_BOOK | diskstation.com:8003/addressbooks/users/nomad/addressbook/ | 1 | 1 | 0 | <null> | <null> | <null> | <null> | <null> | <null> | <null> | <null> | 0 | | 3 | 4 | ADDRESS_BOOK | diskstation.com:8003/addressbooks/__uids__/DC281142-47CC-542E-B5FE-14E820A78475/addressbook/ | 1 | 1 | 0 | <null> | <null> | <null> | <null> | <null> | <null> | <null> | <null> | 1 | | 5 | 6 | CALENDAR | https://diskstation.com:8003/homes/nomad/Privat_nomad/ | 1 | 1 | 0 | <null> | <null> | <null> | <null> | 1 | 1 | 1 | <null> | 1 | | 6 | 7 | CALENDAR | https://diskstation.com:8001/calendar/ | 1 | 1 | 0 | <null> | <null> | <null> | <null> | 1 | 1 | 1 | <null> | 1 | | 7 | 8 | CALENDAR | https://diskstation.com:8003/Download/Kalender3/ | 1 | 1 | 0 | <null> | <null> | <null> | <null> | 1 | 1 | 1 | <null> | 1 | | 8 | 9 | ADDRESS_BOOK | diskstation.com:8003/addressbooks/users/nomad/addressbook/ | 1 | 1 | 0 | <null> | <null> | <null> | <null> | <null> | <null> | <null> | <null> | 0 | | 9 | 9 | ADDRESS_BOOK | diskstation.com:8003/addressbooks/__uids__/DC281142-47CC-542E-B5FE-14E820A78475/addressbook/ | 1 | 1 | 0 | <null> | <null> | <null> | <null> | <null> | <null> | <null> | <null> | 1 | | 10 | 10 | CALENDAR | https://diskstation.com:8003/homes/nomad/Privat_nomad/ | 1 | 1 | 0 | <null> | <null> | <null> | <null> | 1 | 1 | 1 | <null> | 1 | ---------- SYSTEM INFORMATION Android version: 10 (GM1900_14_200519) Device: OnePlus GM1900 (OnePlus7) --- END DEBUG INFO ---
I would appreciate some tipp
BR
Nomad -
Hi,
Do you use the WebDAV package? Can you maybe provide a test account? We can’t reproduce this with our Synology DSM.
-
The funny thing is, that three other accounts work, even with the new versions. I have already tried to setup this account brand new, but anything changes…and yes I use the webdav server from DS.
The only thing which differs is, that this special account is also used by my family with apple devices…the others not. Did this might lead to an issue? -
I don’t know; can absolutely be the case. The problem is that when we can’t reproduce the problem, we can’t take a look. And a server sending 404 (like in your exception info) is normally a server problem and not a client problem. Also, we didn’t change anything between 3.0 and 3.1 that should cause any changes in that sync behavior.
-
Hi, I have tried a lot today:
- Created a new calendar --> it works
- copied the calendar files from the old one in the new calendar --> doesn’t work
- deleted the app with every data from my mobile and recreated everything --> calendar doesn’t work
- checked the calendar with outlook --> it works
- reinstalled the old version 2.6.5 --> it works
Now I am lost…
-
If you can reproduce it somehow and maybe even provide a test account, please let us know and/or send an email to play@bitfire.at so that I can give a try. When I can reproduce the problem, I can have a look at it.
-
I gave it another try and connected the calendar of the iphone with xdav and it works.
The next funny thing is: during another test I reset the cache of my android calendar. During this test davx 3.1.1 works for 2h (sync interval 15min), then the error occurred again.
To make sure this was just a chance, I did the test twice again…the error occurred now every time instantly…I have no idea how to reproduce the error. It only occurs with one of my calendars and with davx 3.1 and 3.1.1, with 2.6.5 it works fine.
BR
-
So today I updated to 3.2. The issue occurred again but when I manually start syncing it works. This issue is then fixed until an iPhone user makes an entry to this calendar. Then the upfront mention behavior occurred again…and this its reproducible.
-
So after someone uses an iPhone with this calendar, the server returns 404? Is this correct?
-
Yes. Everytime someone is using an iphone and changes something, I got 404 back. After some tries (at least 3) it works and there is no more error until somebody with an iphone is changing something again.
-
Then this really sounds like it’s not related to DAVx5 and I unfortunately don’t know whats going wrong between iPhone and your server…