Quantcast
Channel: SVN 405 Error: Could not fetch resource information - Stack Overflow
Viewing all articles
Browse latest Browse all 3

SVN 405 Error: Could not fetch resource information

$
0
0

Dear Stackoverflow Community!Recently my svn server broke, and I tried nearly everything but I can't get it to work again.

OS: Raspbian

What I did:installing packages:

apt-get install subversion libapache2-svn apache2 mysql-server

Enabeling dav_svn: a2enmod dav_svn

Creating repositories:

$ mkdir -p /opt/svn/project1$ mkdir -p /opt/svn/project2

Adding them:

$ svnadmin create --fs-type fsfs /opt/svn/project1$ svnadmin create --fs-type fsfs /opt/svn/project2`

Setting the owner:

$ chown -R www-data:www-data /opt/svn

Created users:

$ sudo htpasswd /etc/apache2/dav_svn.passwd weini

Created repository files:

mkdir -p /tmp/projet1/trunkmkdir -p /tmp/projet1/branchesmkdir -p /tmp/projet1/tagsmkdir -p /tmp/projet2/trunkmkdir -p /tmp/projet2/branchesmkdir -p /tmp/projet2/tags

Created /etc/apache2/mods-enabled/dav_svn.conf file:

<Location /svn/>        DAV svn        SVNParentPath /opt/svn/        SVNListParentPath On        AuthType Basic        AuthName "Subversion Repository"        AuthUserFile /etc/apache2/dav_svn.passwd        Require valid-user</Location>

Imported them: Note accessing the repository via http:// does not work; via file:// works

Error: svn import /tmp/project1 http://localhost/svn/project1 -m "initialer Import"Error: svn import /tmp/project2 http://localhost/svn/project2 -m "initialer Import"Works: svn import /tmp/project1 file://opt/svn/project1 -m "initialer Import"Works: svn import /tmp/project2 file://opt/svn/project2 -m "initialer Import"`

Everything else are default settings!

Errormessage:

RA layer request failedsvn: Unable to connect to a repository at URL 'http://server.weini.at/svn/project1'svn: Server sent unexpected return value (405 Method Not Allowed)  in response to OPTIONS request for 'http://server.weini.at/svn/project1

Syslog:

no errors

Apache2/error.log:

[Wed Apr 09 22:29:29 2014] [error] [client 192.168.0.1] Could not fetch resource  information.  [-2, #0][Wed Apr 09 22:29:29 2014] [error] [client 192.168.0.1] (2)No such file or directory:   The URI does not contain the name of a repository.  [405, #190001]

When i try to access the repositories via my webbrowser everything works normal: https://i.stack.imgur.com/aNKzw.png


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>