OpenBSD mod_dav DAVLockDB Problem

December 9th, 2005 | by Sean |

I read a number of posts about OpenBSD apache with mod_dav. If you get messages like this:

[Fri Dec 9 17:02:21 2005] [error] [client 192.168.42.50] The locks could not be queried for verification against a possible “If:” header. [500, #0]
[Fri Dec 9 17:02:21 2005] [error] [client 192.168.42.50] Could not open the lock database. [500, #400]
[Fri Dec 9 17:02:21 2005] [error] [client 192.168.42.50] (2)No such file or directory: I/O error occurred. [500, #1]

Check your DAVLockDB statement in httpd.conf. If Apache is chroot’d like it is on OpenBSD, you need to make your DAVLockDB path relative to its chroot. That is: if your lock database is on /var/www/var/DAVLockDB and your apache chroots to /var/www, the path relative to the chroot will be /var/DAVLockDB.

It took me a while to figure this out, so I hope it helps prevent other people from pulling out their hair, too!

Happy DAV’ing.

You must be logged in to post a comment.