You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by sashan <sa...@ihug.co.nz> on 2002/10/28 07:36:14 UTC
Error when trying to test my svn build
Hi
I'm trying to setup a Subversion server.So far I've been able to build
and install all the required tools (Apache, Berkeley DB, autoconf,
libtools etc..). All of this has taken me about 2 days to setup.
However when I try this command:
svn co http://localhost/misc/svn/test_repos wc
I get this error message
svn: RA layer request failed
svn: PROPFIND of /: 405 Method Not Allowed
Also the Apache error logs have this message
[Mon Oct 28 20:30:01 2002] [error] [client 127.0.0.1] Could not fetch
resource information. [500, #0]
[Mon Oct 28 20:30:01 2002] [error] [client 127.0.0.1] Could not open the
SVN filesystem at /misc/svn/test_repos [500, #160000]
[Mon Oct 28 20:30:01 2002] [error] [client 127.0.0.1] (84)Invalid or
incomplete multibyte or wide character: bad database version: got
3.3.11, should be at least 4.0.14 [500, #160000]
I don't understand why it complains about the bad database version -
I've built and installed 4.0.14.
Platform is RH7.3. I've only realized over the last 2 days that the
following commands
./configure
make
make install
is a common pattern and used to install software on Linux (i.e. I'm new
to Linux).
Thanks.
Sashan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Error when trying to test my svn build
Posted by Michael Wood <mw...@its.uct.ac.za>.
On Mon, Oct 28, 2002 at 01:49:54PM +0100, Andreas J. Koenig wrote:
> >>>>> On 28 Oct 2002 23:48:02 +1300, sashan <sa...@ihug.co.nz> said:
>
> > Yes. It wasn't finding the correct db. I had to type the following
> > export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.0/lib
>
> > (how do I add LD_LIBRARY_PATH permanently to environment?)
>
> Depends on your shell. Check the documentation of your shell for
> "startup" files. If you're using bash, these are $HOME/.bash_profile,
> $HOME/.bash_login, and $HOME/.profile.
Or add it to /etc/ld.so.conf (or equivalent.)
> > Next I create a repository but when I try to checkout:
> > svn co http://localhost/misc/svn/test_repos wc
>
> > I get the following error:
> > subversion/libsvn_ra_dav/util.c:81: (apr_err=175002, src_err=0)
> > svn: RA layer request failed
> > svn: PROPFIND of /: 405 Method Not Allowed
>
> Can you check out using a "file" URL? I.e. does
>
> svn co file:///your/path/to/svn/test_repos wc
>
> work?
>
> > There are no clues in the Apache error log besides:
> > [Mon Oct 28 23:28:43 2002] [notice] Apache/2.0.44-dev (Unix) DAV/2
> > SVN/0.14.3 (dev build) configured -- resuming normal operations
>
> > The access logs have this information:
> > 27.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc/svn/test_repos
> > HTTP/1.1" 405 317
> > 127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc/svn HTTP/1.1"
> > 405 306
> > 127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc HTTP/1.1" 405
> > 302
> > 127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND / HTTP/1.1" 405 311
>
> Please show us what you typed into your httpd.conf.
Nothing in the error log?
--
Michael Wood <mw...@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Error when trying to test my svn build
Posted by Philip Martin <ph...@codematters.co.uk>.
sashan <sa...@ihug.co.nz> writes:
> The following is what I added at the end off httpd.conf:
> <Location /svn/test_repos>
> DAV svn
> SVNPath /misc/svn/test_repos
> </Location>
Quoting from your earlier report:
> However when I try this command:
> svn co http://localhost/misc/svn/test_repos wc
>
> I get this error message
> svn: RA layer request failed
> svn: PROPFIND of /: 405 Method Not Allowed
You are using the wrong URL. The URL should be based on the path in
the <Location> directive, like so
svn co http://localhost/svn/test_repos wc
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Error when trying to test my svn build
Posted by sashan <sa...@ihug.co.nz>.
>
> Can you check out using a "file" URL? I.e. does
>
> svn co file:///your/path/to/svn/test_repos wc
>
> work?
>
Yip. Looks like that works.
> > There are no clues in the Apache error log besides:
> > [Mon Oct 28 23:28:43 2002] [notice] Apache/2.0.44-dev (Unix) DAV/2
> > SVN/0.14.3 (dev build) configured -- resuming normal operations
>
> > The access logs have this information:
> > 27.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND
/misc/svn/test_repos
> > HTTP/1.1" 405 317
> > 127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc/svn
HTTP/1.1"
> > 405 306
> > 127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc
HTTP/1.1" 405
> > 302
> > 127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND / HTTP/1.1"
405 311
>
> Please show us what you typed into your httpd.conf.
The following is what I added at the end off httpd.conf:
<Location /svn/test_repos>
DAV svn
SVNPath /misc/svn/test_repos
</Location>
I haven't changed anything else in the .conf file.
I also see the following in the svn install doc:
NOTE: Make sure that the user 'nobody' (or whatever UID the
httpd process runs as) has permission to read and write the
Berkeley DB files! This is a very common problem.
Um. How do I set permissions for a user?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Error when trying to test my svn build
Posted by "Andreas J. Koenig" <an...@anima.de>.
>>>>> On 28 Oct 2002 23:48:02 +1300, sashan <sa...@ihug.co.nz> said:
> Yes. It wasn't finding the correct db. I had to type the following
> export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.0/lib
> (how do I add LD_LIBRARY_PATH permanently to environment?)
Depends on your shell. Check the documentation of your shell for
"startup" files. If you're using bash, these are $HOME/.bash_profile,
$HOME/.bash_login, and $HOME/.profile.
> Next I create a repository but when I try to checkout:
> svn co http://localhost/misc/svn/test_repos wc
> I get the following error:
> subversion/libsvn_ra_dav/util.c:81: (apr_err=175002, src_err=0)
> svn: RA layer request failed
> svn: PROPFIND of /: 405 Method Not Allowed
Can you check out using a "file" URL? I.e. does
svn co file:///your/path/to/svn/test_repos wc
work?
> There are no clues in the Apache error log besides:
> [Mon Oct 28 23:28:43 2002] [notice] Apache/2.0.44-dev (Unix) DAV/2
> SVN/0.14.3 (dev build) configured -- resuming normal operations
> The access logs have this information:
> 27.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc/svn/test_repos
> HTTP/1.1" 405 317
> 127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc/svn HTTP/1.1"
> 405 306
> 127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc HTTP/1.1" 405
> 302
> 127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND / HTTP/1.1" 405 311
Please show us what you typed into your httpd.conf.
> Is this perhaps because Apache isn't configured correctly?
Most likely.
--
andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Error when trying to test my svn build
Posted by sashan <sa...@ihug.co.nz>.
On Mon, 2002-10-28 at 20:43, Rafael Garcia-Suarez wrote:
> sashan <sa...@ihug.co.nz> wrote:
> > I don't understand why it complains about the bad database version -
> > I've built and installed 4.0.14.
>
> Ah, but perhaps did you build apache with your system's provided db
> version ? Did you configure apache with the path to your db-4.0.14 ?
> (look in the INSTALL file, section "Obtaining and Installing Apache 2.0".)
>
Yes. It wasn't finding the correct db. I had to type the following
export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.0/lib
(how do I add LD_LIBRARY_PATH permanently to environment?)
and then use the following configure for Apache:
./configure --enable-dav --enable-so --enable-maintainer-mode
--with-dbm=db4 --with-berkeley-db=/usr/local/BerkeleyDB.4.0
Followed by make depend && make && make install.
It all seems to build well and use the version 4 DB.
To build subversion I typed:
./configure --enable-maintainer-mode
--with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apache2
--with-apr-util=/usr/local/apache2 --with-dbm=db4
--with-berkeley-db=/usr/local/BerkeleyDB.4.0
make
make install
Next I create a repository but when I try to checkout:
svn co http://localhost/misc/svn/test_repos wc
I get the following error:
subversion/libsvn_ra_dav/util.c:81: (apr_err=175002, src_err=0)
svn: RA layer request failed
svn: PROPFIND of /: 405 Method Not Allowed
There are no clues in the Apache error log besides:
[Mon Oct 28 23:28:43 2002] [notice] Apache/2.0.44-dev (Unix) DAV/2
SVN/0.14.3 (dev build) configured -- resuming normal operations
The access logs have this information:
27.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc/svn/test_repos
HTTP/1.1" 405 317
127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc/svn HTTP/1.1"
405 306
127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND /misc HTTP/1.1" 405
302
127.0.0.1 - - [28/Oct/2002:23:28:45 +1300] "PROPFIND / HTTP/1.1" 405 311
Is this perhaps because Apache isn't configured correctly?
Thanks
Sashan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Error when trying to test my svn build
Posted by Rafael Garcia-Suarez <ra...@hexaflux.com>.
sashan <sa...@ihug.co.nz> wrote:
> I don't understand why it complains about the bad database version -
> I've built and installed 4.0.14.
Ah, but perhaps did you build apache with your system's provided db
version ? Did you configure apache with the path to your db-4.0.14 ?
(look in the INSTALL file, section "Obtaining and Installing Apache 2.0".)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org