On 4/25/06, Rafael Caceres <rcaceres@aasa.com.pe> wrote:
>
> On Fri, 2006-04-21 at 13:59 -0700, Garrett Rooney wrote:
> > On 4/20/06, Rafael Caceres <rcaceres@aasa.com.pe> wrote:
> > > I have setup subversion and Apache2 per the documentation. My setup is
> > > Suse SLES9 with db4 from RPM, and subversion and Apache2 from tarballs.
> > > The repository files are owned by the apache user and group, and the
> > > <Location /svn> directives have been set per the docs.
> > >
> > > I can access the repository through file:// but any attempt to access it
> > > through http:// gives the following error:
> > >
> > > [Fri Apr 21 02:42:48 2006] [error] [client 172.16.1.92] Could not fetch
> > > resource information. [500, #0]
> > > [Fri Apr 21 02:42:48 2006] [error] [client 172.16.1.92] Could not open
> > > the root of the repository [500, #22]
> > > [Fri Apr 21 02:42:48 2006] [error] [client 172.16.1.92] Can't set
> > > position pointer in file '/usr/local/svn/repo1/db/revs/0': Invalid
> > > argument [500, #22]
> >
> > That sort of error tends to result from having two different versions
> > of APR (one from the 0.9.x series and one from the 1.x series) linked
> > into mod_dav_svn and httpd. You need to make sure Subversion and
> > Apache are both using the same one.
> >
> > -garrett
>
> I have recompiled subversion and apache2 to make sure they are all using
> the same apr and apr-util versions. Here are my build files files:
>
> #!/bin/bash
> # APR 1.2.7
> ./configure --with-prefix=/usr/local/apr
> make clean && make && make install
>
> #!/bin/bash
> # APR-UTIL 1.2.7
> ./configure --with-prefix=/usr/local/apr-util \
> --with-apr=/usr/local/apr
> make clean && make && make install
>
> #!/bin/bash
> # APACHE 2.2.0
> ./configure --prefix=/usr/local/apache2 \
> --enable-modules=all \
> --enable-mods-shared=all \
> --with-ssl=/usr \
> --enable-ssl \
> --with-berkley-db=/usr \
> --with-apr=/usr/local/apr \
> --with-apr-util=/usr/local/apr-util
> make clean && make && make install
>
>
> #!/bin/bash
> # SUBVERSION 1.3.1
> ./configure --prefix=/usr/local/subversion \
> --with-apxs=/usr/local/apache2/bin/apxs \
> --with-apr-util=/usr/local/apr-util \
> --with-berkeley-db=/usr
> make clean && make && make install
>
> That should rule out having different apr or apr-util versions, yet I'm
> still having the same problem. Any other ideas?
I would suggest running ldd on the httpd and mod_dav_svn.so binaries,
to confirm that they're really linking against the versions of APR you
think they are.
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 25 19:25:25 2006