Can't connect to ownCloud through davfs2 or Nautilus

April 5, 2016 680 views
One-Click Install Apps Deployment Apache Ubuntu

I recently installed an ownCloud one-click application on a $10/mo droplet. When I try to access my owncloud files with the browser client, or with an Android client (cirrus), everything seems to work fine. I see two folders, Documents and Photos. But when I use Nautilus (davs://myowncloud/remote.php/dav) or mount the owncloud storage with davfs2, I see 7 folders: addressbooks, calendars, comments, files, etc. files/ is completely empty with davfs, and when I try to open it in Nautilus, I get an error "This location could not be displayed" and "Sorry, could not display all the contents of “files”: HTTP Error: Method Not Allowed".

So I checked the apache access logs:

xxx.xxx.9.90 - admin [05/Apr/2016:18:48:03 -0400] "PROPFIND /remote.php/dav HTTP/1.1" 207 1857 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:03 -0400] "PROPFIND /remote.php/dav HTTP/1.1" 207 5180 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:05 -0400] "PROPFIND /remote.php/dav/files HTTP/1.1" 207 1863 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:05 -0400] "PROPFIND /remote.php/dav/files/ HTTP/1.1" 405 1240 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:07 -0400] "PROPFIND /remote.php/dav/files HTTP/1.1" 207 1863 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:07 -0400] "PROPFIND /remote.php/dav HTTP/1.1" 207 1857 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:08 -0400] "PROPFIND /remote.php/dav HTTP/1.1" 207 5180 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:11 -0400] "PROPFIND /remote.php/dav/principals HTTP/1.1" 207 1868 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:11 -0400] "PROPFIND /remote.php/dav/principals/ HTTP/1.1" 207 3311 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:13 -0400] "PROPFIND /remote.php/dav/principals/users HTTP/1.1" 207 1874 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:13 -0400] "PROPFIND /remote.php/dav/principals/users/ HTTP/1.1" 405 1240 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:15 -0400] "PROPFIND /remote.php/dav/principals HTTP/1.1" 207 1868 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:15 -0400] "PROPFIND /remote.php/dav HTTP/1.1" 207 1857 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:15 -0400] "PROPFIND /remote.php/dav/files HTTP/1.1" 207 1863 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:15 -0400] "PROPFIND /remote.php/dav HTTP/1.1" 207 5180 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:18 -0400] "PROPFIND /remote.php/dav/calendars HTTP/1.1" 207 1867 "-" "gvfs/1.22.2"
xxx.xxx.9.90 - admin [05/Apr/2016:18:48:19 -0400] "PROPFIND /remote.php/dav/calendars/ HTTP/1.1" 405 1240 "-" "gvfs/1.22.2"

It looks like most PROPFIND requests to URIs ending in a slash are returning 405 Method Not Allowed, except certain top-level directories like prinicipals/. All equivalent PROPRFINDs to non-slash URIs result in 207 Multi-Status, which I'm assuming is the expected response.

Any ideas what's going on here?

2 comments
1 Answer

I figured out how to get around the issue. I had to connect to /remote.php/webdav instead of /remote.php/dav ( /dav had been suggested in the official owncloud tutorial).

Have another answer? Share your knowledge.