core icon indicating copy to clipboard operation
core copied to clipboard

WebDAV Check Error

Open chackl opened this issue 12 years ago • 15 comments

Hello! I found the following problem. I tested it on Owncloud 6 stable and Owncloud 7 Alpha.

I opened for Webdav Port 5005 tcp , 5006 tcp. This works perfektly and I can connect to Webdav without any problems.

When I open the Adminpanel in Owncloudcloud, it tells me "Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken"

In the Log it shows "isWebDAVWorking: NO - Reason: [CURL] Error while making request: Connection timed out after 10109 milliseconds (error code: 28) (Sabre_DAV_Exception) "

Owncloud Webinterface performance is very worse since this error.

With Wireshark I see Webdav try to open a Port in the Range 51600 - 51900. This should not be normal.

chackl avatar Feb 04 '14 07:02 chackl

Server configuration
Operating system: windows 2012 R2
Web server: Apache/2.4.7 
Database: mysql 5.0.10
PHP version: 5.4.22 
ownCloud version: 7.0.0
'oc0f56d35be3', 'passwordsalt' => '*** Removed for security reasons', 'datadirectory' => 'C:\xampp\htdocs\owncloud\data', 'dbtype' => 'mysql', 'version' => '6.90.0.1', 'dbname' => 'cloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'oc_admin', 'dbpassword' => '*** Removed for security reasons ***', 'proxy' => '195.XXX.XX.XX:8080', 'default_language' => 'de', 'installed' => true, 'maxZipInputSize' => 838860800, 'allowZipDownload' => true, 'theme' => '', 'maintenance' => false, 'forcessl' => true, 'loglevel' => '0', ); ``` ownCloud log (data/owncloud.log) ``` {"app":"core","message":"isWebDAVWorking: NO - Reason: [CURL] Error while making request: Connection timed out after 10110 milliseconds (error code: 28) ``` Client configuration ``` Browser: Firefox 27 Operating system: Windows

chackl avatar Feb 04 '14 08:02 chackl

@PVince81

karlitschek avatar Feb 04 '14 12:02 karlitschek

@chackl did you use any third party webdav server software ? You should disable Apache WebDAV as ownCloud provides its own WebDAV server.

PVince81 avatar Feb 04 '14 12:02 PVince81

No. Only Xampp ist running with Owncloud. Webdav-Modules for Apache are disabled

chackl avatar Feb 04 '14 12:02 chackl

I don't see why the WebDAV check would be trying to access those non-standard ports.

When you said "opened the 5005 and 5006 ports for WebDAV", how did you do it ? Are you using a proxy / reverse proxy ?

It also shouldn't affect the performance, unless you are accessing the admin page which might try to run that test and might be slow until the timeout occurs.

Note that the WebDAV connectivity test is done as follows: the server will try and connect to the WebDAV URL "http://host/remote.php/webdav" (not the client side), so if the Apache server has no permission to connect to the external host, the test might fail.

PVince81 avatar Feb 04 '14 13:02 PVince81

The owncloud is behind a Firewall and i forwared Port 443,5005 and 5006 to the Server.

Yes we use a Proxy named Squid.

About the Performance, I made a few tweaks so it is good so far except the admin page.

The Webdav test is ok. Windows and Firefox, IE shows me the files and i can work.

chackl avatar Feb 04 '14 13:02 chackl

@chackl If you have a special setup like that then the automated test is likely to fail. I suggest to just disable the test in config.php. The config option is: check_for_working_webdav

karlitschek avatar Feb 04 '14 13:02 karlitschek

Ok I checked it out but Owncloud says:" isWebDAVWorking: NO - Reason: [CURL] Error while making request: Connection timed out after 10110 milliseconds (error code: 28) (Sabre_DAV_Exception) ".

The Error massage on the Top is gone

chackl avatar Feb 04 '14 13:02 chackl

Owncloud Syncclient does not work actually.

App for Android & Ios works without any Problems.

Whats the difference for the client and the app?

chackl avatar Feb 04 '14 13:02 chackl

They all use WebDAV as far as I know, so if the WebDAV URL is accessible it should work. What error are you getting ?

PVince81 avatar Feb 04 '14 13:02 PVince81

I have the same issue with isWebDAVWorking: NO - Reason: [CURL] Error while making request: Connection timed out after 10110 milliseconds (error code: 28) (Sabre_DAV_Exception)

I have a self signed certificate and lampp installed on debian 64 bit. 6.0.2 Server and 1.5.3 client.

I disabled the isWebDavWorking in the config.php file and still had the issue with long loading pages in the web interface and sometimes the windows client stopped working over https. The client just do nothing. With http the sync is perfect.

I solved this with adding my domain (xxxx.dyndns.org) to the linux /etc/hosts file that way:

127.0.0.1 localhost XXXXXX.dyndns.org

Seems, that the OC Core requests over XXXXXX.dyndns.org and then breaks some stuff with self signed certificates. This way the request is forced over localhost and it works very good.

rhocco avatar Mar 24 '14 12:03 rhocco

Seems to be a duplicate of #2495 or #2511

codeling avatar Mar 26 '14 20:03 codeling

Can you try with the fix from https://github.com/owncloud/core/pull/7051 ? (apply the commit 2013404e0a5ccb4d0fce73ee3ff6af2ece0a1c70 on your OC 7.0.2 install)

WebDAV check will be done through ajax in the next OC 7.0.3 release.

PVince81 avatar Sep 23 '14 15:09 PVince81

Closing as webdav check will move to browser-side.

LukasReschke avatar Oct 30 '14 10:10 LukasReschke

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Aug 02 '19 20:08 lock[bot]