Thanks, seems that this only applies to older versions of the CardDAV server. Did you update the CardDAV server package as well (not only the base system)?
We have added this information to https://www.davdroid.com/tested-with/synology/ again.
Unfortunately, I can’t find a solution to my problem. With two other phones the connection to my NAS works.
Thanks for your help, Jimmy
SOFTWARE INFORMATION
at.bitfire.davdroid 3.3.7-ose
SYSTEM INFORMATION
Android version: 10 - crDroid 6.12
CONFIGURATION
Power saving disabled: yes
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] Finding initial carddav service configuration
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] Checking user-given URL: https://192.168.100.100:8443/addressbooks/users/Jimmy
2021-01-01 15:48:01 340 [HttpClient] --> PROPFIND https://192.168.100.100:8443/addressbooks/users/Jimmy
2021-01-01 15:48:01 340 [HttpClient] Content-Type: application/xml; charset=utf-8
2021-01-01 15:48:01 340 [HttpClient] Content-Length: 290
2021-01-01 15:48:01 340 [HttpClient] Depth: 0
2021-01-01 15:48:01 340 [HttpClient] Accept-Encoding: br,gzip
2021-01-01 15:48:01 340 [HttpClient]
2021-01-01 15:48:01 340 [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>
2021-01-01 15:48:01 340 [HttpClient] --> END PROPFIND (290-byte body)
2021-01-01 15:48:01 340 [HttpClient] <-- 401 Unauthorized https://192.168.100.100:8443/addressbooks/users/Jimmy (115ms)
2021-01-01 15:48:01 340 [HttpClient] WWW-Authenticate: basic realm="CardDAVServer"
2021-01-01 15:48:01 340 [HttpClient] Content-Type: text/html;charset=utf-8
2021-01-01 15:48:01 340 [HttpClient] Date: Fri, 01 Jan 2021 14:48:01 GMT
2021-01-01 15:48:01 340 [HttpClient] Content-Length: 141
2021-01-01 15:48:01 340 [HttpClient] Server: Twisted/13.0.0 TwistedWeb/9.0.0
2021-01-01 15:48:01 340 [HttpClient] Strict-Transport-Security: max-age=604800
2021-01-01 15:48:01 340 [HttpClient] Connection: close
2021-01-01 15:48:01 340 [HttpClient]
2021-01-01 15:48:01 340 [HttpClient] <html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
2021-01-01 15:48:01 340 [HttpClient] <-- END HTTP (141-byte body)
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] PROPFIND/OPTIONS on user-given URL failed
EXCEPTION at.bitfire.dav4jvm.exception.UnauthorizedException: HTTP 401 Unauthorized
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:11)
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:3)
at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:11)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:8)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:27)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:1)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:6)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:1)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:1)
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] Finding initial carddav service configuration
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] Checking user-given URL: https://192.168.100.100:8443/addressbooks/users/Jimmy
2021-01-01 15:48:01 340 [HttpClient] --> PROPFIND https://192.168.100.100:8443/addressbooks/users/Jimmy
2021-01-01 15:48:01 340 [HttpClient] Content-Type: application/xml; charset=utf-8
2021-01-01 15:48:01 340 [HttpClient] Content-Length: 290
2021-01-01 15:48:01 340 [HttpClient] Depth: 0
2021-01-01 15:48:01 340 [HttpClient] Accept-Encoding: br,gzip
2021-01-01 15:48:01 340 [HttpClient]
2021-01-01 15:48:01 340 [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>
2021-01-01 15:48:01 340 [HttpClient] --> END PROPFIND (290-byte body)
2021-01-01 15:48:01 340 [HttpClient] <-- 401 Unauthorized https://192.168.100.100:8443/addressbooks/users/Jimmy (115ms)
2021-01-01 15:48:01 340 [HttpClient] WWW-Authenticate: basic realm="CardDAVServer"
2021-01-01 15:48:01 340 [HttpClient] Content-Type: text/html;charset=utf-8
2021-01-01 15:48:01 340 [HttpClient] Date: Fri, 01 Jan 2021 14:48:01 GMT
2021-01-01 15:48:01 340 [HttpClient] Content-Length: 141
2021-01-01 15:48:01 340 [HttpClient] Server: Twisted/13.0.0 TwistedWeb/9.0.0
2021-01-01 15:48:01 340 [HttpClient] Strict-Transport-Security: max-age=604800
2021-01-01 15:48:01 340 [HttpClient] Connection: close
2021-01-01 15:48:01 340 [HttpClient]
2021-01-01 15:48:01 340 [HttpClient] <html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
2021-01-01 15:48:01 340 [HttpClient] <-- END HTTP (141-byte body)
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] PROPFIND/OPTIONS on user-given URL failed
EXCEPTION at.bitfire.dav4jvm.exception.UnauthorizedException: HTTP 401 Unauthorized
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:11)
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:3)
at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:11)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:8)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:27)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:1)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:6)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:1)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:1)
2021-01-01 15:48:01 340 [HttpClient] --> PROPFIND https://192.168.100.100:8443/.well-known/carddav
2021-01-01 15:48:01 340 [HttpClient] Content-Type: application/xml; charset=utf-8
2021-01-01 15:48:01 340 [HttpClient] Content-Length: 198
2021-01-01 15:48:01 340 [HttpClient] Depth: 0
2021-01-01 15:48:01 340 [HttpClient] Accept-Encoding: br,gzip
2021-01-01 15:48:01 340 [HttpClient]
2021-01-01 15:48:01 340 [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>
2021-01-01 15:48:01 340 [HttpClient] --> END PROPFIND (198-byte body)
2021-01-01 15:48:01 340 [HttpClient] <-- 401 Unauthorized https://192.168.100.100:8443/.well-known/carddav (83ms)
2021-01-01 15:48:01 340 [HttpClient] WWW-Authenticate: basic realm="CardDAVServer"
2021-01-01 15:48:01 340 [HttpClient] Content-Type: text/html;charset=utf-8
2021-01-01 15:48:01 340 [HttpClient] Date: Fri, 01 Jan 2021 14:48:01 GMT
2021-01-01 15:48:01 340 [HttpClient] Content-Length: 141
2021-01-01 15:48:01 340 [HttpClient] Server: Twisted/13.0.0 TwistedWeb/9.0.0
2021-01-01 15:48:01 340 [HttpClient] Strict-Transport-Security: max-age=604800
2021-01-01 15:48:01 340 [HttpClient] Connection: close
2021-01-01 15:48:01 340 [HttpClient]
2021-01-01 15:48:01 340 [HttpClient] <html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
2021-01-01 15:48:01 340 [HttpClient] <-- END HTTP (141-byte body)
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] Well-known URL detection failed
EXCEPTION at.bitfire.dav4jvm.exception.UnauthorizedException: HTTP 401 Unauthorized
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:11)
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:3)
at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:11)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:2)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:29)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:1)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:6)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:1)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:1)
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] Looking up SRV records for _carddavs._tcp.192.168.100.100
2021-01-01 15:48:01 340 [ui.setup.DavResourceFinder] Didn't find carddav service, trying at https://192.168.100.100:443
2021-01-01 15:48:02 340 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://192.168.100.100/.well-known/carddav
2021-01-01 15:48:02 340 [HttpClient] --> PROPFIND https://192.168.100.100/.well-known/carddav
2021-01-01 15:48:02 340 [HttpClient] Content-Type: application/xml; charset=utf-8
2021-01-01 15:48:02 340 [HttpClient] Content-Length: 198
2021-01-01 15:48:02 340 [HttpClient] Depth: 0
2021-01-01 15:48:02 340 [HttpClient] Accept-Encoding: br,gzip
2021-01-01 15:48:02 340 [HttpClient]
2021-01-01 15:48:02 340 [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>
2021-01-01 15:48:02 340 [HttpClient] --> END PROPFIND (198-byte body)
2021-01-01 15:48:17 340 [HttpClient] <-- HTTP FAILED: java.net.SocketTimeoutException: failed to connect to /192.168.100.100 (port 443) from /192.168.100.101 (port 47440) after 15000ms
2021-01-01 15:48:17 340 [ui.setup.DavResourceFinder] No resource found
EXCEPTION java.net.SocketTimeoutException: failed to connect to /192.168.100.100 (port 443) from /192.168.100.101 (port 47440) after 15000ms
at libcore.io.IoBridge.connectErrno(IoBridge.java:191)
at libcore.io.IoBridge.connect(IoBridge.java:135)
at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436)
at java.net.Socket.connect(Socket.java:621)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:1)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:17)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:26)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:111)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:20)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:213)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:38)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:35)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:52)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.brotli.BrotliInterceptor.intercept(BrotliInterceptor.kt:31)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:25)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:13)
at at.bitfire.dav4jvm.DavResource$propfind$2.invoke(DavResource.kt:19)
at at.bitfire.dav4jvm.DavResource$propfind$2.invoke(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.followRedirects$build(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:10)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:2)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:28)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:34)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:1)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:6)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:1)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:1)
2021-01-01 15:48:17 340 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://192.168.100.100/
2021-01-01 15:48:17 340 [HttpClient] --> PROPFIND https://192.168.100.100/
2021-01-01 15:48:17 340 [HttpClient] Content-Type: application/xml; charset=utf-8
2021-01-01 15:48:17 340 [HttpClient] Content-Length: 198
2021-01-01 15:48:17 340 [HttpClient] Depth: 0
2021-01-01 15:48:17 340 [HttpClient] Accept-Encoding: br,gzip
2021-01-01 15:48:17 340 [HttpClient]
2021-01-01 15:48:17 340 [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>
2021-01-01 15:48:17 340 [HttpClient] --> END PROPFIND (198-byte body)
2021-01-01 15:48:32 340 [HttpClient] <-- HTTP FAILED: java.net.SocketTimeoutException: failed to connect to /192.168.100.100 (port 443) from /192.168.100.101 (port 47441) after 15000ms
2021-01-01 15:48:32 340 [ui.setup.DavResourceFinder] No resource found
EXCEPTION java.net.SocketTimeoutException: failed to connect to /192.168.100.100 (port 443) from /192.168.100.101 (port 47441) after 15000ms
at libcore.io.IoBridge.connectErrno(IoBridge.java:191)
at libcore.io.IoBridge.connect(IoBridge.java:135)
at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436)
at java.net.Socket.connect(Socket.java:621)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:1)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:17)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:26)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:111)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:20)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:213)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:38)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:35)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:52)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.brotli.BrotliInterceptor.intercept(BrotliInterceptor.kt:31)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:25)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:13)
at at.bitfire.dav4jvm.DavResource$propfind$2.invoke(DavResource.kt:19)
at at.bitfire.dav4jvm.DavResource$propfind$2.invoke(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.followRedirects$build(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:10)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:2)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:28)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:34)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:1)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:6)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:1)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:1)
2021-01-01 15:48:32 340 [ui.setup.DavResourceFinder] Finding initial caldav service configuration
2021-01-01 15:48:32 340 [ui.setup.DavResourceFinder] Checking user-given URL: https://192.168.100.100:8443/addressbooks/users/Jimmy
2021-01-01 15:48:32 340 [HttpClient] --> PROPFIND https://192.168.100.100:8443/addressbooks/users/Jimmy
2021-01-01 15:48:32 340 [HttpClient] Content-Type: application/xml; charset=utf-8
2021-01-01 15:48:32 340 [HttpClient] Content-Length: 435
2021-01-01 15:48:32 340 [HttpClient] Depth: 0
2021-01-01 15:48:32 340 [HttpClient] Accept-Encoding: br,gzip
2021-01-01 15:48:32 340 [HttpClient]
2021-01-01 15:48:32 340 [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>
2021-01-01 15:48:32 340 [HttpClient] --> END PROPFIND (435-byte body)
2021-01-01 15:48:32 340 [HttpClient] <-- 401 Unauthorized https://192.168.100.100:8443/addressbooks/users/Jimmy (122ms)
2021-01-01 15:48:32 340 [HttpClient] WWW-Authenticate: basic realm="CardDAVServer"
2021-01-01 15:48:32 340 [HttpClient] Content-Type: text/html;charset=utf-8
2021-01-01 15:48:32 340 [HttpClient] Date: Fri, 01 Jan 2021 14:48:31 GMT
2021-01-01 15:48:32 340 [HttpClient] Content-Length: 141
2021-01-01 15:48:32 340 [HttpClient] Server: Twisted/13.0.0 TwistedWeb/9.0.0
2021-01-01 15:48:32 340 [HttpClient] Strict-Transport-Security: max-age=604800
2021-01-01 15:48:32 340 [HttpClient] Connection: close
2021-01-01 15:48:32 340 [HttpClient]
2021-01-01 15:48:32 340 [HttpClient] <html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
2021-01-01 15:48:32 340 [HttpClient] <-- END HTTP (141-byte body)
2021-01-01 15:48:32 340 [ui.setup.DavResourceFinder] PROPFIND/OPTIONS on user-given URL failed
EXCEPTION at.bitfire.dav4jvm.exception.UnauthorizedException: HTTP 401 Unauthorized
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:11)
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:3)
at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:11)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:13)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:27)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:4)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:6)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:1)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:1)
2021-01-01 15:48:32 340 [HttpClient] --> PROPFIND https://192.168.100.100:8443/.well-known/caldav
2021-01-01 15:48:32 340 [HttpClient] Content-Type: application/xml; charset=utf-8
2021-01-01 15:48:32 340 [HttpClient] Content-Length: 198
2021-01-01 15:48:32 340 [HttpClient] Depth: 0
2021-01-01 15:48:32 340 [HttpClient] Accept-Encoding: br,gzip
2021-01-01 15:48:32 340 [HttpClient]
2021-01-01 15:48:32 340 [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>
2021-01-01 15:48:32 340 [HttpClient] --> END PROPFIND (198-byte body)
2021-01-01 15:48:32 340 [HttpClient] <-- 401 Unauthorized https://192.168.100.100:8443/.well-known/caldav (84ms)
2021-01-01 15:48:32 340 [HttpClient] WWW-Authenticate: basic realm="CardDAVServer"
2021-01-01 15:48:32 340 [HttpClient] Content-Type: text/html;charset=utf-8
2021-01-01 15:48:32 340 [HttpClient] Date: Fri, 01 Jan 2021 14:48:31 GMT
2021-01-01 15:48:32 340 [HttpClient] Content-Length: 141
2021-01-01 15:48:32 340 [HttpClient] Server: Twisted/13.0.0 TwistedWeb/9.0.0
2021-01-01 15:48:32 340 [HttpClient] Strict-Transport-Security: max-age=604800
2021-01-01 15:48:32 340 [HttpClient] Connection: close
2021-01-01 15:48:32 340 [HttpClient]
2021-01-01 15:48:32 340 [HttpClient] <html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>
2021-01-01 15:48:32 340 [HttpClient] <-- END HTTP (141-byte body)
2021-01-01 15:48:32 340 [ui.setup.DavResourceFinder] Well-known URL detection failed
EXCEPTION at.bitfire.dav4jvm.exception.UnauthorizedException: HTTP 401 Unauthorized
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:11)
at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:3)
at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:11)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:2)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:29)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:4)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:6)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:1)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:1)
2021-01-01 15:48:32 340 [ui.setup.DavResourceFinder] No principal found at user-given URL, trying to discover
2021-01-01 15:48:32 340 [ui.setup.DavResourceFinder] Looking up SRV records for _caldavs._tcp.192.168.100.100
2021-01-01 15:48:32 340 [ui.setup.DavResourceFinder] Didn't find caldav service, trying at https://192.168.100.100:443
2021-01-01 15:48:32 340 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://192.168.100.100/.well-known/caldav
2021-01-01 15:48:32 340 [HttpClient] --> PROPFIND https://192.168.100.100/.well-known/caldav
2021-01-01 15:48:32 340 [HttpClient] Content-Type: application/xml; charset=utf-8
2021-01-01 15:48:32 340 [HttpClient] Content-Length: 198
2021-01-01 15:48:32 340 [HttpClient] Depth: 0
2021-01-01 15:48:32 340 [HttpClient] Accept-Encoding: br,gzip
2021-01-01 15:48:32 340 [HttpClient]
2021-01-01 15:48:32 340 [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>
2021-01-01 15:48:32 340 [HttpClient] --> END PROPFIND (198-byte body)
2021-01-01 15:48:47 340 [HttpClient] <-- HTTP FAILED: java.net.SocketTimeoutException: failed to connect to /192.168.100.100 (port 443) from /192.168.100.101 (port 47444) after 15000ms
2021-01-01 15:48:47 340 [ui.setup.DavResourceFinder] No resource found
EXCEPTION java.net.SocketTimeoutException: failed to connect to /192.168.100.100 (port 443) from /192.168.100.101 (port 47444) after 15000ms
at libcore.io.IoBridge.connectErrno(IoBridge.java:191)
at libcore.io.IoBridge.connect(IoBridge.java:135)
at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436)
at java.net.Socket.connect(Socket.java:621)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:1)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:17)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:26)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:111)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:20)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:213)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:38)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:35)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:52)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.brotli.BrotliInterceptor.intercept(BrotliInterceptor.kt:31)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:25)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:13)
at at.bitfire.dav4jvm.DavResource$propfind$2.invoke(DavResource.kt:19)
at at.bitfire.dav4jvm.DavResource$propfind$2.invoke(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.followRedirects$build(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:10)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:2)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:28)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:34)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:4)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:6)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:1)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:1)
2021-01-01 15:48:47 340 [ui.setup.DavResourceFinder] Trying to determine principal from initial context path=https://192.168.100.100/
2021-01-01 15:48:47 340 [HttpClient] --> PROPFIND https://192.168.100.100/
2021-01-01 15:48:47 340 [HttpClient] Content-Type: application/xml; charset=utf-8
2021-01-01 15:48:47 340 [HttpClient] Content-Length: 198
2021-01-01 15:48:47 340 [HttpClient] Depth: 0
2021-01-01 15:48:47 340 [HttpClient] Accept-Encoding: br,gzip
2021-01-01 15:48:47 340 [HttpClient]
2021-01-01 15:48:47 340 [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>
2021-01-01 15:48:47 340 [HttpClient] --> END PROPFIND (198-byte body)
2021-01-01 15:49:02 340 [HttpClient] <-- HTTP FAILED: java.net.SocketTimeoutException: failed to connect to /192.168.100.100 (port 443) from /192.168.100.101 (port 47445) after 15000ms
2021-01-01 15:49:02 340 [ui.setup.DavResourceFinder] No resource found
EXCEPTION java.net.SocketTimeoutException: failed to connect to /192.168.100.100 (port 443) from /192.168.100.101 (port 47445) after 15000ms
at libcore.io.IoBridge.connectErrno(IoBridge.java:191)
at libcore.io.IoBridge.connect(IoBridge.java:135)
at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436)
at java.net.Socket.connect(Socket.java:621)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:1)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:17)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:26)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:111)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:20)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:213)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:38)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:35)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:52)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.brotli.BrotliInterceptor.intercept(BrotliInterceptor.kt:31)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:14)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:25)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:13)
at at.bitfire.dav4jvm.DavResource$propfind$2.invoke(DavResource.kt:19)
at at.bitfire.dav4jvm.DavResource$propfind$2.invoke(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.followRedirects$build(DavResource.kt:1)
at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:10)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:2)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.discoverPrincipalUrl(DavResourceFinder.kt:28)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:34)
at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:4)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:6)
at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:1)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:1)
@jimmy I’m personally not using that function but based on the following guide I would assume that you’re using the wrong port (8443/tcp) although it most likely should be (5000/5001/tcp)?!
@j-ed Link is known to me, thank you.
Ports are correct:
“CardDAV Base URL:http(s)://example.com:port/addressbooks/users/YOUR_USERNAME
(for example: https://diskstation.example.com:8443/addressbooks/users/sample if your user name is sample)”
This setting also works perfectly with the other phones.
@jimmy The DiskStation says you’re not authorized, i.e. username/password are wrong. Maybe you have pasted some space with the name or password? Or maybe the IP of this phone is locked because of too many wrong tries?
@rfc2822 I also interpreted the log this way, but unfortunately I haven’t found the problem on Synology yet either. It was worth a try, thanks for your info.
@jimmy Maybe there are some useful Synology logs with more information?
@rfc2822 said in Synology - 401 Unauthorized:
@jimmy …Or maybe the IP of this phone is locked because of too many wrong tries?
Sorry!!!
Crap, I hadn’t looked under Security - Account - Sharing/Blocking List…
Thanks a lot, that was the crucial hint!
@jimmy Thanks for the update and good to hear that it now works for you! Maybe the thread can help others with the same problem.