How to fix CalDAV|CardDAV|WebDAV problems

Here we try to answer typical questions
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

How to fix CalDAV|CardDAV|WebDAV problems

Postby RandolphCarter » Sun Jan 06, 2013 11:10 am

If you encounter the following scenario:
  • You can access your owncloud web interface
  • The owncloud sync client as well as WebDAV (via some WebDAV client, or a direct access in a browser via http://yourowncloud/remote.php/webdav) aren't working (typically you will see a 401/403/405 error in the logs)
  • You're getting a message "Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken. Please double check the installation guides."

There are few common reasons for such a problem:
  1. You are using an outdated version of the client (upgrade to the newest version, available here, and try again)
  2. Rewrite module is not enabled / not configured or not working properly
  3. On the server running owncloud, a separate WebDAV module is enabled, and it interferes with owncloud's built-in WebDAV module.
  4. You could have some required HTTP verbs disabled
  5. Your webserver has configured a Basic Auth authentication
  6. Your webserver isn't passing your credentials to php in the standard way (You will see a message like "Sabre_DAV_Exception_NotAuthenticated No basic authentication headers were found"). See below for more info.
  7. You have a security software/module (like SELinux) running
  8. One or more module listen in this FAQ is installed / enabled
  9. You might be running ownCloud behind a reverse proxy; in that case you should ensure that your proxy is configured to pass WebDAV queries. See this forum thread for the case of the Pound reverse proxy: viewtopic.php?t=4949
  10. You are using php in cgi mode on CentOS.

"WebDAV interface seems to be broken" message
Basic infos about this problem could be found in the owncloud.log like described in this FAQ thread:

http://forum.owncloud.org/viewtopic.php?f=17&t=7330

Lighttpd users
You need to update lighttpd to a version which supports the PATCH method (at least 1.4.32) or apply this patch to your old version:

http://redmine.lighttpd.net/issues/2424

See also the official documentation for some more infos:

http://doc.owncloud.org/server/6.0/admi ... figuration

Running a test suite against your WebDAV/CalDAV/CardDAV
With litmus it is possible to run some tests against the WebDAV URL of OC to test if your webserver is correctly configured. More infos can be found at the homepage of litmus:

http://www.webdav.org/neon/litmus/
http://sabre.io/dav/litmus/
http://forum.owncloud.org/viewtopic.php?f=8&t=21185 (If you want to test against a SSL enabled webserver)

There also several CalDAV/CardDAV test suites available:

http://trac.calendarserver.org/wiki/CalDAVTester
http://sourceforge.net/apps/trac/funamb ... /TestSuite
http://www.calconnect.org/ioptesting.shtml

To check the rewrite module (apache)
Make sure the rewrite module is enabled; as root, execute:

Code: Select all

a2enmod rewrite

Make sure you have a line like this in your .htaccess:

Code: Select all

RewriteEngine on

If you needed to change anything, restart your apache afterwards ("apache2ctl graceful") - pay attention to any error messages you might receive during server startup!

If you have mod_fcgid running with apache
According to this commit:

https://github.com/owncloud/core/commit ... d86ae14fa7

you should make sure that the following apache modules are enabled:

mod_setenvif
mod_headers

when running mod_fcgid

To check for a WebDAV module:
If this is your own server, see this other FAQ entry about known problems with webserver modules.

If you have owncloud running on a hosting provider, check the provider's configuration interface for your website on any WebDAV configuration options, and disable them, at least for the owncloud folder. If you don't see any such option, you have to ask your hoster to do this for you.

To enable all HTTP verbs:

Workaround for the "No basic authentication headers were found" problem
Check these threads:

To fix problems with SELinux
Check e.g. this thread: http://forum.owncloud.org/viewtopic.php ... 4&start=10

Authentication fails / special characters
Make first sure that you're using no special chars in your password which could cause authentication failures:
https://github.com/owncloud/core/issues/7894
https://github.com/owncloud/core/issues ... t-14232839

Debugging
If nothing of the above helps using a command line tool like cadaver (http://www.webdav.org/cadaver/) like described here:

http://doc.owncloud.org/desktop/2.1/tro ... y-problems

could also provide useful informations about what's wrong with your WebDAV setup.
Last edited by RandolphCarter on Tue Jan 05, 2016 3:23 pm, edited 24 times in total.

bender
Starter
Posts: 77
Joined: Thu Dec 27, 2012 5:09 pm
ownCloud version: 4.5.5

Re: How to fix Web interface working but not WebDAV and clie

Postby bender » Sun Jan 06, 2013 11:23 am

for apache users

Code: Select all

<Location /var/www/owncloud>
Dav Off
</Location>


disabled webdav only for your owncloud installation
Apache 2.2 - PHP 5.3.10 - OC 4.5.5 - ubuntu 12.04

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: How to fix Web interface working but not WebDAV and clie

Postby RandolphCarter » Sun Jan 06, 2013 12:58 pm

Great tip, thanks bender!

For instructions how to do this on IIS, see this post.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: How to fix if Web interface working but not WebDAV/clien

Postby RealRancor » Tue Apr 16, 2013 3:12 pm

If nothings help using a command line tool like cadaver (http://www.webdav.org/cadaver/) like described here:

http://doc.owncloud.org/desktop/1.2/tro ... oting.html

could also provide useful informations about what's wrong with your WebDAV setup.
*gone*

jacobian64
Newbie
Posts: 8
Joined: Wed Apr 10, 2013 7:18 am
ownCloud version: 5.0.3
Webserver: Apache
Database: MySQL
OS: Linux Hosting Package
PHP version: 5.3

Re: How to fix if Web interface working but not WebDAV/clien

Postby jacobian64 » Tue Apr 16, 2013 4:12 pm

Rancor wrote:If nothings help using a command line tool like cadaver (http://www.webdav.org/cadaver/) like described here:

http://doc.owncloud.org/desktop/1.2/tro ... oting.html

could also provide useful informations about what's wrong with your WebDAV setup.


my webdav is working properly, and can be accessed in the browser. it's the 403 forbidden that kept showing up when uploading.

PS: no thanks for deleting my previous posts

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: How to fix if Web interface working but not WebDAV/clien

Postby RealRancor » Tue Apr 16, 2013 4:26 pm

Your posts where splitted into an new thread:

viewtopic.php?f=14&t=10383

because a FAQ entry should be kept clean of support requests and should only contain informations about the specific problem. ;)
*gone*

jacobian64
Newbie
Posts: 8
Joined: Wed Apr 10, 2013 7:18 am
ownCloud version: 5.0.3
Webserver: Apache
Database: MySQL
OS: Linux Hosting Package
PHP version: 5.3

Re: How to fix if Web interface working but not WebDAV/clien

Postby jacobian64 » Tue Apr 16, 2013 5:18 pm

okay then. thanks for letting me know about it

nicopizza
Newbie
Posts: 3
Joined: Fri Jun 14, 2013 12:41 am
ownCloud version: 5.0.7
Webserver: Apache
PHP version: php5

Re: How to fix Web interface working but not WebDAV and clie

Postby nicopizza » Fri Jun 14, 2013 12:46 am

bender wrote:for apache users

Code: Select all

<Location /var/www/owncloud>
Dav Off
</Location>


disabled webdav only for your owncloud installation

where am I supposed to write this code?
thanks

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: How to fix if Web interface working but not WebDAV/clien

Postby RealRancor » Fri Jun 14, 2013 7:45 am

Hi,

you only need this if you have mod_dav running on your server. Then you have to put this in your apache vhost configuration.
*gone*

nicopizza
Newbie
Posts: 3
Joined: Fri Jun 14, 2013 12:41 am
ownCloud version: 5.0.7
Webserver: Apache
PHP version: php5

Re: How to fix if Web interface working but not WebDAV/clien

Postby nicopizza » Sun Jun 16, 2013 3:58 pm

thanks, and sorry for using the FAQ... for future reference, I have OC installed on a MyBook Live, and I have this very issue (web interface OK, Sync client or mapping NOT working)... I strongly believe it is a problem of WebDAV modules conflict. Won't know how to go about...


  • Similar Topics
    Replies
    Views
    Last post

Return to “FAQ”

Who is online

Users browsing this forum: No registered users and 1 guest