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

svn with apache Can't set position pointer in file

From: <sanjeev.kumarroy_at_wipro.com>
Date: Mon, 30 Jun 2008 11:18:06 +0530

Hi,

I am a newbie to the svn community. I had used svnserve some time back
to setup the svn. Now I need to implement http for the svn setup. I have
been trying to install SVN with apache support. However I am not able to
get it done. Below are the errors that I get while doing a checkout:

 

# svn co http://10.138.X.YY:7878/svn/Tool

svn: PROPFIND request failed on '/svn/Tool'

svn: Can't set position pointer in file
'/usr/local/subversion/repository/db/revs/482': Invalid argument

 

 

If I give the SVNPath as /usr/local/subversion/ then I get the below
error.

# svn co http://10.138.X.YY:7878/svn/repository/

svn: PROPFIND request failed on '/svn/repository'

svn: Could not open the requested SVN filesystem

 

 

I followed the steps given below. Please let me know if I made a mistake
some where.

 

Installing httpd-2.2.9 from source:

 

./buildconf

./configure --enable-dav --enable-so

make

make install

 

This creates the apache2 directory in /usr/local

 

Now take subversion-1.4.6.tar.gz and subversion-deps-1.4.6.tar.gz. Untar
both to subversion-1.4.6.

 

Enter the subversion-1.4.6 directory

tar -zxvf subversion-1.4.6.tar.gz

tar -zxvf subversion-deps-1.4.6.tar.gz

cd subversion-1.4.6

 

cd apr

./configure --prefix=/usr/local/apr

make

make install

 

cd ../apr-util

./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr/
make
make install

 

cd ../neon

./configure --prefix=/usr/local/neon
make
make install

 

cd .. (now we are in the subversion 1.4.6 directory)

./configure --prefix=/usr/local/subversion
--with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr/
--with-apr-util=/usr/local/apr/ --with-neon=/usr/local/neon/

make

make install

 

groupadd apache

useradd -g apache -d /usr/local/apache2 apache

 

cd /usr/local/subversion

svnadmin create repository

(Note that we had been using svnserver over a period of time. So I just
copied the same db into /usr/local/subversion/repository in place of the
db that was created)

 

chown -Rv apache.apache /usr/local/apache2

chown -Rv apache.apache /usr/local/subversion/repository/

 

edit httpd.conf located at /usr/local/apache2/conf

editing httpd.conf file

 

Listen 10.138.X.YY:7878 (Entered the local IP of the machine and changed
the port no from 80 to 7878. Around line 41 )

 

LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authz_svn_module modules/mod_authz_svn.so

(These 2 lines were added after I installed subversion 1.4.6. However
mod_dav.so is missing. It is also not present in
/usr/local/apache2/modules around lines 54 and 55)

 

Changed the following

User daemon

Group daemon (around lines 68 & 69)

to

User apache

Group apache

 

My host doesn't have a registered DNS name so entered its IP in place of
ServerName

ServerName 10.138.X.YY:7878 (around line 103)

 

Changed the LogLevel from warn to debug

LogLevel warn

 

LogLevel debug (around line 98)

 

Added the following information about accessing the SVN repository at
the end of the httpd.conf file

 

<Location /svn>

DAV svn

SVNPath /usr/local/subversion/repository

</Location>

 

NOTE: I have copied the db that was previously used by us using the
svnserve command.

 

Start the apachetl service by issuing the command:

/usr/local/apache2/bin/apachectl start

 

Now if I try doing a SVN list/check out using http

# svn co http://10.138.X.YY:7878/svn/Tool

svn: PROPFIND request failed on '/svn/Tool'

svn: Can't set position pointer in file
'/usr/local/subversion/repository/db/revs/482': Invalid argument

 

 

If I give the SVNPath as /usr/local/subversion/ then I get the below
error.

# svn co http://10.138.X.YY:7878/svn/repository/

svn: PROPFIND request failed on '/svn/repository'

svn: Could not open the requested SVN filesystem

 

NOTE: mod_dav.so is missing from /usr/local/apache2/modules. Please let
me know how I can get it installed if it is required for the working of
the svn.

 

Please help..

 

Thanks.

Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Received on 2008-06-30 20:23:36 CEST

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.