You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jamie Cash <jl...@btinternet.com> on 2006/01/17 22:58:13 UTC

Bug: Can't set position pointer in file

Bug

When using mod_dav_svn (subversion 1.3.0 (r17949)) with apache 2.2.0 I 
get the following error when trying to check out from my repository:

[Mon Jan 16 17:11:46 2006] [error] [client 81.130.207.88] Could not 
fetch resource information.  [500, #0]
[Mon Jan 16 17:11:46 2006] [error] [client 81.130.207.88] Could not open 
the root of the repository  [500, #22]
[Mon Jan 16 17:11:46 2006] [error] [client 81.130.207.88] Can't set 
position pointer in file '/srv/svn/db/revs/3': Invalid argument  [500, #22]

My repository is set up in /srv/svn and has full write access for all 
users (777).

The svn request that causes the error is /svn co 
http://www.ecommerce-consultancy.co.uk/svn/trunk/eccgroup/. This check 
out works correctly when using /svn co file:///srv/svn/trunk/eccgroup/ 
though.

My httpd.conf file section is as follows:

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

<Location /svn>
  DAV svn

  SVNPath /srv/svn

  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile "/usr/share/apache2/etc/svn-auth-file"

  Require valid-user
</Location>

This appears to be a bug with subversion, as this worked correctly on 
the previous version of subversion with the same apache configuration 
file. (Same apache version, different operating system (Win2k Server as 
oppose to SuSE 9.3), same apache config file).

I am running on a SuSE 9.3 server and built subversion with the 
following configure options:
/configure --with-apxs=/usr/share/apache2/bin/apxs 
--with-apr=/usr/share/apache2/bin/apr-1-config 
--with-apr-util=/usr/share/apache2/bin/apu-1-config

I have tried asking on the users mailing group, but no one has been able 
to help, or confirm whether this is a bug or if I am missing something.
I apologise if this is a mistake on my part, but I have tried every 
build and configuration option that I can think of, which leads me to 
believe that this in fact a bug.

Any clarification or help would be much appreciated.

Regards

Jamie


Re: Bug: Can't set position pointer in file

Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Tue, Jan 17, 2006 at 10:58:13PM +0000, Jamie Cash wrote:
> [Mon Jan 16 17:11:46 2006] [error] [client 81.130.207.88] Can't set 
> position pointer in file '/srv/svn/db/revs/3': Invalid argument  [500, #22]
> 

Subversion can't seek to the right position in the revision file.  Is the
file '/srv/svn/db/revs/3' particularly large? (perhaps greater than 2Gb?)

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Bug: Can't set position pointer in file

Posted by Jamie Cash <jl...@btinternet.com>.
Thanks for your help.

I have run ldd as suggested, and it did show different versions of the 
apr libraries for svn, httpd and mod_dav_svn.

I have removed all versions of apr from my system other than the apache 
version, and rerun the configure, make and build, pointing to the apache 
apr libs where necessary.

All is now working as expected.

Thanks once again, and apologies for raising as a bug, I thought I had 
tried all possible configurations.

Regards

Jamie







Philip Martin wrote:

>Jamie Cash <jl...@btinternet.com> writes:
>
>  
>
>>[Mon Jan 16 17:11:46 2006] [error] [client 81.130.207.88] Can't set
>>position pointer in file '/srv/svn/db/revs/3': Invalid argument  [500,
>>#22]
>>    
>>
>
>That's an svn_io_file_seek error.
>
>  
>
>>The svn request that causes the error is svn co
>>http://www.ecommerce-consultancy.co.uk/svn/trunk/eccgroup. This check out
>>works correctly when using svn co file:///srv/svn/trunk/eccgroup though.
>>    
>>
>
>One possibility is that you have an apr_off_t incompatibility between
>httpd and Subversion.  Run ldd on the httpd binary, the svn binary and
>the mod_dav_svn.so module, does more than one version of the apr
>library show up?
>
>  
>
>>I am running on a SuSE 9.3 server and built subversion with the following
>>configure options:
>>/configure --with-apxs=/usr/share/apache2/bin/apxs
>>--with-apr=/usr/share/apache2/bin/apr-1-config
>>--with-apr-util=/usr/share/apache2/bin/apu-1-config
>>    
>>
>
>Do you have any other apr libraries on the system?
>
>  
>


Re: Bug: Can't set position pointer in file

Posted by Philip Martin <ph...@codematters.co.uk>.
Jamie Cash <jl...@btinternet.com> writes:

> [Mon Jan 16 17:11:46 2006] [error] [client 81.130.207.88] Can't set
> position pointer in file '/srv/svn/db/revs/3': Invalid argument  [500,
> #22]

That's an svn_io_file_seek error.

> The svn request that causes the error is svn co
> http://www.ecommerce-consultancy.co.uk/svn/trunk/eccgroup. This check out
> works correctly when using svn co file:///srv/svn/trunk/eccgroup though.

One possibility is that you have an apr_off_t incompatibility between
httpd and Subversion.  Run ldd on the httpd binary, the svn binary and
the mod_dav_svn.so module, does more than one version of the apr
library show up?

> I am running on a SuSE 9.3 server and built subversion with the following
> configure options:
> /configure --with-apxs=/usr/share/apache2/bin/apxs
> --with-apr=/usr/share/apache2/bin/apr-1-config
> --with-apr-util=/usr/share/apache2/bin/apu-1-config

Do you have any other apr libraries on the system?

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org