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

PROPFIND of /svn: 500 Internal Server Error

From: Gregois <gergle_at_optusnet.com.au>
Date: 2004-01-21 01:41:01 CET

Howdy,

I am having problems with PROPFIND also.

I built both Apache (httpd-2.0.48) and subversion (0.36.0) from scratch on Fedora Core 1 machine
(see below for details of build documentation).

No apparent problems and subversion passes make check with 100% sucess.

apache runs as user apache

test repository is /usr/local/src
aliased as /svn/

I had sucess in building a working Apache/SVN sever using svn-0.34.0, and have followed the same procedure
(like verbatim according to the doc that I wrote along the way: see below)

Using TortoiseSVN-0.23 (via network, obviously) import produces:

PROPFIND request failed on /svn
PROPFIND of '/svn': 405 Method Not Allowed (http://my.web.address)

I initially thought that this was a compatability problem with TortoiseSVN
so I upgraded to TortoiseSVN-0.24 with the same result.

I also get the same error with RapidSVN so imagine it's a server side problem.

Trying console mode:

# svn import path/to/import/ http://my.web.address/svn/

produces:

subversion/libsvn_ra_dav/util.c:661: (apr_err=175002)
svn: PROPFIND request failed on '/svn'
subversion/libsvn_ra_dav/util.c:285: (apr_err=175002)
svn: PROPFIND of '/svn': 405 Method Not Allowed (http://my.web.address/)
subversion/clients/cmdline/util.c:349: (apr_err=175002)
svn: Your commit message was left in a temporary file:
subversion/clients/cmdline/util.c:349: (apr_err=175002)
svn: 'svn-commit.tmp'

no entries in apache error_log from any of this activity.

Try another protocol:

# svn import path/to/import/ file:///usr/local/src/

Seems to work fine! At least subversion reports the commit as successful, revision 1.

So I guess this is an apache/module problem?

Trying to browse the repository URL now produces:

[Wed Jan 21 11:27:32 2004] [error] [client 131.217.240.27] (20014)Error string not specified yet: Berkeley DB error while opening environment for filesystem /usr/local/src/db:
DB_RUNRECOVERY: Fatal error, run database recovery
[Wed Jan 21 11:27:32 2004] [error] [client 131.217.240.27] Could not fetch resource information. [500, #0]
[Wed Jan 21 11:27:32 2004] [error] [client 131.217.240.27] Could not open the requested SVN filesystem [500, #160029]
[Wed Jan 21 11:27:32 2004] [error] [client 131.217.240.27] (17)File exists: Could not open the requested SVN filesystem [500, #160029]

in the apache error_log.

Guessing that this was a permissions issue I ran

# chown -R apache /usr/local/src

to check but subsequent requests for the URL produce the same errors.

Things I notice:

/usr/local/apr/ existed after the 0.34.0 build but does not after 0.36.0 build.
Is this to be expected?

Any advice appreciated.

g.

---------------------------------------------------------------

cat greg_built_apache_subversion.readme:

## First attempt at building Subversion server, Fedora Core 1 (27/12/2003)
## Updated (16/01/2004) building SVN 0.36.0
##
## 0. Obtain and unpack source code

## Subversion assumes that you will build against latest httpd

tar zxvf httpd-2.0.48.tar.gz
tar zxvf subversion-0.36.0.tar.gz

## 1. Build Apache

cd httpd-2.0.48/

# maintainer mode ensures we have a debuggable executable
# not so important for Apache per se but good for Subversion
# and the switch needs to be consistent across both builds

./configure --enable-so \
  --enable-ssl \
  --enable-auth \
  --enable-dav \
  --enable-maintainer-mode

make && make install

## default install for apache in /usr/local/apache2
## which is where subversion expects to find apr and apr-util

## 2. Build Subversion

cd ../subversion-0.36.0/

sh ./autogen.sh

./configure --with-apxs=/usr/local/apache2/bin/apxs \
  --with-apr=/usr/local/apache2/bin/ \
  --with-apr-util=/usr/local/apache2/bin/ \
  --with-ssl \
  --with-berkeley-db \
  --with-jdk=/usr/java/j2sdk1.4.2_03/ \
  --with-swig \
  --with-zlib \
  --enable-maintainer-mode

make clean && make && make check

# make check takes a long time but I had a bunch
# of the python tests fail on zeno and now I'm paranoid

make check 100% sucess with 0.36.0

make install

## 3. Configure Apache for Subversion

Check ServerName
Check that apache runs as User apache

## a) Add the following to the Aliases section of httpd.conf

 <Location /svn/ >

  DAV svn
  SVNPath "/usr/local/src"

 </Location>

b) Set up repository

  svnadmin create /usr/local/src
  chown -R apache /usr/local/src

## restart Apache:

/usr/local/apache2/bin/apachectl configtest
/usr/local/apache2/bin/apachectl graceful

At this point I can enter my web address into a browser
and see the Subversion Revision 0: header, with (obviously)
no files present. But the browser is reporting a 500 error as
the title of the page.
 
Received on Wed Jan 21 03:32:12 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.