Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must disable locking with davfs2 when using owncloud #9176

Closed
callegar opened this issue Jun 23, 2014 · 4 comments
Closed

Must disable locking with davfs2 when using owncloud #9176

callegar opened this issue Jun 23, 2014 · 4 comments

Comments

@callegar
Copy link

Hi,

I have an issue when using davfs2 to mount owncloud storage space.

Unless I disable the locking in the davfs2 configuration, I continuously get input-output errors when renaming directories.

This is very evident when using the file synchronizer 'unison' over the webdav mounts, since this synchronizer does a lot of renames.

Disabling the locking in davfs2 seems wrong, but makes everything work and also seems to make operation faster when there are many small files to be copied over the webdav mount. However, it also seems the wrong thing to do... any idea? An issue in owncloud? In sabredav? in davfs2?

Note that it is not just me having this issue. I came to trying disable the locking because I found the hint to disable the locking by googling on the net.

@karlitschek
Copy link
Contributor

At the moment ownCloud doesn´t support WebDAV locks. Disabling them in davfs2 should be no problem

@callegar
Copy link
Author

Thanks for the explanation! Now the issue with davfs2 is clear.

Yet, if ownCloud does not support WebDAV locks, IMHO one of the following two actions should be performed:

  1. the webdav server should not claim to support locks. AFAIK, davfs2 disables locking automatically, unless the server says it supports locks. If this is the case, the fact that davfs2 has issues with locks may be the sign that owncloud claims to be able to provide locks.

  2. The instructions in the 'Accessing your Files (WebDav)' section of the manual should be made more clear... As they are, it looks like the need to add the "use_locks 0" to the davfs2 config file may depend on your particular setup and manifests via the 'Resource temporarily unavailable' error. In my case, I was getting an 'Input output error'. IMHO, the addition of the "use_locks 0" to the davfs config file should be marked as a plain requisite, rather than something to do only in case of 'resource temporarily unavailable' errors.

@ThomDietrich
Copy link

Just a quick note for others interested in this issue: It seems action 1 by @callegar was implemented by now.

/sbin/mount.davfs: warning: the server does not support locks

users: Imho no action is required on your side.
devs: lock support would still be nice.

@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants