Auto-discovery with radicale behind nginx



  • Hi,
    DAVDroid works well, but I have to create a new account for every resource by hand, using the absolute URL of the resource.

    I cannot get automatic discovery to work.

    Neither the configuration page of DAVDroid, nor the documentation of radicale has enough details for me to get this combination to work properly.
    I put radicale behind nginx for auth, TLS and nicer URLs.

    Has anyone else managed to get this to work?


  • developer

    @clawoflight Hello, is your base_prefix in Radicale correctly set? It's working here with <radicale_root>/<username>/ as base URL, as described on https://davdroid.bitfire.at/configuration/radicale/

    If this does not work, we would require more details. Please provide steps to reproduce, what you have already tried, debug info, verbose logs etc..



  • @rfc2822 Thanks for the fast reply :)

    base_prefix is correctly set, and can_skip_base_prefix = True is set as well, though I do not rewrite the URLs.

    davdroid logs
    radicale logs:

    2017-02-09 14:12:09,699 - INFO: PROPFIND request at /pim/bennett/ received                                                                                                                                                                    
    2017-02-09 14:12:09,928 - INFO: OPTIONS request at /pim/bennett/ received                                                                                                                                                                     
    2017-02-09 14:12:10,093 - INFO: PROPFIND request at /pim/bennett/ received                                                                                                                                                                    
    2017-02-09 14:12:16,627 - INFO: PROPFIND request at /pim/bennett/ received                                                                                                                                                                    
    2017-02-09 14:12:16,769 - INFO: PROPFIND request at /pim/bennett/ received
    

    nginx access logs:

    IP - bennett [09/Feb/2017:14:12:09 +0100] "PROPFIND /pim/bennett/ HTTP/1.1" 207 753 "-" "DAVdroid/1.4.0.1-ose (2017/02/07; dav4android; okhttp3) Android/5.1.1"
    IP - bennett [09/Feb/2017:14:12:09 +0100] "OPTIONS /pim/bennett/ HTTP/1.1" 200 0 "-" "DAVdroid/1.4.0.1-ose (2017/02/07; dav4android; okhttp3) Android/5.1.1"
    IP - bennett [09/Feb/2017:14:12:10 +0100] "PROPFIND /pim/bennett/ HTTP/1.1" 500 59 "-" "DAVdroid/1.4.0.1-ose (2017/02/07; dav4android; okhttp3) Android/5.1.1"
    IP - bennett [09/Feb/2017:14:12:10 +0100] "PROPFIND /.well-known/caldav HTTP/1.1" 405 172 "-" "DAVdroid/1.4.0.1-ose (2017/02/07; dav4android; okhttp3) Android/5.1.1"
    IP - bennett [09/Feb/2017:14:12:10 +0100] "PROPFIND /.well-known/caldav HTTP/1.1" 405 172 "-" "DAVdroid/1.4.0.1-ose (2017/02/07; dav4android; okhttp3) Android/5.1.1"
    IP - bennett [09/Feb/2017:14:12:16 +0100] "PROPFIND /pim/bennett/ HTTP/1.1" 207 500 "-" "DAVdroid/1.4.0.1-ose (2017/02/07; dav4android; okhttp3) Android/5.1.1"
    IP - bennett [09/Feb/2017:14:12:16 +0100] "PROPFIND /pim/bennett/ HTTP/1.1" 500 59 "-" "DAVdroid/1.4.0.1-ose (2017/02/07; dav4android; okhttp3) Android/5.1.1"
    

    This is my collection folder:

    bennett/
    ├── caldav
    │   ├── private.ics
    │   └── private.ics.props
    └── carddav
        ├── Addressbook.vcf
        ├── Addressbook.vcf.props
        ├── collected.vcf
        └── collected.vcf.props
    

    Radicale version is 1.1.1+20160115-3 (Debian Jessie)
    DAVDroid version is 1.4.0.1-ose (FDroid)


  • developer

    There's some server problem:

    2017-02-09 14:12:08 1 [HttpClient$1] --> PROPFIND https://vps1.piater.name/pim/bennett/ http/1.1
    2017-02-09 14:12:08 1 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2017-02-09 14:12:08 1 [HttpClient$1] Content-Length: 435
    2017-02-09 14:12:08 1 [HttpClient$1] Depth: 0
    2017-02-09 14:12:08 1 [HttpClient$1] 
    2017-02-09 14:12:08 1 [HttpClient$1] <?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>
    2017-02-09 14:12:08 1 [HttpClient$1] --> END PROPFIND (435-byte body)
    2017-02-09 14:12:08 1 [dav4android.BasicDigestAuthHandler] Adding Basic authorization header for https://vps1.piater.name/pim/bennett/
    2017-02-09 14:12:08 1 [HttpClient$1] <-- 500 Internal Server Error https://vps1.piater.name/pim/bennett/ (130ms)
    2017-02-09 14:12:08 1 [HttpClient$1] Server: nginx/1.6.2
    2017-02-09 14:12:08 1 [HttpClient$1] Date: Thu, 09 Feb 2017 13:12:10 GMT
    

    I don't know what the problem is, but I'm quite sure it's not a DAVdroid problem.


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.