Gerben Wierda

Q: 10.8.5 Server 2.2.5 WebDAV has stopped working

I have been running OS X 10.8.5 Server 2 for a few years (planning to upgrade, but I've been told in another thread that PHD syncing is broken so I might have to hold out longer).

 

Now, for some unknown reason (maybe a software update with a security patch that changed Apache?) WebDAV has stopped working recently. I am now wondering how to debug this and if someone can help me debug this.

Mac mini, OS X Mountain Lion (10.8.5), OS X Server

Posted on May 5, 2015 10:48 PM

Close

Q: 10.8.5 Server 2.2.5 WebDAV has stopped working

  • All replies
  • Helpful answers

  • by jepping,

    jepping jepping May 6, 2015 2:08 AM in response to Gerben Wierda
    Level 2 (430 points)
    May 6, 2015 2:08 AM in response to Gerben Wierda

    Check whether Webdav is stilled enabled in the Websettings of the Server.

    Reboot the server and check again, check webdav access in filesharing. Disable and enable to check whether the service starts or not.

    What do the logs say?

    Goodluck

     

    Jeffrey

  • by Gerben Wierda,

    Gerben Wierda Gerben Wierda May 6, 2015 2:40 AM in response to jepping
    Level 2 (160 points)
    Mac OS X
    May 6, 2015 2:40 AM in response to jepping

    jepping wrote:

     

    Check whether Webdav is stilled enabled in the Websettings of the Server.

    Reboot the server and check again, check webdav access in filesharing. Disable and enable to check whether the service starts or not.

    What do the logs say?

    Goodluck

     

    Jeffrey

    (Reboot and turning file sharing off/on did not help, it is a config thing). The file share is exposed via WebDAV (it calls this "for iOS"). File Sharing is turned on and works for AFP. Apache is running:

        0  241    1  0  31  0  2436752  5968 -      Ss    ??    0:01.48 /usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/apache2/httpd_server_app.conf -D WEBSERVICE_ON

      70  6174  241  0  33  0  2448732  2312 -      S      ??    0:00.01 /usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/apache2/httpd_server_app.conf -D WEBSERVICE_ON

      70  6175  241  0  33  0  2448732  2336 -      S      ??    0:00.01 /usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/apache2/httpd_server_app.conf -D WEBSERVICE_ON

    Then, when I try to mount the WebDAV share, it fails with "There was a problem connecting to the server "name"" and "Contact your system administrator for more information". I am the sysadmin :-)

     

    Afterwards, more apache processes are running, apparently for WebDAV:

        0  241    1  0  31  0  2436752  5968 -      Ss    ??    0:01.49 /usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/apache2/httpd_server_app.conf -D WEBSERVICE_ON

      70  6174  241  0  33  0  2448732  2864 -      S      ??    0:00.02 /usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/apache2/httpd_server_app.conf -D WEBSERVICE_ON

      70  6175  241  0  33  0  2448732  2404 -      S      ??    0:00.01 /usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/apache2/httpd_server_app.conf -D WEBSERVICE_ON

    1025  6430    1  0  31  0  2435704  2516 -      Ss    ??    0:00.13 /usr/sbin/httpd -f /Library/Server/Web/Config/apache2/httpd_webdavsharing_template.conf -D FOREGROUND -k start

    1025  6432  6430  0  31  0  2435704  1124 -      S      ??    0:00.00 /usr/sbin/httpd -f /Library/Server/Web/Config/apache2/httpd_webdavsharing_template.conf -D FOREGROUND -k start

      501  6434  6407  0  31  0  2432768    584 -      S+  s000    0:00.00 grep apache

     

    Apache error_log says:

    [Wed May 06 11:18:48 2015] [error] [client 192.168.2.66] File does not exist: /Library/Server/Web/Data/Sites/Default/davname

     

    A second try gives in access_log:

    servername 192.168.2.66 - - [06/May/2015:11:35:20 +0200] "OPTIONS /davname HTTP/1.1" 401 524 "-" "WebDAVLib/1.3"

    servername 192.168.2.66 - - [06/May/2015:11:35:29 +0200] "OPTIONS /davname HTTP/1.1" 401 524 "-" "WebDAVLib/1.3"

    servername 192.168.2.66 - username [06/May/2015:11:35:29 +0200] "OPTIONS /davname  HTTP/1.1" 403 214 "-" "WebDAVLib/1.3"

     

    Interestingly, no new error_log message

  • by Gerben Wierda,

    Gerben Wierda Gerben Wierda May 6, 2015 2:45 AM in response to Gerben Wierda
    Level 2 (160 points)
    Mac OS X
    May 6, 2015 2:45 AM in response to Gerben Wierda

    Additionally: indeed /Library/Server/Web/Data/Sites/Default/davname does not exist. But the mount point has been defined as /Library/WebServer/davname

     

    It must be some error in the apache config.

  • by jepping,

    jepping jepping May 6, 2015 2:53 AM in response to Gerben Wierda
    Level 2 (430 points)
    May 6, 2015 2:53 AM in response to Gerben Wierda

    Are the permissions for that share point correct?

    OSX security updates might prohibit sharing from that directory, I would disable filesharing from that location, move the folder and reshare from the correct folderlocation: /Library/Server/Web/Data/Sites/Default/davname

    Create a new folder in the correct location /Default/ and test file and webdav access, when that works, move your share accordingly.

    Goodluck

     

    Jeffrey

  • by Gerben Wierda,Solvedanswer

    Gerben Wierda Gerben Wierda May 6, 2015 4:06 AM in response to jepping
    Level 2 (160 points)
    Mac OS X
    May 6, 2015 4:06 AM in response to jepping

    I solved it. It turned out that the files

     

    • webdav_sharepoints.plist
    • httpd_webdavsharing_sharepoints.conf

     

    were empty (or logically empty). Apparently, these have somehow been overwritten during an OS update or somehow else reset by the system (definitely not by me, so shame on you, Apple!). Re-editing the sharepoints recreated the contents of these files and my sharepoints are now working again.