[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

405 not allowed in reponse to PROPFIND

From: Anderson Smith <tairic_at_hotmail.com>
Date: Wed, 23 Sep 2009 14:59:48 -0400

I'm having a hell of a time getting
svn/apache/https working. Unfortunately I'm relatively new to any Systems Administration, and no one else where I work has any idea what is going on, so thank you for any help.

Before I installed my SSL and made a virtualhost in /etc/httpd/conf.d/subversion.conf SVN was working remotely, but now that I have that it's not. I'm having trouble debugging it. I thought maybe it was a permissions issue, so I put user apache in a group called svn (I'm running CentOS) and did "chgrp -R apache repos/ && chmod g+rw -R repos/" to no avail, I even tried later to just do "chown -R apache.apache repos/" but still no luck. I'm not quite sure what the problem is and I've tried to detail what I can below, thank you for any help.

https is working, I can
        https://10.1.10.250 and see
        things in the /var/www/html/ directory
        subversion works locally. For
        example, I get the following when I use file:///
        instead of http,

                [root_at_localhost tmp]# svn co
file:///var/www/svn/repos/project

                A project/main

                A project/main/index.php

                A project/config

                A project/config/nom.php

                A project/options

                A project/options/options.php

                Checked out revision 3.

                [root_at_localhost tmp]#

        When I commit, I get the following:
                [root_at_localhost project]# svn commit
-m "I did a bunch of stuff"

                Sending config/nom.php

                Transmitting file data .

                Committed revision 4.

                Warning: post-commit hook failed
(exit code 255) with no output.

                [root_at_localhost project]#

        This is quite the different error, and
I suspect unrelated, but here is what is in
/var/www/svn/repos/project/hooks/post-commit:

                #!/bin/bash

                /usr/bin/svn update --username=hook
/var/www/html/project

        The reason for this is that I need
updates that are committed to be pushed to a live site served by
apache I can actually view.

3. When I attempt to use subversion
        remotely I get the following:
        user_at_remotemachine:~$ svn co
http://10.1.10.250/repos/project

        svn: Server sent unexpected return
value (405 Method Not Allowed) in response to PROPFIND request for
'/repos/project'

My /etc/httpd/conf.d/subversion.conf is
as follows:

LoadModule dav_svn_module
modules/mod_dav_svn.so

LoadModule authz_svn_module
modules/mod_authz_svn.so

<VirtualHost *:447>

        DocumentRoot "/var/www/html"

        ServerName 10.1.10.250

        SSLEngine on

        SSLCipherSuite HIGH:MEDIUM

        SSLCertificateFile
/etc/httpd/conf/ssl.crt/svn.crt

        SSLCertificateKeyFile
/etc/httpd/conf/ssl.key/svn.pem

        <Location /var/www/svn>

                DAV svn

                SVNParentPath
/var/www/svn/repos

                AuthzSVNAccessFile
/etc/svn-acl-conf

                AuthType Basic

                AuthName "Subversion
repos"

                AuthUserFile
/etc/svn-auth-conf

                Require valid-user

        </Location>

        ServerAdmin admin_at_example.com

</VirtualHost>

        /etc/httpd/conf/httpd.conf is set to
listen on 447. I think the port here might need to be 443, but when
I restart apache it is already listening on that port per a
virtualhost in /etc/httpd/conf.d/ssl.conf

If I change the VirtualHost to be *:80 instead of 447 I get this:
user@remotemachine:~$ svn co http://10.1.10.250/repos/project
svn: OPTIONS of 'http://10.1.10.250/repos/project': Could not read status line: connection was closed by server (http://10.1.10.250)

Thanks again

                                               
_________________________________________________________________
Microsoft brings you a new way to search the web. Try Bing™ now
http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2399035

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-23 21:01:24 CEST

This is an archived mail posted to the Subversion Users mailing list.