Error 405 (PROPFIND: Method not allowed Exception) when trying to setup DAVDROID on new OwnCloud 9 server



  • I have a working owncloud 8.0 server, and have been pleased with trouble-free DAVDroid operation from day 1. That 8.0 server is a virtualized bitnami appliance, so I didn't build it up myself.

    I have now created my own, from scratch OwnCloud 9.1.4 server, and it is working fine, except that I cannot seem to configure DAVDroid to work with it. I have a vanilla HTTPS-only installation, with certificates configured by letsencrypt (using a guide here: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-owncloud-on-ubuntu-16-04)

    The only thing different from the vanilla application is that rather than https://server.org/owncloud, owncloud is at the root (so https://server.org is fine).

    The error that I get when trying to configure DAVDroid is 405, saying that PROPFIND method is not allowed. (See log at http://www.lovelady.com/misc/davdroid-debug.txt). This seems to happen early in the process (at line 10 of the log).

    Based on some research, I'm tempted to turn module Dav on in the configuration, but I've found conflicting information about that. Currently, /etc/apache2/conf-available/owncloud.conf contains:

    Alias /owncloud "/var/www/owncloud/"
    <Directory "/var/www/owncloud">
      Options +FollowSymLinks
      AllowOverride All
    
      <IfModule mod_dav.c>
            Dav off
      </IfModule>
    
      SetEnv HOME /var/www/owncloud
      SetEnv HTTP_HOME /var/www/owncloud
    </Directory>
    
    <Directory "/var/www/owncloud/data/">
      # just in case if .htaccess gets disabled
        Require all denied
    </Directory>
    

    The top of /var/www/owncloud/.htaccess looks like this:

    <IfModule mod_headers.c>
      <IfModule mod_setenvif.c>
        <IfModule mod_fcgid.c>
           SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
           RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
        </IfModule>
        <IfModule mod_proxy_fcgi.c>
           SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
        </IfModule>
      </IfModule>
    
      Redirect 301 /.well-known/carddav /remote.php/dav
      Redirect 301 /.well-known/caldav  /remote.php/dav
    

    The reason I haven't turned David on (for now) is that the Android app owncloud works, and apparently it uses WebDAV to do its work. But of course, it doesn't use CalDAV nor CardDAV.

    I welcome any suggestions you may have.

    Thanks,
    Dennis



  • Of course, I meant to write "DAV" where I wrote "David." I suspect the spell-checker got me there.


Log in to reply
 

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