• I’m looking for some support please.

    I’ve got a Synology NAS running the current version of DSM (DSM 6.2.2-24922 Update 4). I’ve installed CardDAV server, and pointed DAVx5 on my android device to the server according to the exact instructions of https://www.davx5.com/tested-with/synology

    The response is weird:

    • If I connect using http I get no response at all.
    • If I connect using https I get a response, but only Calendar features show up, no CardDAV address book is found
    • I can connect to ip:port for either http or https from the android browser, and there is a server there.

    The log appears to report an authentication failure, but the password is being pre filled by a password manager on my phone. The same password manager I use to log in through my PC browser. And it sort of half works on https, so?

    An example log:

    — BEGIN DEBUG INFO —

    LOGS:
    2019-12-07 19:12:39 2118 [ui.setup.DavResourceFinder] Finding initial carddav service configuration
    2019-12-07 19:12:39 2118 [ui.setup.DavResourceFinder] Checking user-given URL: http://10.0.1.3:8008/addressbooks/users/NAME
    2019-12-07 19:12:39 2118 [HttpClient] --> PROPFIND http://10.0.1.3:8008/addressbooks/users/NAME
    2019-12-07 19:12:39 2118 [HttpClient] Content-Type: application/xml; charset=utf-8
    2019-12-07 19:12:39 2118 [HttpClient] Content-Length: 290
    2019-12-07 19:12:39 2118 [HttpClient] Depth: 0
    2019-12-07 19:12:39 2118 [HttpClient]
    2019-12-07 19:12:39 2118 [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>
    2019-12-07 19:12:39 2118 [HttpClient] --> END PROPFIND (290-byte body)
    2019-12-07 19:12:39 2118 [HttpClient] <-- 401 Unauthorized http://10.0.1.3:8008/addressbooks/users/NAME (52ms)
    2019-12-07 19:12:39 2118 [HttpClient] Date: Sat, 07 Dec 2019 08:12:40 GMT
    2019-12-07 19:12:39 2118 [HttpClient] Content-Type: text/html;charset=utf-8
    2019-12-07 19:12:39 2118 [HttpClient] Content-Length: 343
    2019-12-07 19:12:39 2118 [HttpClient] Server: Twisted/13.0.0 TwistedWeb/9.0.0
    2019-12-07 19:12:39 2118 [HttpClient] Connection: close
    2019-12-07 19:12:39 2118 [HttpClient]
    2019-12-07 19:12:39 2118 [HttpClient] <html>
    <head>
    <title>401 Unauthorized</title>
    </head>
    <body>
    <h1>Unauthorized</h1>
    You are not authorized to view the resource at /addressbooks/users/NAME. Perhaps you entered a wrong password, or perhaps your browser doesn’t support authentication.
    </body>
    </html>
    2019-12-07 19:12:39 2118 [HttpClient] <-- END HTTP (343-byte body)
    2019-12-07 19:12:39 2118 [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:352)
    at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:338)
    at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:432)
    at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:325)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:180)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:115)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:73)
    at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
    at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
    at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

    2019-12-07 19:12:39 2118 [HttpClient] --> PROPFIND http://10.0.1.3:8008/.well-known/carddav
    2019-12-07 19:12:39 2118 [HttpClient] Content-Type: application/xml; charset=utf-8
    2019-12-07 19:12:39 2118 [HttpClient] Content-Length: 198
    2019-12-07 19:12:39 2118 [HttpClient] Depth: 0
    2019-12-07 19:12:39 2118 [HttpClient]
    2019-12-07 19:12:39 2118 [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>
    2019-12-07 19:12:39 2118 [HttpClient] --> END PROPFIND (198-byte body)
    2019-12-07 19:12:39 2118 [HttpClient] <-- 301 Moved Permanently http://10.0.1.3:8008/.well-known/carddav (12ms)
    2019-12-07 19:12:39 2118 [HttpClient] Date: Sat, 07 Dec 2019 08:12:40 GMT
    2019-12-07 19:12:39 2118 [HttpClient] Content-Type: text/html;charset=utf-8
    2019-12-07 19:12:39 2118 [HttpClient] Location: https://localhost:8443/
    2019-12-07 19:12:39 2118 [HttpClient] Content-Length: 146
    2019-12-07 19:12:39 2118 [HttpClient] Server: Twisted/13.0.0 TwistedWeb/9.0.0
    2019-12-07 19:12:39 2118 [HttpClient] Connection: close
    2019-12-07 19:12:39 2118 [HttpClient]
    2019-12-07 19:12:39 2118 [HttpClient] <html><head><title>Moved Permanently</title></head><body><h1>Moved Permanently</h1><p>Document moved to https://localhost:8443/.</p></body></html>
    2019-12-07 19:12:39 2118 [HttpClient] <-- END HTTP (146-byte body)
    2019-12-07 19:12:39 2118 [at.bitfire.dav4jvm.DavResource] Redirected, new location = https://localhost:8443/
    2019-12-07 19:12:39 2118 [HttpClient] --> PROPFIND https://localhost:8443/
    2019-12-07 19:12:39 2118 [HttpClient] Content-Type: application/xml; charset=utf-8
    2019-12-07 19:12:39 2118 [HttpClient] Content-Length: 198
    2019-12-07 19:12:39 2118 [HttpClient] Depth: 0
    2019-12-07 19:12:39 2118 [HttpClient]
    2019-12-07 19:12:39 2118 [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>
    2019-12-07 19:12:39 2118 [HttpClient] --> END PROPFIND (198-byte body)
    2019-12-07 19:12:39 2118 [HttpClient] <-- HTTP FAILED: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:8443
    2019-12-07 19:12:39 2118 [ui.setup.DavResourceFinder] Well-known URL detection failed
    EXCEPTION java.net.ConnectException: Failed to connect to localhost/127.0.0.1:8443
    at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:249)
    at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:167)
    at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:258)
    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:127)
    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:225)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:250)
    at okhttp3.RealCall.execute(RealCall.java:93)
    at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:323)
    at at.bitfire.dav4jvm.DavResource$propfind$1.invoke(DavResource.kt:34)
    at at.bitfire.dav4jvm.DavResource.followRedirects(DavResource.kt:378)
    at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:318)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:385)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:119)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:73)
    at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
    at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
    at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)
    Caused by: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 8443) from /127.0.0.1 (port 42526) after 15000ms: isConnected failed: ECONNREFUSED (Connection refused)
    at libcore.io.IoBridge.isConnected(IoBridge.java:278)
    at libcore.io.IoBridge.connectErrno(IoBridge.java:187)
    at libcore.io.IoBridge.connect(IoBridge.java:129)
    at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:137)
    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.AndroidPlatform.connectSocket(AndroidPlatform.java:73)
    at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:247)
    … 30 more
    Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
    at libcore.io.IoBridge.isConnected(IoBridge.java:267)
    … 40 more

    2019-12-07 19:12:39 2118 [ui.setup.DavResourceFinder] Finding initial caldav service configuration
    2019-12-07 19:12:39 2118 [ui.setup.DavResourceFinder] Checking user-given URL: http://10.0.1.3:8008/addressbooks/users/NAME
    2019-12-07 19:12:39 2118 [HttpClient] --> PROPFIND http://10.0.1.3:8008/addressbooks/users/eric
    2019-12-07 19:12:39 2118 [HttpClient] Content-Type: application/xml; charset=utf-8
    2019-12-07 19:12:39 2118 [HttpClient] Content-Length: 435
    2019-12-07 19:12:39 2118 [HttpClient] Depth: 0
    2019-12-07 19:12:39 2118 [HttpClient]
    2019-12-07 19:12:39 2118 [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>
    2019-12-07 19:12:39 2118 [HttpClient] --> END PROPFIND (435-byte body)
    2019-12-07 19:12:39 2118 [HttpClient] <-- 401 Unauthorized http://10.0.1.3:8008/addressbooks/users/NAME (29ms)
    2019-12-07 19:12:39 2118 [HttpClient] Date: Sat, 07 Dec 2019 08:12:40 GMT
    2019-12-07 19:12:39 2118 [HttpClient] Content-Type: text/html;charset=utf-8
    2019-12-07 19:12:39 2118 [HttpClient] Content-Length: 343
    2019-12-07 19:12:39 2118 [HttpClient] Server: Twisted/13.0.0 TwistedWeb/9.0.0
    2019-12-07 19:12:39 2118 [HttpClient] Connection: close
    2019-12-07 19:12:39 2118 [HttpClient]
    2019-12-07 19:12:39 2118 [HttpClient] <html>
    <head>
    <title>401 Unauthorized</title>
    </head>
    <body>
    <h1>Unauthorized</h1>
    You are not authorized to view the resource at /addressbooks/users/NAME. Perhaps you entered a wrong password, or perhaps your browser doesn’t support authentication.
    </body>
    </html>
    2019-12-07 19:12:39 2118 [HttpClient] <-- END HTTP (343-byte body)
    2019-12-07 19:12:39 2118 [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:352)
    at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:338)
    at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:432)
    at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:325)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.checkUserGivenURL(DavResourceFinder.kt:189)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:115)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:80)
    at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
    at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
    at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

    2019-12-07 19:12:39 2118 [HttpClient] --> PROPFIND http://10.0.1.3:8008/.well-known/caldav
    2019-12-07 19:12:39 2118 [HttpClient] Content-Type: application/xml; charset=utf-8
    2019-12-07 19:12:39 2118 [HttpClient] Content-Length: 198
    2019-12-07 19:12:39 2118 [HttpClient] Depth: 0
    2019-12-07 19:12:39 2118 [HttpClient]
    2019-12-07 19:12:39 2118 [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>
    2019-12-07 19:12:39 2118 [HttpClient] --> END PROPFIND (198-byte body)
    2019-12-07 19:12:39 2118 [HttpClient] <-- 404 Not Found http://10.0.1.3:8008/.well-known/caldav (12ms)
    2019-12-07 19:12:39 2118 [HttpClient] Date: Sat, 07 Dec 2019 08:12:40 GMT
    2019-12-07 19:12:39 2118 [HttpClient] Content-Type: text/html;charset=utf-8
    2019-12-07 19:12:39 2118 [HttpClient] Content-Length: 220
    2019-12-07 19:12:39 2118 [HttpClient] Server: Twisted/13.0.0 TwistedWeb/9.0.0
    2019-12-07 19:12:39 2118 [HttpClient] Connection: close
    2019-12-07 19:12:39 2118 [HttpClient]
    2019-12-07 19:12:39 2118 [HttpClient] <html>
    <head>
    <title>404 Not Found</title>
    </head>
    <body>
    <h1>Not Found</h1>
    The resource /.well-known/caldav cannot be found.
    </body>
    </html>
    2019-12-07 19:12:39 2118 [HttpClient] <-- END HTTP (220-byte body)
    2019-12-07 19:12:39 2118 [ui.setup.DavResourceFinder] Well-known URL detection failed
    EXCEPTION at.bitfire.dav4jvm.exception.NotFoundException: HTTP 404 Not Found
    at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:356)
    at at.bitfire.dav4jvm.DavResource.checkStatus(DavResource.kt:338)
    at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:432)
    at at.bitfire.dav4jvm.DavResource.propfind(DavResource.kt:325)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.getCurrentUserPrincipal(DavResourceFinder.kt:385)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:119)
    at at.bitfire.davdroid.ui.setup.DavResourceFinder.findInitialConfiguration(DavResourceFinder.kt:80)
    at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:83)
    at at.bitfire.davdroid.ui.setup.DetectConfigurationFragment$DetectConfigurationModel$detectConfiguration$2.invoke(DetectConfigurationFragment.kt:62)
    at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

    SOFTWARE INFORMATION

    • at.bitfire.davdroid 2.6.1.1-gplay (315) from com.android.vending
    • com.android.providers.contacts 9 (28)
    • com.android.providers.calendar 10.0.3.0 (10000300)
    • com.android.contacts 11.0.3.0 (103)
    • com.android.calendar 11.0.0.6 (11000006) from com.xiaomi.discover
    • com.google.android.calendar 2019.45.1-279921459-release (2016416004) from com.android.vending

    CONNECTIVITY (at the moment)

    • [ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED Unwanted: LinkUpBandwidth>=1048576Kbps LinkDnBandwidth>=1048576Kbps SignalStrength: -24]

    CONFIGURATION
    Power saving disabled: no
    android.permission.READ_CONTACTS: granted
    android.permission.WRITE_CONTACTS: granted
    android.permission.READ_CALENDAR: granted
    android.permission.WRITE_CALENDAR: granted
    org.dmfs.permission.READ_TASKS: denied
    org.dmfs.permission.WRITE_TASKS: denied
    android.permission.ACCESS_COARSE_LOCATION: denied
    System-wide synchronization: automatically
    Account: Nas calendar
    Address book sync. interval: 240 min
    Calendar sync. interval: 240 min
    OpenTasks sync. interval: —
    WiFi only: false
    [CardDAV] Contact group method: GROUP_VCARDS
    [CalDAV] Time range (past days): 90
    Manage calendar colors: true
    Use event colors: false

    SQLITE DUMP
    android_metadata
    | locale |
    | en_GB |

    service
    | id | accountName | type | principal |
    | 3 | Nas calendar | carddav | http://10.0.1.3:5000/caldav.php/NAME/ |
    | 4 | Nas calendar | caldav | http://10.0.1.3:5000/caldav.php/NAME/ |

    sqlite_sequence
    | name | seq |
    | service | 5 |
    | homeset | 20 |
    | collection | 9 |

    homeset
    | id | serviceId | url | privBind | displayName |
    | 9 | 3 | http://10.0.1.3:5000/caldav.php/NAME/ | 1 |NAME |
    | 10 | 4 | http://10.0.1.3:5000/caldav.php/NAME/ | 1 | NAME |
    | 11 | 3 | http://10.0.1.3:5000/caldav.php/group%3D%3Dadministrators/ | 1 | administrators |
    | 12 | 3 | http://10.0.1.3:5000/caldav.php/group%3D%3Dhttp/ | 1 | http |
    | 13 | 3 | http://10.0.1.3:5000/caldav.php/group%3D%3Dusers/ | 1 | users |
    | 14 | 4 | http://10.0.1.3:5000/caldav.php/group%3D%3Dadministrators/ | 1 | administrators |
    | 15 | 4 | http://10.0.1.3:5000/caldav.php/group%3D%3Dhttp/ | 1 | http |
    | 16 | 4 | http://10.0.1.3:5000/caldav.php/group%3D%3Dusers/ | 1 | users |

    collection
    | id | serviceId | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | supportsVJOURNAL | source | sync |
    | 5 | 4 | CALENDAR | http://10.0.1.3:5000/caldav.php/NAME/home/ | 1 | 1 | 0 | My Calendar | <null> | -1852160 | <null> | 1 | 0 | 0 | <null> | 1 |
    | 6 | 4 | CALENDAR | http://10.0.1.3:5000/caldav.php/NAME/home_todo/ | 1 | 1 | 0 | Inbox | <null> | <null> | <null> | 0 | 1 | 0 | <null> | 0 |

    room_master_table
    | id | identity_hash |
    | 42 | a7554d1ebc5ecfe0c7aefe271485d63c |

    SYSTEM INFORMATION
    Android version: 9 (PKQ1.180904.001)
    Device: Xiaomi Redmi Note 7 (lavender)

    — END DEBUG INFO —

  • developer

    Hello,

    @ronaldo said in CardDAV and Synology can't set up:

    If I connect using http I get no response at all.

    2019-12-07 19:12:39 2118 [HttpClient] <-- 301 Moved Permanently http://10.0.1.3:8008/.well-known/carddav (12ms)
    2019-12-07 19:12:39 2118 [HttpClient] Location: https://localhost:8443/

    Your DiskStation redirects from http://10.0.1.3:8008/.well-known/carddavto https://localhost:8443/, so the detection fails (because localhost is the Android device itself and not the DiskStation).

    So, this is a configuration problem on your DiskStation.

    If I connect using https I get a response, but only Calendar features show up, no CardDAV address book is found

    Can you post the logs for that? Are you sure that you have used the CardDAV URL? Are you sure that the name and password combination is correct? Are you using 2 FA?

    I can connect to ip:port for either http or https from the android browser, and there is a server there.

    You can try to access the CalDAV/CardDAV base URL with your Android browser, and it should ask for username/password. When you then enter it and get something other than 401 Unauthorized, all preconditions are met so that a CalDAV/CardDAV server could possibly run at this URL.


  • Thanks for the response. Do you know what might be causing the redirect to localhost? The CardDAV server on the NAS is installed as a package, and there are very few configuration options… nothing that would cause a redirect. The calendar package is also installed and a connection to that on http:// works fine and even shows the cardDAV features your setup guide advises not to use.

    I can’t post a log of the successful connection on https:// which has no CardDAV features, as no log is generated if the connection appears to set up correctly. When I create and set up that account… I get these setup optionssettings CardDAV url.jpg

    As you can see down the bottom, CardDAV shows up, but there are no options. I am absolutely 100% certain that I’m using the correct CardDAV url and the correct username and password. There is no 2FA.

    Connecting to the base cardDAV url in the browser gives the following:httpURLinAndroidBrowser.jpg

    An attempt to connect to the /addressbooks/users/NAME URL gives a username/password prompt but results in 401 Unauthorized even when using the correct username and password.

    Is there some secret about setting up the CardDAV package on the synology NAS? It shouldn’t be this hard, but I can find no user permission options in DSM relating to CardDAV or calendar.


  • bump


  • @ronaldo said in CardDAV and Synology can't set up:

    Is there some secret about setting up the CardDAV package on the synology NAS?

    I would recommend to ask this question in the Synology support forum, The DAVx5 forum is definitely the wrong place if the intial authentication fails.


  • @j-ed Thanks for the suggestion, but DAVx5 is selling this app as tested with Synology Nas

    https://www.davx5.com/tested-with

    My installation is exactly as stated in the set up instructions, so DAVx5 should be able to diagnose the problem.

    You can imagine the Synology staff probably won’t be interested in supporting a third party app that doesn’t even run on their hardware.


  • Hi ronaldo,

    @ronaldo said in CardDAV and Synology can't set up:

    @j-ed Thanks for the suggestion, but DAVx5 is selling this app as tested with Synology Nas

    https://www.davx5.com/tested-with

    My installation is exactly as stated in the set up instructions, so DAVx5 should be able to diagnose the problem.

    You can imagine the Synology staff probably won’t be interested in supporting a third party app that doesn’t even run on their hardware.

    Well, your interpretation of ‘tested-with’ probabely does not take the biscuit. It’s not about selling any Synology app such as CardDAV server with DAVx5, but more of indicating basic compatibility. And in fact, Synology CardDAV server works in general with DAVx5 which I can confirm from my own experience.

    Second, DAVx5 cannot be made responsible for some strange behaviour (e.g. redirection) outside the scope of DAVx5 and the expectation ‘should be able to diagnose the problem’ is of course desireable however not very realistic.

    Third, using a Synology forum similar to this one is not about bothering Synology staff, more about asking other Synology users.

    Back to the issue, redirection may occur for several reasons. So there are several potential places to cross-check. Since you logs show CardDAV standard ports for http and https, it would be worth to have a look at the CardDAV settings for redirection from http to https. Furthermore, you might also want to check the DSM reverse proxy for potential redirection of the port in question.

    However, the easy way out might be - at least temporarily for testing purposes - to deactivate http to https redirection in CardDAV server and setup any device with https.

    Good luck!

Similar topics