You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Matthieu Pasini <mp...@nexantis.net> on 2005/06/01 03:05:30 UTC

Apache/2.1.0-dev (Unix) DAV/2 SVN/1.2.0 with mod_dav

Hello,

I'm trying to install that couple of software but encounters problems.
If I try to reach my repository via a web browser, I get.

<D:error>
<C:error/>
  -<m:human-readable errcode="22">
  Can't set position pointer in file
'/usr/local/test/apache/htdocs/svn/test/db/revs/0': Invalid argument
</m:human-readable>
</D:error>

in the logs of apache, I get :

Wed Jun 01 12:00:04 2005] [error] [client 10.0.1.196] Could not fetch
resource information.  [500, #0], referer: http://intranet:4444/svn/
[Wed Jun 01 12:00:04 2005] [error] [client 10.0.1.196] Could not open the
root of the repository  [500, #22], referer: http://intranet:4444/svn/
[Wed Jun 01 12:00:04 2005] [error] [client 10.0.1.196] Can't set position
pointer in file '/usr/local/test/apache/htdocs/svn/test/db/revs/0': Invalid
argument  [500, #22], referer: http://intranet:4444/svn/

my configuration for the httpd.conf:
<Location /svn/test>
   DAV svn
   SVNPath /usr/local/test/apache/htdocs/svn/test
   SVNAutoversioning on
</Location>

My apache2.1.0 is listening on 4444 and as rights on the repository.
Is there a way to resolve that issue ?

Thank you.
Matthieu


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

Re: Apache/2.1.0-dev (Unix) DAV/2 SVN/1.2.0 with mod_dav

Posted by John Szakmeister <jo...@szakmeister.net>.
On Thursday 02 June 2005 03:26, Gal Aviel wrote:
> Matthieu Pasini <mpasini <at> nexantis.net> writes:
> > Hello,
> >
> > I'm trying to install that couple of software but encounters
> > problems. If I try to reach my repository via a web browser, I get.
> >
> > <D:error>
> > <C:error/>
> >   -<m:human-readable errcode="22">
> >   Can't set position pointer in file
> > '/usr/local/test/apache/htdocs/svn/test/db/revs/0': Invalid argument
> > </m:human-readable>
> > </D:error>
> >
> > in the logs of apache, I get :
> >
> > Wed Jun 01 12:00:04 2005] [error] [client 10.0.1.196] Could not fetch
> > resource information.  [500, #0], referer: http://intranet:4444/svn/
> > [Wed Jun 01 12:00:04 2005] [error] [client 10.0.1.196] Could not open
> > the root of the repository  [500, #22], referer:
> > http://intranet:4444/svn/ [Wed Jun 01 12:00:04 2005] [error] [client
> > 10.0.1.196] Can't set position pointer in file
> > '/usr/local/test/apache/htdocs/svn/test/db/revs/0': Invalid argument 
> > [500, #22], referer: http://intranet:4444/svn/
> >
> > my configuration for the httpd.conf:
> > <Location /svn/test>
> >    DAV svn
> >    SVNPath /usr/local/test/apache/htdocs/svn/test
> >    SVNAutoversioning on
> > </Location>

Judging by the referer line above, and your Location block here, it looks 
like you might have a configuration error.  Make sure you don't have a 
<Location /svn> block floating around that's conflicting with this 
location block.

> > My apache2.1.0 is listening on 4444 and as rights on the repository.
> > Is there a way to resolve that issue ?
> >
> > Thank you.
> > Matthieu
>
> I think I know what your problem is.
>
> You probably created a repository under
> /usr/local/test/apache/htdocs/svn/test/ (using 'svnadmin create'), BUT
> you did not make any revisions yet !!
>
> This is a sort of a bootstrap issue, that I myself have come across.

Really?  I've *never* had a problem checking out from a repository using 
svn://, file://, or http:// access.  You shouldn't have to bootstrap 
anything.  It's perfectly valid to have an empty repository.

-John

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

Re: Apache/2.1.0-dev (Unix) DAV/2 SVN/1.2.0 with mod_dav

Posted by Gal Aviel <ga...@yahoo.com>.
Matthieu Pasini <mpasini <at> nexantis.net> writes:

> 
> Hello,
> 
> I'm trying to install that couple of software but encounters problems.
> If I try to reach my repository via a web browser, I get.
> 
> <D:error>
> <C:error/>
>   -<m:human-readable errcode="22">
>   Can't set position pointer in file
> '/usr/local/test/apache/htdocs/svn/test/db/revs/0': Invalid argument
> </m:human-readable>
> </D:error>
> 
> in the logs of apache, I get :
> 
> Wed Jun 01 12:00:04 2005] [error] [client 10.0.1.196] Could not fetch
> resource information.  [500, #0], referer: http://intranet:4444/svn/
> [Wed Jun 01 12:00:04 2005] [error] [client 10.0.1.196] Could not open the
> root of the repository  [500, #22], referer: http://intranet:4444/svn/
> [Wed Jun 01 12:00:04 2005] [error] [client 10.0.1.196] Can't set position
> pointer in file '/usr/local/test/apache/htdocs/svn/test/db/revs/0': Invalid
> argument  [500, #22], referer: http://intranet:4444/svn/
> 
> my configuration for the httpd.conf:
> <Location /svn/test>
>    DAV svn
>    SVNPath /usr/local/test/apache/htdocs/svn/test
>    SVNAutoversioning on
> </Location>
> 
> My apache2.1.0 is listening on 4444 and as rights on the repository.
> Is there a way to resolve that issue ?
> 
> Thank you.
> Matthieu
> 




I think I know what your problem is.

You probably created a repository under /usr/local/test/apache/htdocs/svn/test/
(using 'svnadmin create'), BUT you did not make any revisions yet !!

This is a sort of a bootstrap issue, that I myself have come across.

To solve this, you must somehow create the first revision. As I remember
correctly, you can't even do a 'checkout' at this stage.

The solution is to do 'svn import', which will be your 1st revision. 

For example:

  mkdir /my_repos
  mkdir /my_repos/trunk
  mkdir /my_repos/tags
  mkdir /my_repos/branches

  svn import /my_repos http://my_repos_url -m "creating initial repository layout."


After this step, you should be able to checkout, etc.

Hope this helps (if not, we'll figure something else to try ..)

Thanks - Gal.


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