fix broken webdav uploads
April 30th, 2011 by Lawrence David
Recently, my Omnifocus sync with my WEBDav database broke. I was getting “Internal Server Errors” when trying to sync, and saw the following errors in my apache2/error.log:
[Sat Apr 30 11:18:39 2011] [error] [client 67.87.173.230] The locks could not be queried for verification against a possible “If:” header. [5\
00, #0]
[Sat Apr 30 11:18:39 2011] [error] [client 67.87.173.230] Could not open the lock database. [500, #400]
[Sat Apr 30 11:18:39 2011] [error] [client 67.87.173.230] (17)File exists: Could not open property database. [500, #1]
The solution:
Go into your apache2 httpd.conf file and find the line beginning with: DAVLockDB.
Make sure the file specified on that line exists. If not, you can create it:
$ sudo touch /var/lock/apache2/DAVLock
$ sudo chown www-data /var/lock/apache2/DAVLock