Hi,
trying to make git annex work locally with an apache webdav server.
I have the webdav server working without issue on computers. When we try to init the repository there we get the following error:
WEBDAV_USERNAME=user WEBDAV_PASSWORD=xxxxxx git annex initremote webdavtest type=webdav url=http://webdavserver/webdavsgare/annextest4 encryption=none initremote webdavtest (testing WebDAV server...)
git-annex: WebDAV failed to delete file: "Locked": user error failed git-annex: initremote: 1 failed
Does anyone have any thoughts? I can post config of webdav if it helps, though the error I receive in the error_log of apache is as follows:
This resource is locked and an "If:" header was not supplied to allow access to the resource. [423, #0]
but I can manage the files through command line, web interface and mounted drive with no issue.
thank you in advance.
Damien
The webdav library that git-annex uses does some webdav file locking. When deleting a file, it first locks it. It sounds like your webdav server does not like to delete a file that has been locked. Whether this is in spec I don't know.
I do know that got rid of all the webdav locking stuff in a revamp of git-annex's webdav support 2 days ago! git-annex does not need locking the way it uses webdav.
However, the daily builds are still built with an old version of the DAV library, which still does the locking ... and will probably remain like that for some time. To get the new version without locking, you need to build git-annex from its git master on a system with http://hackage.haskell.org/package/DAV version 0.6.1. Building from source with cabal is one way to do it. I'll be releasing a build for Debian unstable in the next day or two.
I'm curious if anyone has set this up using a local apache webdav server?
I'm stuck and could use some insight.
thanks Damien