DAVdroid not finding Caldav/Carddav using Disroot



  • Hello, I am trying to access DAVdroid via Disroot mobile. However I am getting an error stating DAVdroid cannot find CalDAV/CardDAV service.

    What am I doing wrong?

    Debug Info:

    --- BEGIN DEBUG INFO ---
    LOGS:
    2018-09-03 00:10:49 45357 [ui.setup.DavResourceFinder] Finding initial carddav service configuration
    2018-09-03 00:10:49 45357 [ui.setup.DavResourceFinder] Checking user-given URL: https://cloud.disroot.org/remote.php/dav
    2018-09-03 00:10:49 45357 [HttpClient] --> PROPFIND https://cloud.disroot.org/remote.php/dav
    2018-09-03 00:10:49 45357 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-09-03 00:10:49 45357 [HttpClient] Content-Length: 290
    2018-09-03 00:10:49 45357 [HttpClient] Depth: 0
    2018-09-03 00:10:49 45357 [HttpClient] 
    2018-09-03 00:10:49 45357 [HttpClient] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><resourcetype /><displayname /><CARD:addressbook-description /><CARD:addressbook-home-set /><current-user-principal /></prop></propfind>
    2018-09-03 00:10:49 45357 [HttpClient] --> END PROPFIND (290-byte body)
    2018-09-03 00:10:50 45357 [HttpClient] <-- 404 Not Found https://cloud.disroot.org/remote.php/dav (975ms)
    2018-09-03 00:10:50 45357 [HttpClient] Server: nginx
    2018-09-03 00:10:50 45357 [HttpClient] Date: Mon, 03 Sep 2018 07:10:49 GMT
    2018-09-03 00:10:50 45357 [HttpClient] Content-Type: text/html
    2018-09-03 00:10:50 45357 [HttpClient] Transfer-Encoding: chunked
    2018-09-03 00:10:50 45357 [HttpClient] Connection: keep-alive
    2018-09-03 00:10:50 45357 [HttpClient] Keep-Alive: timeout=30
    2018-09-03 00:10:50 45357 [HttpClient] Vary: Accept-Encoding
    2018-09-03 00:10:50 45357 [HttpClient] 
    2018-09-03 00:10:50 45357 [HttpClient] <html>
    <head><title>404 Not Found</title></head>
    <body bgcolor="white">
    <center><h1>404 Not Found</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    
    2018-09-03 00:10:50 45357 [HttpClient] <-- END HTTP (162-byte body)
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] PROPFIND/OPTIONS on user-given URL failed
    EXCEPTION at.bitfire.dav4android.exception.NotFoundException: HTTP 404 Not Found
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:275)
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:259)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:351)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:246)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:177)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:112)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:77)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:136)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:120)
    	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:306)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:59)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:47)
    	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    	at java.lang.Thread.run(Thread.java:761)
    
    2018-09-03 00:10:50 45357 [HttpClient] --> PROPFIND https://cloud.disroot.org/.well-known/carddav
    2018-09-03 00:10:50 45357 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-09-03 00:10:50 45357 [HttpClient] Content-Length: 198
    2018-09-03 00:10:50 45357 [HttpClient] Depth: 0
    2018-09-03 00:10:50 45357 [HttpClient] 
    2018-09-03 00:10:50 45357 [HttpClient] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
    2018-09-03 00:10:50 45357 [HttpClient] --> END PROPFIND (198-byte body)
    2018-09-03 00:10:50 45357 [HttpClient] <-- 403 Forbidden https://cloud.disroot.org/.well-known/carddav (174ms)
    2018-09-03 00:10:50 45357 [HttpClient] Server: nginx
    2018-09-03 00:10:50 45357 [HttpClient] Date: Mon, 03 Sep 2018 07:10:49 GMT
    2018-09-03 00:10:50 45357 [HttpClient] Content-Type: text/html
    2018-09-03 00:10:50 45357 [HttpClient] Transfer-Encoding: chunked
    2018-09-03 00:10:50 45357 [HttpClient] Connection: keep-alive
    2018-09-03 00:10:50 45357 [HttpClient] Keep-Alive: timeout=30
    2018-09-03 00:10:50 45357 [HttpClient] Vary: Accept-Encoding
    2018-09-03 00:10:50 45357 [HttpClient] 
    2018-09-03 00:10:50 45357 [HttpClient] <html>
    <head><title>403 Forbidden</title></head>
    <body bgcolor="white">
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    
    2018-09-03 00:10:50 45357 [HttpClient] <-- END HTTP (162-byte body)
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] Well-known URL detection failed
    EXCEPTION at.bitfire.dav4android.exception.HttpException: HTTP 403 Forbidden
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:283)
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:259)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:351)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:246)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:382)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:116)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:77)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:136)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:120)
    	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:306)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:59)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:47)
    	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    	at java.lang.Thread.run(Thread.java:761)
    
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] Looking up SRV records for _carddavs._tcp.cloud.disroot.org
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] Didn't find carddav service, trying at https://cloud.disroot.org:443
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://cloud.disroot.org/.well-known/carddav
    2018-09-03 00:10:50 45357 [HttpClient] --> PROPFIND https://cloud.disroot.org/.well-known/carddav
    2018-09-03 00:10:50 45357 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-09-03 00:10:50 45357 [HttpClient] Content-Length: 198
    2018-09-03 00:10:50 45357 [HttpClient] Depth: 0
    2018-09-03 00:10:50 45357 [HttpClient] 
    2018-09-03 00:10:50 45357 [HttpClient] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
    2018-09-03 00:10:50 45357 [HttpClient] --> END PROPFIND (198-byte body)
    2018-09-03 00:10:50 45357 [HttpClient] <-- 403 Forbidden https://cloud.disroot.org/.well-known/carddav (196ms)
    2018-09-03 00:10:50 45357 [HttpClient] Server: nginx
    2018-09-03 00:10:50 45357 [HttpClient] Date: Mon, 03 Sep 2018 07:10:49 GMT
    2018-09-03 00:10:50 45357 [HttpClient] Content-Type: text/html
    2018-09-03 00:10:50 45357 [HttpClient] Transfer-Encoding: chunked
    2018-09-03 00:10:50 45357 [HttpClient] Connection: keep-alive
    2018-09-03 00:10:50 45357 [HttpClient] Keep-Alive: timeout=30
    2018-09-03 00:10:50 45357 [HttpClient] Vary: Accept-Encoding
    2018-09-03 00:10:50 45357 [HttpClient] 
    2018-09-03 00:10:50 45357 [HttpClient] <html>
    <head><title>403 Forbidden</title></head>
    <body bgcolor="white">
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    
    2018-09-03 00:10:50 45357 [HttpClient] <-- END HTTP (162-byte body)
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] No resource found
    EXCEPTION at.bitfire.dav4android.exception.HttpException: HTTP 403 Forbidden
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:283)
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:259)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:351)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:246)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:382)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:362)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:135)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:77)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:136)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:120)
    	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:306)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:59)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:47)
    	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    	at java.lang.Thread.run(Thread.java:761)
    
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://cloud.disroot.org/
    2018-09-03 00:10:50 45357 [HttpClient] --> PROPFIND https://cloud.disroot.org/
    2018-09-03 00:10:50 45357 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-09-03 00:10:50 45357 [HttpClient] Content-Length: 198
    2018-09-03 00:10:50 45357 [HttpClient] Depth: 0
    2018-09-03 00:10:50 45357 [HttpClient] 
    2018-09-03 00:10:50 45357 [HttpClient] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
    2018-09-03 00:10:50 45357 [HttpClient] --> END PROPFIND (198-byte body)
    2018-09-03 00:10:50 45357 [HttpClient] <-- 405 Not Allowed https://cloud.disroot.org/ (179ms)
    2018-09-03 00:10:50 45357 [HttpClient] Server: nginx
    2018-09-03 00:10:50 45357 [HttpClient] Date: Mon, 03 Sep 2018 07:10:50 GMT
    2018-09-03 00:10:50 45357 [HttpClient] Content-Type: text/html
    2018-09-03 00:10:50 45357 [HttpClient] Content-Length: 166
    2018-09-03 00:10:50 45357 [HttpClient] Connection: keep-alive
    2018-09-03 00:10:50 45357 [HttpClient] Keep-Alive: timeout=30
    2018-09-03 00:10:50 45357 [HttpClient] 
    2018-09-03 00:10:50 45357 [HttpClient] <html>
    <head><title>405 Not Allowed</title></head>
    <body bgcolor="white">
    <center><h1>405 Not Allowed</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    
    2018-09-03 00:10:50 45357 [HttpClient] <-- END HTTP (166-byte body)
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] No resource found
    EXCEPTION at.bitfire.dav4android.exception.HttpException: HTTP 405 Not Allowed
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:283)
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:259)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:351)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:246)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:382)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:362)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:135)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:77)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:136)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:120)
    	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:306)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:59)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:47)
    	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    	at java.lang.Thread.run(Thread.java:761)
    
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] Finding initial caldav service configuration
    2018-09-03 00:10:50 45357 [ui.setup.DavResourceFinder] Checking user-given URL: https://cloud.disroot.org/remote.php/dav
    2018-09-03 00:10:50 45357 [HttpClient] --> PROPFIND https://cloud.disroot.org/remote.php/dav
    2018-09-03 00:10:50 45357 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-09-03 00:10:50 45357 [HttpClient] Content-Length: 435
    2018-09-03 00:10:50 45357 [HttpClient] Depth: 0
    2018-09-03 00:10:50 45357 [HttpClient] 
    2018-09-03 00:10:50 45357 [HttpClient] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><resourcetype /><displayname /><n0:calendar-color xmlns:n0="http://apple.com/ns/ical/" /><CAL:calendar-description /><CAL:calendar-timezone /><current-user-privilege-set /><CAL:supported-calendar-component-set /><CAL:calendar-home-set /><current-user-principal /></prop></propfind>
    2018-09-03 00:10:50 45357 [HttpClient] --> END PROPFIND (435-byte body)
    2018-09-03 00:10:51 45357 [HttpClient] <-- 404 Not Found https://cloud.disroot.org/remote.php/dav (173ms)
    2018-09-03 00:10:51 45357 [HttpClient] Server: nginx
    2018-09-03 00:10:51 45357 [HttpClient] Date: Mon, 03 Sep 2018 07:10:50 GMT
    2018-09-03 00:10:51 45357 [HttpClient] Content-Type: text/html
    2018-09-03 00:10:51 45357 [HttpClient] Transfer-Encoding: chunked
    2018-09-03 00:10:51 45357 [HttpClient] Connection: keep-alive
    2018-09-03 00:10:51 45357 [HttpClient] Keep-Alive: timeout=30
    2018-09-03 00:10:51 45357 [HttpClient] Vary: Accept-Encoding
    2018-09-03 00:10:51 45357 [HttpClient] 
    2018-09-03 00:10:51 45357 [HttpClient] <html>
    <head><title>404 Not Found</title></head>
    <body bgcolor="white">
    <center><h1>404 Not Found</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    
    2018-09-03 00:10:51 45357 [HttpClient] <-- END HTTP (162-byte body)
    2018-09-03 00:10:51 45357 [ui.setup.DavResourceFinder] PROPFIND/OPTIONS on user-given URL failed
    EXCEPTION at.bitfire.dav4android.exception.NotFoundException: HTTP 404 Not Found
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:275)
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:259)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:351)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:246)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:186)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:112)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:78)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:136)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:120)
    	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:306)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:59)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:47)
    	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    	at java.lang.Thread.run(Thread.java:761)
    
    2018-09-03 00:10:51 45357 [HttpClient] --> PROPFIND https://cloud.disroot.org/.well-known/caldav
    2018-09-03 00:10:51 45357 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-09-03 00:10:51 45357 [HttpClient] Content-Length: 198
    2018-09-03 00:10:51 45357 [HttpClient] Depth: 0
    2018-09-03 00:10:51 45357 [HttpClient] 
    2018-09-03 00:10:51 45357 [HttpClient] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
    2018-09-03 00:10:51 45357 [HttpClient] --> END PROPFIND (198-byte body)
    2018-09-03 00:10:51 45357 [HttpClient] <-- 403 Forbidden https://cloud.disroot.org/.well-known/caldav (172ms)
    2018-09-03 00:10:51 45357 [HttpClient] Server: nginx
    2018-09-03 00:10:51 45357 [HttpClient] Date: Mon, 03 Sep 2018 07:10:50 GMT
    2018-09-03 00:10:51 45357 [HttpClient] Content-Type: text/html
    2018-09-03 00:10:51 45357 [HttpClient] Transfer-Encoding: chunked
    2018-09-03 00:10:51 45357 [HttpClient] Connection: keep-alive
    2018-09-03 00:10:51 45357 [HttpClient] Keep-Alive: timeout=30
    2018-09-03 00:10:51 45357 [HttpClient] Vary: Accept-Encoding
    2018-09-03 00:10:51 45357 [HttpClient] 
    2018-09-03 00:10:51 45357 [HttpClient] <html>
    <head><title>403 Forbidden</title></head>
    <body bgcolor="white">
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    
    2018-09-03 00:10:51 45357 [HttpClient] <-- END HTTP (162-byte body)
    2018-09-03 00:10:51 45357 [ui.setup.DavResourceFinder] Well-known URL detection failed
    EXCEPTION at.bitfire.dav4android.exception.HttpException: HTTP 403 Forbidden
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:283)
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:259)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:351)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:246)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:382)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:116)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:78)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:136)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:120)
    	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:306)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:59)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:47)
    	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    	at java.lang.Thread.run(Thread.java:761)
    
    2018-09-03 00:10:51 45357 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
    2018-09-03 00:10:51 45357 [ui.setup.DavResourceFinder] Looking up SRV records for _caldavs._tcp.cloud.disroot.org
    2018-09-03 00:10:51 45357 [ui.setup.DavResourceFinder] Didn't find caldav service, trying at https://cloud.disroot.org:443
    2018-09-03 00:10:51 45357 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://cloud.disroot.org/.well-known/caldav
    2018-09-03 00:10:51 45357 [HttpClient] --> PROPFIND https://cloud.disroot.org/.well-known/caldav
    2018-09-03 00:10:51 45357 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-09-03 00:10:51 45357 [HttpClient] Content-Length: 198
    2018-09-03 00:10:51 45357 [HttpClient] Depth: 0
    2018-09-03 00:10:51 45357 [HttpClient] 
    2018-09-03 00:10:51 45357 [HttpClient] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
    2018-09-03 00:10:51 45357 [HttpClient] --> END PROPFIND (198-byte body)
    2018-09-03 00:10:51 45357 [HttpClient] <-- 403 Forbidden https://cloud.disroot.org/.well-known/caldav (174ms)
    2018-09-03 00:10:51 45357 [HttpClient] Server: nginx
    2018-09-03 00:10:51 45357 [HttpClient] Date: Mon, 03 Sep 2018 07:10:50 GMT
    2018-09-03 00:10:51 45357 [HttpClient] Content-Type: text/html
    2018-09-03 00:10:51 45357 [HttpClient] Transfer-Encoding: chunked
    2018-09-03 00:10:51 45357 [HttpClient] Connection: keep-alive
    2018-09-03 00:10:51 45357 [HttpClient] Keep-Alive: timeout=30
    2018-09-03 00:10:51 45357 [HttpClient] Vary: Accept-Encoding
    2018-09-03 00:10:51 45357 [HttpClient] 
    2018-09-03 00:10:51 45357 [HttpClient] <html>
    <head><title>403 Forbidden</title></head>
    <body bgcolor="white">
    <center><h1>403 Forbidden</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    
    2018-09-03 00:10:51 45357 [HttpClient] <-- END HTTP (162-byte body)
    2018-09-03 00:10:51 45357 [ui.setup.DavResourceFinder] No resource found
    EXCEPTION at.bitfire.dav4android.exception.HttpException: HTTP 403 Forbidden
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:283)
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:259)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:351)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:246)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:382)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:362)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:135)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:78)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:136)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:120)
    	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:306)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:59)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:47)
    	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    	at java.lang.Thread.run(Thread.java:761)
    
    2018-09-03 00:10:51 45357 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://cloud.disroot.org/
    2018-09-03 00:10:51 45357 [HttpClient] --> PROPFIND https://cloud.disroot.org/
    2018-09-03 00:10:51 45357 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-09-03 00:10:51 45357 [HttpClient] Content-Length: 198
    2018-09-03 00:10:51 45357 [HttpClient] Depth: 0
    2018-09-03 00:10:51 45357 [HttpClient] 
    2018-09-03 00:10:51 45357 [HttpClient] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><current-user-principal /></prop></propfind>
    2018-09-03 00:10:51 45357 [HttpClient] --> END PROPFIND (198-byte body)
    2018-09-03 00:10:51 45357 [HttpClient] <-- 405 Not Allowed https://cloud.disroot.org/ (191ms)
    2018-09-03 00:10:51 45357 [HttpClient] Server: nginx
    2018-09-03 00:10:51 45357 [HttpClient] Date: Mon, 03 Sep 2018 07:10:50 GMT
    2018-09-03 00:10:51 45357 [HttpClient] Content-Type: text/html
    2018-09-03 00:10:51 45357 [HttpClient] Content-Length: 166
    2018-09-03 00:10:51 45357 [HttpClient] Connection: keep-alive
    2018-09-03 00:10:51 45357 [HttpClient] Keep-Alive: timeout=30
    2018-09-03 00:10:51 45357 [HttpClient] 
    2018-09-03 00:10:51 45357 [HttpClient] <html>
    <head><title>405 Not Allowed</title></head>
    <body bgcolor="white">
    <center><h1>405 Not Allowed</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    
    2018-09-03 00:10:51 45357 [HttpClient] <-- END HTTP (166-byte body)
    2018-09-03 00:10:51 45357 [ui.setup.DavResourceFinder] No resource found
    EXCEPTION at.bitfire.dav4android.exception.HttpException: HTTP 405 Not Allowed
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:283)
    	at at.bitfire.dav4android.DavResource.checkStatus(DavResource.kt:259)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:351)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:246)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:382)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:362)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:135)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:78)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:136)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:120)
    	at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:306)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:59)
    	at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:47)
    	at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:138)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    	at java.lang.Thread.run(Thread.java:761)
    
    
    
    SOFTWARE INFORMATION
    Package: at.bitfire.davdroid
    Version: 2.0.3-ose (244) from Aug 29, 2018
    Installed from: com.google.android.packageinstaller
    JB Workaround installed: no
    
    CONNECTIVITY (at the moment)
    Active connection: WiFi, CONNECTED
    
    CONFIGURATION
    Power saving disabled: no
    android.permission.READ_CONTACTS permission: denied
    android.permission.WRITE_CONTACTS permission: denied
    android.permission.READ_CALENDAR permission: denied
    android.permission.WRITE_CALENDAR permission: denied
    org.dmfs.permission.READ_TASKS permission: denied
    org.dmfs.permission.WRITE_TASKS permission: denied
    System-wide synchronization: automatically
    
    SQLITE DUMP
    android_metadata
    	|  locale |
    	|  en_US |
    ----------
    services
    	|  _id | accountName | service | principal |
    ----------
    sqlite_sequence
    	|  name | seq |
    ----------
    homesets
    	|  _id | serviceID | url |
    ----------
    collections
    	|  _id | serviceID | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
    ----------
    
    SYSTEM INFORMATION
    Android version: 7.0 (NPNS25.137-93-14)
    Device: motorola Moto G (5) Plus (potter)
    
    --- END DEBUG INFO ---
    

  • developer

    Hello,
    @73pursuitspecial said in DAVdroid not finding Caldav/Carddav using Disroot:

    2018-09-03 00:10:49 45357 [ui.setup.DavResourceFinder] Checking user-given URL: https://cloud.disroot.org/remote.php/dav
    2018-09-03 00:10:49 45357 [HttpClient] --> PROPFIND https://cloud.disroot.org/remote.php/dav

    2018-09-03 00:10:50 45357 [HttpClient] <-- 404 Not Found https://cloud.disroot.org/remote.php/dav (975ms)

    There seems to be no CalDAV/CardDAV service at this server/endpoint. Maybe it's currently down? Did you already ask server support?



  • @rfc2822 Thank you for your reply. I am a little new to this so I apologise in advance. No I haven't asked server support yet but I will be doing so. So this would be a Disroot/Nextcloud issue and not the app itself? Thanks.


  • developer

    @73pursuitspecial said in DAVdroid not finding Caldav/Carddav using Disroot:

    @rfc2822 So this would be a Disroot/Nextcloud issue and not the app itself? Thanks.

    Seems to be so, or maybe the wrong URL… In any case, I can't see a DAVdroid problem here.

    Please keep us up to date 🙂





  • @rfc2822 Sorry for the wait, time for an update!

    Posted in the Nextcloud forums the same day as my last post here but I have not received a reply thus far. I hope there is a fix because I would love to use DAVdroid. Using Disroot via Desktop works however for whatever reason I can't seem to get it to work through mobile. I've tried the other way as well using just email and pass with the same results.

    Is it possible I am missing a step or is there something I need to configure in Disroot?


  • developer

    @73pursuitspecial Did you try again with the same URL? Maybe it was a temporary server problem?



  • @rfc2822 I've found some documentation that further helped me somewhat in moving forward but have found myself with the same results.

    Howto guide by Disroot

    I still find myself with the message "Server not found". Perhaps servers are down during the night for maintenance as I usually try to connect after midnight.