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

Re: Could not open the root of the repository [500, #22]

From: Sanjaya Vitharana <sanjaya_at_wavenet.lk>
Date: 2007-09-10 11:01:24 CEST

> If you have apache 2.2.x, use apr1 in subversion, otherwise use apr0.
How ? As my little knowledge with svn, apr comes with
subversion-deps-1.4.5.tar.gz so I used it (see below)

ofcourse I built both apache & subversion from source.

Again, below are the steps I used.

------------------
[root@vm_linux repos]# uname -a
Linux vm_linux 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
GNU/Linux
------------------
Apache Install

[root@vm_linux apache]# pwd
/home/sanjaya/setups/apache
[root@vm_linux apache]# tar -xvzf httpd-2.2.4.tar.gz
[root@vm_linux apache]# cd httpd-2.2.4
[root@vm_linux httpd-2.2.4]# ./buildconf
[root@vm_linux httpd-2.2.4]#
./configure --enable-dav --enable-so --enable-maintainer-mode

------------------
Subversion Install

[root@vm_linux subversion]# pwd
/home/sanjaya/setups/subversion
[root@vm_linux subversion]# tar xzvf subversion-1.4.5.tar.gz
[root@vm_linux subversion]# tar xzvf subversion-deps-1.4.5.tar.gz
[root@vm_linux subversion]# cd subversion-1.4.5
[root@vm_linux subversion-1.4.5]#
./configure --with-apxs=/usr/local/apache2/bin/apxs
[root@vm_linux subversion-1.4.5]# ./make
[root@vm_linux subversion-1.4.5]# ./make install

------------------
Creating a repository:

mkdir /home/sanjaya/svn
mkdir /home/sanjaya/svn/repos
svnadmin create --fs-type fsfs /home/sanjaya/svn/repos

chown -R daemon:daemon /home/sanjaya/svn
chmod g+w /home/sanjaya/svn -R
chmod 777 /home/sanjaya

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

Web Server Configuration for Subversion:

vi /usr/local/apache2/conf/httpd.conf

User daemon ## was there -- so i do not change
Group daemon ## was there -- so i do not change

## Below are added

ServerName svn.example.com

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

##add this to the *bottom* of your httpd.conf:

<Location /mysvn>
   DAV svn
   SVNPath /home/sanjaya/svn/repos
</Location>

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

----- Original Message -----
From: "Rainer Sokoll" <R.Sokoll@intershop.de>
To: <users@subversion.tigris.org>
Sent: Monday, 10 September 2007 01:44 pm
Subject: Re: Could not open the root of the repository [500, #22]

> On Mon, Sep 10, 2007 at 01:30:03PM +0530, Sanjaya Vitharana wrote:
>
> > [Mon Sep 10 01:21:29 2007] [error] [client 172.16.8.154] Can't set
position
> > pointer in file '/home/sanjaya/svn/repos/db/revs/0': Invalid argument
[500,
> > #22]
>
> Looks like a version mismatch between the apr subversion uses and the
> apr apache uses.
> If you have apache 2.2.x, use apr1 in subversion, otherwise use apr0.
> Did you build subversion from the sources?
>
> Rainer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 10 10:59:17 2007

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.