Mysql

ownCloud WebDAV界面好像壞了

  • August 5, 2014

我一直在嘗試在我的伺服器上託管 ownCloud,但每次我嘗試它都會告訴我:

Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken.

Please double check the installation guides.

這是我的設置:

Windows Server 2012 R2
IIS 8.5
PHP 5.5.11
ownCloud 6.0.3
MySQL 5.6.17

我嘗試用​​Google搜尋錯誤,但似乎找不到任何有用的東西。

有人說我應該試試看: https ://cloud.mcsoftworks.net/remote.php/webdav/ 是的,我可以導航到這個文件夾,我可以從那裡打開文件。

日曆工作,我也可以從這裡上傳文件https://cloud.mcsoftworks.net/唯一似乎不起作用的是同步客戶端。

同步客戶端什麼也沒說它只是沒有連接(螢幕截圖: http: //prntscr.com/3p2apz

這是錯誤日誌:

Warning     core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception)    2014-06-02T19:56:00+00:00
Warning     core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception)    2014-06-02T19:55:47+00:00
Warning     core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception)    2014-06-02T19:55:34+00:00
Warning core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception)    2014-06-02T19:55:34+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-02T19:54:37+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-02T19:54:36+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-02T19:54:36+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-02T19:54:36+00:00
Warning core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception)    2014-06-02T19:51:24+00:00

這是我的 php.ini: http: //pastebin.com/es3MB8Uh

有誰知道我應該如何讓它工作?我一直試圖讓它工作大約 14 天,它開始讓我煩惱 =P

更新 :

好的,所以今天我在我的電腦上安裝了最新版本的客戶端,這個客戶端返回了一個錯誤,我認為另一個客戶端只是沒有顯示這個錯誤,但錯誤是:

下載錯誤

$$ hostname $$/remote.php/webdav/- 伺服器回复:不允許的方法 http://prntscr.com/3p9dx1

日誌文件更新:

Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:40:17+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:40:17+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:40:16+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:40:15+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:39:28+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:39:24+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:30:32+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:30:31+00:00
Fatal   webdav  Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:30:31+00:00
Warning core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception)    2014-06-02T20:09:05+00:00
Error   PHP Undefined index: accessclass at D:\Websites\MCS-oCloud\apps\calendar\lib\object.php#889 2014-06-02T20:02:16+00:00
Warning core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception)    2014-06-02T19:56:07+00:00
Warning core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception)    2014-06-02T19:56:00+00:00
Warning core    isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception)    2014-06-02T19:55:47+00:00

好的,我發現了問題所在。在 IIS 8.5 管理器中有一個名為 modules 的選項卡,如果您打開它會顯示大量模組,搜尋 WebDavModule 並將其刪除。

@Moshe_Katz 感謝您的幫助.. 它為我指明了正確的方向。

此錯誤最可能的原因是您的伺服器無法與自身通信。這可能是因為您的路由器沒有NAT 反射,因此您的伺服器無法在其公共 IP 上與其自身通信。嘗試在您的文件(或您的內部 DNS,如果有)中添加一個cloud.mcsoftworks.net指向,以便伺服器知道與自己聯繫而不是上網。127.0.0.1``hosts

或者,這可能是因為您的伺服器不允許 WebDAV HTTP 動詞通過 PHP。有關確保正確設置這些設置的說明,請參閱OwnCloud 設置指南。


正如OwnCloud 論壇中所討論的,OwnCloud 同步客戶端也不一定適用於自簽名證書。嘗試暫時切換到 HTTP 看看是否可行。(但是,其他人已經獲得了自簽名證書,可以正常工作,儘管症狀相同,但您收到的錯誤並沒有說明這是問題所在。)

您也可能遇到 WebDAV 正常工作但測試失敗的問題,從而阻止 WebDAV 工作。您可以通過添加到文件來繞過管理站點中的 WebDAV 測試。check_for_working_webdav=false``config.php

引用自:https://serverfault.com/questions/601298