<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt'>Has anyone managed to get WebDAV working correctly on their (sub)domain? I am having trouble getting the writes to work at all (Read works fine).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>I suspect that this is a permissions issue for Apache on shelob, but I can’t be sure.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Anyone have any ideas?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>-srikanth<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='color:black'>From: </span></b><span style='color:black'>HCoop-SysAdmin <hcoop-sysadmin-bounces@lists.hcoop.net> on behalf of Srikanth Sastry <sastry@hcoop.net><br><b>Reply-To: </b>HCoop system administration discussion <hcoop-sysadmin@lists.hcoop.net><br><b>Date: </b>Thursday, January 31, 2019 at 2:54 PM<br><b>To: </b>HCoop system administration discussion <hcoop-sysadmin@lists.hcoop.net><br><b>Subject: </b>[HCoop-SysAdmin] WebDAV writes not working<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt'>Hi,</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>I am trying to get WebDAV working on <a href="https://dav.sastry.name/">https://dav.sastry.name/</a></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>The read works fine, but when I try to write to it, I get a 500 error.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>Here is what I have so far. Any ideas on what’s wrong and how to fix it?</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>The error log says</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>[Thu Jan 31 11:16:35.000988 2019] [dav:error] [pid 6333] [client 209.6.196.132:62092] The locks could not be queried for verification against a possible "If:" header. [500, #0]</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>[Thu Jan 31 11:16:35.001020 2019] [dav:error] [pid 6333] [client 209.6.196.132:62092] Could not open the lock database. [500, #400]</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>[Thu Jan 31 11:16:35.001025 2019] [dav:error] [pid 6333] (120002)APR does not understand this error code: [client 209.6.196.132:62092] Could not open property database. [500, #1]</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>It appears to be a permission issue for apache.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>afs permissions for the directory are:</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>sastry@marsh:~/public_html$ fs la dav</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>Access list for dav is</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>Normal rights:</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> system:administrators rlidwka</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> system:anyuser rl</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> sastry rlidwka</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> sastry.daemon rlidwka</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>sastry@marsh:~/public_html$</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>The unix permissions are:</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>sastry@marsh:~/public_html/dav$ ls -al</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>total 6</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>drwxrwxrwx 3 sastry nogroup 2048 Jan 30 17:08 .</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>drwxr-xr-x 9 sastry nogroup 2048 Jan 28 13:43 ..</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>drwxrwxrwx 2 sastry nogroup 2048 Jan 30 17:08 joplin</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'>sastry@marsh:~/public_html/dav$</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>My corresponding domtool config is at /afs/hcoop.net/user/s/sa/sastry/.domtool/sastry.name</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>The relevant stanza is:</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> web "dav" with</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> rewriteRule "^(.*)$" "https://dav.sastry.name$1" [redirectWith permanent];</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> end;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> web "dav" where</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> DocumentRoot = home "public_html/dav";</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> SSL = use_cert "/etc/apache2/ssl/user/dav.sastry.name.pem";</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> with</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> addDefaultCharset "utf-8";</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> location "/" with</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> authType basic;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> authName "Sastry WebDAV";</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> authUserFile (home "web_auth/self.passwd");</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> requireValidUser;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> davFilesystem;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> end;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> end;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:Consolas'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>Any idea what’s going wrong here?</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>Thanks!</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>--srikanth</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>_______________________________________________ HCoop-SysAdmin mailing list HCoop-SysAdmin@lists.hcoop.net https://lists.hcoop.net/listinfo/hcoop-sysadmin <o:p></o:p></span></p></div></body></html>