Forums / Developer / WEBDAV Debugging/Error ... take a look

WEBDAV Debugging/Error ... take a look

Author Message

Björn Dieding@xrow.de

Wednesday 17 September 2003 3:05:35 pm

Hmmm I setup the vhost tried the following requests on the Webdav interface. What might be the failure.

GET / HTTP/1.1
Host: www

HTTP/1.1 500 Internal Server Error
Date: Wed, 17 Sep 2003 21:53:35 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Accept-Ranges: bytes
X-Powered-By: PHP/4.2.2
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1

Verbindung zu Host verloren. (Disconnected from host)

PROPFIND / HTTP/1.1
Host: www

GET / HTTP/1.1
Host: www

HTTP/1.1 500 Internal Server Error
Date: Wed, 17 Sep 2003 21:53:35 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Accept-Ranges: bytes
X-Powered-By: PHP/4.2.2
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1

Verbindung zu Host verloren. (Disconnected from host)

PROPFIND / HTTP/1.1
Host: www

HTTP/1.1 405 Method Not Allowed
Date: Wed, 17 Sep 2003 22:05:27 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Allow: GET,HEAD,POST,OPTIONS,TRACE
Content-Length: 296
Content-Type: text/html; charset=iso-8859-1

Verbindung zu Host verloren.

Verbindung zu Host verloren.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Björn Dieding@xrow.de

Wednesday 17 September 2003 3:26:34 pm

my vhost
#webdav
<Virtualhost 192.168.0.3:96>
<Directory /home/www/ezpublish3/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule !\.(css|jar|js|html|php)$ /home/www/ezpublish3/webdav.php
ServerAdmin root@localhost
DocumentRoot /home/www/ezpublish3/
ServerName 192.168.0.3
</VirtualHost>

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Tony Wood

Wednesday 17 September 2003 4:16:21 pm

Hi Björn,

It does work, it looks like its setup from the httpd side. I found trying different URLs.. the /content does not work for me, I used / then I could see the directories.

I have tested on RH 9 with Konqueror (client) and PHP 4.3.3 (server), but doesn't seem to work with authentication on IE... I need to play more with the windows box..

I hope this helps

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Balazs Halasy

Thursday 18 September 2003 4:25:57 am

According to your virtual host settings in your apache config file, you're trying to listen for an IP address (instead of a hostname) with an additional non-standard port. I suggest that you remove the port (during testing) and that you try to access the webdav module using the following set of commands (in UNIX/Linux) :

telnet 192.168.0.3 80

[will output some info.. now type in:]

PROPFIND / HTTP/1.1
Host: localhost

[and press enter (sometimes twice)]

what is the output?

Björn Dieding@xrow.de

Thursday 18 September 2003 5:54:36 am

Hmmm... This is a dumb question... But do I need to load the apache webdav modul in to apache?

[root@www root]# telnet 192.168.0.3 80
Trying 192.168.0.3...
Connected to 192.168.0.3.
Escape character is '^]'.
PROPFIND / HTTP/1.1
Host: localhost

HTTP/1.1 405 Method Not Allowed
Date: Thu, 18 Sep 2003 12:52:12 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Allow: GET,HEAD,POST,OPTIONS,TRACE
Content-Length: 296
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method PROPFIND is not allowed for the URL /.</p>
<hr />
<address>Apache/2.0.40 Server at 192.168.0.3 Port 80</address>
</body></html>
Connection closed by foreign host.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Björn Dieding@xrow.de

Thursday 18 September 2003 6:02:33 am

I also enabled now the dav modul... still no change in the output

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Balazs Halasy

Friday 19 September 2003 12:09:23 am

No, you do not need the Apache WebDAV module. eZ publish has code that takes care of the WebDAV communication.

The dumps: it looks like that the WebDAV messages (from the client, such as PROPFIND) are not reaching the eZ publish WebDAV server. Did you remember to enable WebDAV from within the webdav.ini file? You may also enable WebDAV debugging from the ini file; debug output will reside in the following file: /tmp/webdavlog.txt

Enable debug, do a *single* PROPFIND and look at the log file, what does it say?

Which version of Apache and PHP are you running? Seems like you're running Apache 2.0.40 and PHP 4.2.2 - we have not tested WebDAV with the Apache 2.x series; it might or might not work. In addition: the WebDAV setup documentation clearly states that you should use PHP 4.3.2 (or later). This is (if I remember correctly) because earlier versions of PHP did not send the HTTP requests to the PHP script (which resulted in no response from the script). Please, try to upgrade to 4.3.2 (or later). Good luck! :-)

Björn Dieding@xrow.de

Saturday 11 October 2003 11:49:57 am

I am using now apache 1.3 and php 4.3.1...

I am receiving now something. LOL

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

eZ debug

Timing: Jan 18 2025 19:21:27
Script start
Timing: Jan 18 2025 19:21:27
Module start 'content'
Timing: Jan 18 2025 19:21:27
Module end 'content'
Timing: Jan 18 2025 19:21:27
Script end

Main resources:

Total runtime0.7215 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 588.8516180.8281
Module start 'content' 0.00880.6054 769.6797677.5078
Module end 'content' 0.61420.1072 1,447.1875349.0859
Script end 0.7214  1,796.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.6011210.0002
Check MTime0.00170.2393210.0001
Mysql Total
Database connection0.00140.200610.0014
Mysqli_queries0.618485.71382110.0029
Looping result0.00190.26872090.0000
Template Total0.691195.820.3456
Template load0.00180.250320.0009
Template processing0.689395.544320.3447
Template load and register function0.00010.013010.0001
states
state_id_array0.00110.157310.0011
state_identifier_array0.00070.095920.0003
Override
Cache load0.00180.24441080.0000
Sytem overhead
Fetch class attribute can translate value0.00100.140140.0003
Fetch class attribute name0.00110.1467110.0001
XML
Image XML parsing0.00160.228140.0004
class_abstraction
Instantiating content class attribute0.00000.0049160.0000
General
dbfile0.00470.6509390.0001
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
12content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 49
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs