Synology QuickConnect: unable to resolve host



  • Hey there,

    for quite some time I fail to set up my DAVdroid together with the CardDav Server on my Synology to synchronize my contacts. Everything works smooth for my Calendar, but I do not manage to access the CardDav Server.

    I followed the guide for setting up DAVdroid with Synology: https://www.davdroid.com/tested-with/synology/

    Whenever I do that, it tries to identify the resource for quite a while, before telling me it could not reach/detect a CardDav resource. I searched the forums, followed other tutorials, but could not find a solution. I tried with https enabled and disabled, reinstalled the CardDav Server and created a new test user.

    This is the url I am using: https://<quickconnectid>.de4.quickconnect.to:8443/addressbooks/users/Jens (tried case sensitive user name and small, no change).

    Could my usage of the Quickconnect-service be the issue? However, this has not been an issue when synchronizing via CalDAV.

    I am looking forward to any help on where I might have went wrong.

    Thanks and cheers
    Jens

    Below you can see the debug log:

    --- BEGIN DEBUG INFO ---
    
    LOGS:
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Finding initial carddav service configuration
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Checking user-given URL: https://<quickconnectid>.de4.quickconnect.to:8443/addressbooks/users/Jens/
    2018-05-07 12:55:40 26625 [HttpClient] --> PROPFIND https://<quickconnectid>.de4.quickconnect.to:8443/addressbooks/users/Jens/
    2018-05-07 12:55:40 26625 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-05-07 12:55:40 26625 [HttpClient] Content-Length: 290
    2018-05-07 12:55:40 26625 [HttpClient] Depth: 0
    2018-05-07 12:55:40 26625 [HttpClient] 
    2018-05-07 12:55:40 26625 [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-05-07 12:55:40 26625 [HttpClient] --> END PROPFIND (290-byte body)
    2018-05-07 12:55:40 26625 [HttpClient] <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] PROPFIND/OPTIONS on user-given URL failed
    EXCEPTION java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:111)
    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
    	at java.net.InetAddress.getAllByName(InetAddress.java:787)
    	at okhttp3.Dns$1.lookup(Dns.java:40)
    	at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:185)
    	at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:149)
    	at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:84)
    	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:214)
    	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
    	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
    	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:213)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
    	at okhttp3.RealCall.execute(RealCall.java:77)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:287)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:166)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:101)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:73)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:139)
    	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:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    	at java.lang.Thread.run(Thread.java:764)
    
    2018-05-07 12:55:40 26625 [HttpClient] --> PROPFIND https://<quickconnectid>.de4.quickconnect.to:8443/.well-known/carddav
    2018-05-07 12:55:40 26625 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-05-07 12:55:40 26625 [HttpClient] Content-Length: 198
    2018-05-07 12:55:40 26625 [HttpClient] Depth: 0
    2018-05-07 12:55:40 26625 [HttpClient] 
    2018-05-07 12:55:40 26625 [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-05-07 12:55:40 26625 [HttpClient] --> END PROPFIND (198-byte body)
    2018-05-07 12:55:40 26625 [HttpClient] <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Well-known URL detection failed
    EXCEPTION java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:111)
    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
    	at java.net.InetAddress.getAllByName(InetAddress.java:787)
    	at okhttp3.Dns$1.lookup(Dns.java:40)
    	at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:185)
    	at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:149)
    	at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:84)
    	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:214)
    	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
    	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
    	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:213)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
    	at okhttp3.RealCall.execute(RealCall.java:77)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:287)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:350)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:105)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:73)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:139)
    	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:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    	at java.lang.Thread.run(Thread.java:764)
    
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Looking up SRV records for _carddavs._tcp.<quickconnectid>.de4.quickconnect.to
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] carddav service discovery failed
    EXCEPTION java.lang.IllegalStateException: activeLink must not be null
    	at at.bitfire.davdroid.DavUtils.prepareLookup(DavUtils.kt:50)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:297)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:123)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:73)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:139)
    	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:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    	at java.lang.Thread.run(Thread.java:764)
    
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Finding initial caldav service configuration
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Checking user-given URL: https://<quickconnectid>.de4.quickconnect.to:8443/addressbooks/users/Jens/
    2018-05-07 12:55:40 26625 [HttpClient] --> PROPFIND https://<quickconnectid>.de4.quickconnect.to:8443/addressbooks/users/Jens/
    2018-05-07 12:55:40 26625 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-05-07 12:55:40 26625 [HttpClient] Content-Length: 435
    2018-05-07 12:55:40 26625 [HttpClient] Depth: 0
    2018-05-07 12:55:40 26625 [HttpClient] 
    2018-05-07 12:55:40 26625 [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-05-07 12:55:40 26625 [HttpClient] --> END PROPFIND (435-byte body)
    2018-05-07 12:55:40 26625 [HttpClient] <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] PROPFIND/OPTIONS on user-given URL failed
    EXCEPTION java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:111)
    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
    	at java.net.InetAddress.getAllByName(InetAddress.java:787)
    	at okhttp3.Dns$1.lookup(Dns.java:40)
    	at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:185)
    	at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:149)
    	at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:84)
    	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:214)
    	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
    	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
    	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:213)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
    	at okhttp3.RealCall.execute(RealCall.java:77)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:287)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:174)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:101)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:74)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:139)
    	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:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    	at java.lang.Thread.run(Thread.java:764)
    
    2018-05-07 12:55:40 26625 [HttpClient] --> PROPFIND https://<quickconnectid>.de4.quickconnect.to:8443/.well-known/caldav
    2018-05-07 12:55:40 26625 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-05-07 12:55:40 26625 [HttpClient] Content-Length: 198
    2018-05-07 12:55:40 26625 [HttpClient] Depth: 0
    2018-05-07 12:55:40 26625 [HttpClient] 
    2018-05-07 12:55:40 26625 [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-05-07 12:55:40 26625 [HttpClient] --> END PROPFIND (198-byte body)
    2018-05-07 12:55:40 26625 [HttpClient] <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Well-known URL detection failed
    EXCEPTION java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:111)
    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
    	at java.net.InetAddress.getAllByName(InetAddress.java:787)
    	at okhttp3.Dns$1.lookup(Dns.java:40)
    	at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:185)
    	at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:149)
    	at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:84)
    	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:214)
    	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
    	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
    	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:213)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
    	at okhttp3.RealCall.execute(RealCall.java:77)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:287)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:350)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:105)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:74)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:139)
    	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:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    	at java.lang.Thread.run(Thread.java:764)
    
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Looking up SRV records for _caldavs._tcp.<quickconnectid>.de4.quickconnect.to
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Didn't find caldav service, trying at https://<quickconnectid>.de4.quickconnect.to:443
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://<quickconnectid>.de4.quickconnect.to/.well-known/caldav
    2018-05-07 12:55:40 26625 [HttpClient] --> PROPFIND https://<quickconnectid>.de4.quickconnect.to/.well-known/caldav
    2018-05-07 12:55:40 26625 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-05-07 12:55:40 26625 [HttpClient] Content-Length: 198
    2018-05-07 12:55:40 26625 [HttpClient] Depth: 0
    2018-05-07 12:55:40 26625 [HttpClient] 
    2018-05-07 12:55:40 26625 [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-05-07 12:55:40 26625 [HttpClient] --> END PROPFIND (198-byte body)
    2018-05-07 12:55:40 26625 [HttpClient] <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] No resource found
    EXCEPTION java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:111)
    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
    	at java.net.InetAddress.getAllByName(InetAddress.java:787)
    	at okhttp3.Dns$1.lookup(Dns.java:40)
    	at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:185)
    	at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:149)
    	at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:84)
    	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:214)
    	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
    	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
    	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:213)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
    	at okhttp3.RealCall.execute(RealCall.java:77)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:287)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:350)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:332)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:123)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:74)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:139)
    	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:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    	at java.lang.Thread.run(Thread.java:764)
    
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://<quickconnectid>.de4.quickconnect.to/
    2018-05-07 12:55:40 26625 [HttpClient] --> PROPFIND https://<quickconnectid>.de4.quickconnect.to/
    2018-05-07 12:55:40 26625 [HttpClient] Content-Type: application/xml; charset=utf-8
    2018-05-07 12:55:40 26625 [HttpClient] Content-Length: 198
    2018-05-07 12:55:40 26625 [HttpClient] Depth: 0
    2018-05-07 12:55:40 26625 [HttpClient] 
    2018-05-07 12:55:40 26625 [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-05-07 12:55:40 26625 [HttpClient] --> END PROPFIND (198-byte body)
    2018-05-07 12:55:40 26625 [HttpClient] <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    2018-05-07 12:55:40 26625 [ui.setup.DavResourceFinder] No resource found
    EXCEPTION java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname
    	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:111)
    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:90)
    	at java.net.InetAddress.getAllByName(InetAddress.java:787)
    	at okhttp3.Dns$1.lookup(Dns.java:40)
    	at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:185)
    	at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:149)
    	at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:84)
    	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:214)
    	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
    	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
    	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:213)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
    	at okhttp3.RealCall.execute(RealCall.java:77)
    	at at.bitfire.dav4android.DavResource.propfind(DavResource.kt:287)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:350)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:332)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:123)
    	at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:74)
    	at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$ServerConfigurationLoader.loadInBackground(DetectConfigurationFragment.kt:139)
    	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:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    	at java.lang.Thread.run(Thread.java:764)
    

  • developer

    Hello,

    @jebr said in Synology CardDav resource not found:

    2018-05-07 12:55:40 26625 [HttpClient] <-- HTTP FAILED: java.net.UnknownHostException: Unable to resolve host "<quickconnectid>.de4.quickconnect.to": No address associated with hostname

    This is a DNS/networking problem. Please check your DNS settings. You can try it out by visiting <quickconnectid>.de4.quickconnect.to with your Android browser – if this works, it should also work with DAVdroid.

    You may also try another connection type (WiFi / mobile data), if your QuickConnect ID is accessible from outside.

    Does this help?



  • @rfc2822 thanks for the quick reply. Unfortunately I did not get notified, therefore my late answer.

    I tried accessing the url with my android browser from WiFi and mobile data and it works, I get redirected to log in to my NAS. Similarly, I am already checking out my calendar from remote, so generally my Synology NAS is accessible from outside.

    I am wondering if the problem lies in the https and port part of the url. When I use the full URL, as noted in my initial post, in the browser I receive a "page not found" error. Should I be seeing content here?


  • developer

    @jebr Yes, it should ask for username/password.

    However, if there's at least a connection from your browser, it should work with DAVdroid, too.



  • @rfc2822

    I just checked. I can acces my NAS via the normal URL from outside, but when I access the full addressbook CardDAV url (see above) it tries to connect for ages before telling me "The website is not reachable".

    So, does this mean my CardDAV server/package is not correctly set up or reachable, as I should be prompted a username and password, even in my android browser?


  • admin

    Did you try from the desktop or mobile browser?


  • developer

    @jebr said in Synology QuickConnect: unable to resolve host:

    I just checked. I can acces my NAS via the normal URL from outside, but when I access the full addressbook CardDAV url (see above) it tries to connect for ages before telling me "The website is not reachable".

    Then this is the same thing as DAVdroid experiences.

    So, does this mean my CardDAV server/package is not correctly set up or reachable, as I should be prompted a username and password, even in my android browser?

    Could also be a networking problem. However, it does not look like a DAVdroid problem, because

    1. the DAVdroid error message indicates a connectivity problem, and
    2. other apps like your browser have this connection problem, too.


  • @devvv4ever I used both my mobile chrome browser aswell as my desktop firefox browser