You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Vlad Skvortsov <vs...@ulstu.ru> on 2003/10/28 12:31:01 UTC

svn log fails on repository root

	Hi!

	I've got subversion 0.32.1 on FreeBSD 4-STABLE.
	
	I have repository installed and operating for about a year now.
Several days ago I've noticed that issuing command like:

	svn log -v http://svn.mydomain.com/repos

	(i.e. pointing to the very root of it)
	fails with output:

svn: RA layer request failed
svn: PROPFIND request failed on '/repos'
svn: PROPFIND of '/repos': 301 Moved Permanently (http://svn.mydomain.com)

	If I type
	svn log -v http://svn.mydomain.com/repos/trunk

	all works greatly.
-- 
Vlad Skvortsov, vss@ulstu.ru, vss@high.net.ru

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

Re: svn log fails on repository root

Posted by Edmund Horner <ed...@chrysophylax.cjb.net>.
Files wrote:

> It may just be me, but in the 301 below, I see no /repos/. Am I missing
> something?

Hi,

I felt a bit foolish when you pointed that out; but trying to SVN to 
another part of my namespace that works fine got:

$ svn log -v http://projects/superdb
svn: RA layer request failed
svn: PROPFIND request failed on '/superdb'
svn: PROPFIND of '/superdb': 301 Moved Permanently (http://projects)

So it looks like the "(stuff in paranthesis)" is simply the name of the 
server.

Edmund.




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

Re: svn log fails on repository root

Posted by Files <fi...@poetryunlimited.com>.
Edmund,

It may just be me, but in the 301 below, I see no /repos/. Am I missing
something?

-- 
Shamim Islam
BA BS

Edmund Horner said:
> Vlad Skvortsov wrote:
>> svn: PROPFIND of '/repos': 301 Moved Permanently (http://svn.mydomain.com)
>
> This is an HTTP redirect message from the server telling the client to
> go to http://svn.mydomain.com/repos/ instead (note the trailing /).


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

Re: svn log fails on repository root

Posted by Vlad Skvortsov <vs...@ulstu.ru>.
On Tue, Oct 28, 2003 at 11:59:32PM +0100, Tobias Ringstrom wrote:
> Vlad Skvortsov wrote:
> >	Unfortunately that doesn't work in my case. I've tried all 4
> >combinations.
> I bet you have a directory under your ServerRoot with the same name as 
> the direcory in your Location.  Hmmm...  I'm not sure that I 
> understand that sentence myself, so here's an example.
> Let's say that your ServerRoot is /var/www, and you have the following 
> Location in the httpd.conf:
> 
> 	<Location /repos>
> 	DAV svn
> 	...
> 	</Location>
> For some reason you may not have an on disk directory /var/www/repos. 
>  If you do that, you get the error you got.  There is not reason to 
> have the svn repos under the ServerRoot.  Put it under /var/svn or 
> something instead.
> Please let us know if this was the problem!

	Yes, it was the problem. But as far as I remember the layout I've
used (the repository inside the document root) was suggested in some INSTALL
or README. I may be wrong.

-- 
Vlad Skvortsov, vss@ulstu.ru, vss@high.net.ru

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

Re: svn log fails on repository root

Posted by Vlad Skvortsov <vs...@ulstu.ru>.
On Tue, Oct 28, 2003 at 06:11:15PM -0800, Greg Stein wrote:
> Tobias' point is the typical cause of the symptoms you are seeing. Apache
> will see the 'repos' subdirectory under the docroot, note that you don't
> have a trailing slash, and perform a redirect to put one there. This
> behavior occurs "before" the <Location /repos> processing.
> 
> Putting a trailing slash on the URL at the command line doesn't help
> because it is usually stripped off anyways. The Location block shouldn't
> have a trailing slash, and I believe any trailing slashes on SVNPath might
> be stripped off, too.
> 
> It is almost always a subdirectory in your docroot.

	Okay, now, when the main problem has gone, the only minor issue I've
encountered is that when I point my browser to http://svn.mydomain.com/repos
it says 404. Entering http://svn.mydomain.com/repos/ works fine. Not very
serious but sometimes a bit inconvinient to me. How can be this issue
addressed?

-- 
Vlad Skvortsov, vss@ulstu.ru, vss@high.net.ru

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

Re: svn log fails on repository root

Posted by Greg Stein <gs...@lyra.org>.
Tobias' point is the typical cause of the symptoms you are seeing. Apache
will see the 'repos' subdirectory under the docroot, note that you don't
have a trailing slash, and perform a redirect to put one there. This
behavior occurs "before" the <Location /repos> processing.

Putting a trailing slash on the URL at the command line doesn't help
because it is usually stripped off anyways. The Location block shouldn't
have a trailing slash, and I believe any trailing slashes on SVNPath might
be stripped off, too.

It is almost always a subdirectory in your docroot.

Cheers,
-g

On Tue, Oct 28, 2003 at 11:59:32PM +0100, Tobias Ringstrom wrote:
> Vlad Skvortsov wrote:
> > 	Unfortunately that doesn't work in my case. I've tried all 4
> > combinations.
> 
> I bet you have a directory under your ServerRoot with the same name as 
> the direcory in your Location.  Hmmm...  I'm not sure that I 
> understand that sentence myself, so here's an example.
> 
> Let's say that your ServerRoot is /var/www, and you have the following 
> Location in the httpd.conf:
> 
> 	<Location /repos>
> 	DAV svn
> 	...
> 	</Location>
> 
> For some reason you may not have an on disk directory /var/www/repos. 
>   If you do that, you get the error you got.  There is not reason to 
> have the svn repos under the ServerRoot.  Put it under /var/svn or 
> something instead.
> 
> Please let us know if this was the problem!
> 
> /Tobias
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

-- 
Greg Stein, http://www.lyra.org/

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

Re: svn log fails on repository root

Posted by Tobias Ringstrom <to...@ringstrom.mine.nu>.
Vlad Skvortsov wrote:
> 	Unfortunately that doesn't work in my case. I've tried all 4
> combinations.

I bet you have a directory under your ServerRoot with the same name as 
the direcory in your Location.  Hmmm...  I'm not sure that I 
understand that sentence myself, so here's an example.

Let's say that your ServerRoot is /var/www, and you have the following 
Location in the httpd.conf:

	<Location /repos>
	DAV svn
	...
	</Location>

For some reason you may not have an on disk directory /var/www/repos. 
  If you do that, you get the error you got.  There is not reason to 
have the svn repos under the ServerRoot.  Put it under /var/svn or 
something instead.

Please let us know if this was the problem!

/Tobias


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

Re: svn log fails on repository root

Posted by Edmund Horner <ed...@chrysophylax.cjb.net>.
Vlad Skvortsov wrote:
> 	Unfortunately that doesn't work in my case. I've tried all 4
> combinations.
> 

My apologies Vlad, for suggesting that.  I think I got a bit confused 
about the problem.  AFAICT (but I'm not expert) this is a slightly 
different bug from 660.

Edmund.



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

Re: svn log fails on repository root

Posted by Vlad Skvortsov <vs...@ulstu.ru>.
On Wed, Oct 29, 2003 at 02:03:11AM +1300, Edmund Horner wrote:
> >	Even if I add a slash to the end of url, it still redirects me from
> >/repos.
> Ok, I have tried several combinations in httpd.conf, after reading from 
> another part of the thread that your <Location> directive has no 
> trailing slash.
> If <Location> has a trailing slash but SVNPath does not, then I get the 
> behaviour you describe.  All other combinations work fine.
> I know that doesn't sound right (since you don't have that combination), 
> but you might try adding trailing slashes to both parts; this is what I 
> have and it works for me.

	Unfortunately that doesn't work in my case. I've tried all 4
combinations.

-- 
Vlad Skvortsov, vss@ulstu.ru, vss@high.net.ru

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

Re: svn log fails on repository root

Posted by Edmund Horner <ed...@chrysophylax.cjb.net>.
Vlad Skvortsov wrote:

> 	Even if I add a slash to the end of url, it still redirects me from
> /repos.

Ok, I have tried several combinations in httpd.conf, after reading from 
another part of the thread that your <Location> directive has no 
trailing slash.

If <Location> has a trailing slash but SVNPath does not, then I get the 
behaviour you describe.  All other combinations work fine.

I know that doesn't sound right (since you don't have that combination), 
but you might try adding trailing slashes to both parts; this is what I 
have and it works for me.

HTH,
Edmund Horner.




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

Re: svn log fails on repository root

Posted by Vlad Skvortsov <vs...@ulstu.ru>.
On Wed, Oct 29, 2003 at 01:40:06AM +1300, Edmund Horner wrote:
> >svn: RA layer request failed
> >svn: PROPFIND request failed on '/repos'
> >svn: PROPFIND of '/repos': 301 Moved Permanently (http://svn.mydomain.com)
> This is an HTTP redirect message from the server telling the client to 
> go to http://svn.mydomain.com/repos/ instead (note the trailing /).
> Unfortunately the client does not yet deal with the message--see 
> http://subversion.tigris.org/issues/show_bug.cgi?id=660 .
> A workaround is to simply add the trailing / whenever you want to look 
> at /repos .

	Even if I add a slash to the end of url, it still redirects me from
/repos.

-- 
Vlad Skvortsov, vss@ulstu.ru, vss@high.net.ru

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

Re: svn log fails on repository root

Posted by Edmund Horner <ed...@chrysophylax.cjb.net>.
Vlad Skvortsov wrote:
> svn: RA layer request failed
> svn: PROPFIND request failed on '/repos'
> svn: PROPFIND of '/repos': 301 Moved Permanently (http://svn.mydomain.com)

This is an HTTP redirect message from the server telling the client to 
go to http://svn.mydomain.com/repos/ instead (note the trailing /).

Unfortunately the client does not yet deal with the message--see 
http://subversion.tigris.org/issues/show_bug.cgi?id=660 .

A workaround is to simply add the trailing / whenever you want to look 
at /repos .

HTH,
Edmund Horner.



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

Re: svn log fails on repository root

Posted by Vlad Skvortsov <vs...@ulstu.ru>.
On Tue, Oct 28, 2003 at 01:40:02PM +0100, Sander Striker wrote:
> > > 	I've got subversion 0.32.1 on FreeBSD 4-STABLE.
> > > 	I have repository installed and operating for about a year now.
> > > Several days ago I've noticed that issuing command like:
> > > 	svn log -v http://svn.mydomain.com/repos
> > > 	(i.e. pointing to the very root of it)
> > > 	fails with output:
> > > svn: RA layer request failed
> > > svn: PROPFIND request failed on '/repos'
> > > svn: PROPFIND of '/repos': 301 Moved Permanently 
> > > (http://svn.mydomain.com)
> > Try svn log -v http://svn.mydomain.com/repos/
> > (note the trailing slash)
> Vlad, you wouldn't happen to have a trailing / in your
> Location block would you (<Location /repos/>)?  If so,
> try and remove it.

	No, there is no trailing slash there.

-- 
Vlad Skvortsov, vss@ulstu.ru, vss@high.net.ru

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

Re: svn log fails on repository root

Posted by Vlad Skvortsov <vs...@ulstu.ru>.
On Tue, Oct 28, 2003 at 07:36:39AM -0500, Garrett Rooney wrote:
> >	I've got subversion 0.32.1 on FreeBSD 4-STABLE.
> >	I have repository installed and operating for about a year now.
> >Several days ago I've noticed that issuing command like:
> >	svn log -v http://svn.mydomain.com/repos
> >	(i.e. pointing to the very root of it)
> >	fails with output:
> >svn: RA layer request failed
> >svn: PROPFIND request failed on '/repos'
> >svn: PROPFIND of '/repos': 301 Moved Permanently 
> >(http://svn.mydomain.com)
> Try svn log -v http://svn.mydomain.com/repos/
> (note the trailing slash)

	The same thing.

-- 
Vlad Skvortsov, vss@ulstu.ru, vss@high.net.ru

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

RE: svn log fails on repository root

Posted by Sander Striker <st...@apache.org>.
> From: Garrett Rooney [mailto:rooneg@electricjellyfish.net]
> Sent: Tuesday, October 28, 2003 1:37 PM

> On Oct 28, 2003, at 7:31 AM, Vlad Skvortsov wrote:
> 
> > 	Hi!
> >
> > 	I've got subversion 0.32.1 on FreeBSD 4-STABLE.
> > 	
> > 	I have repository installed and operating for about a year now.
> > Several days ago I've noticed that issuing command like:
> >
> > 	svn log -v http://svn.mydomain.com/repos
> >
> > 	(i.e. pointing to the very root of it)
> > 	fails with output:
> >
> > svn: RA layer request failed
> > svn: PROPFIND request failed on '/repos'
> > svn: PROPFIND of '/repos': 301 Moved Permanently 
> > (http://svn.mydomain.com)
> 
> Try svn log -v http://svn.mydomain.com/repos/
> 
> (note the trailing slash)

Vlad, you wouldn't happen to have a trailing / in your
Location block would you (<Location /repos/>)?  If so,
try and remove it.


Sander

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

Re: svn log fails on repository root

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On Oct 28, 2003, at 7:31 AM, Vlad Skvortsov wrote:

> 	Hi!
>
> 	I've got subversion 0.32.1 on FreeBSD 4-STABLE.
> 	
> 	I have repository installed and operating for about a year now.
> Several days ago I've noticed that issuing command like:
>
> 	svn log -v http://svn.mydomain.com/repos
>
> 	(i.e. pointing to the very root of it)
> 	fails with output:
>
> svn: RA layer request failed
> svn: PROPFIND request failed on '/repos'
> svn: PROPFIND of '/repos': 301 Moved Permanently 
> (http://svn.mydomain.com)

Try svn log -v http://svn.mydomain.com/repos/

(note the trailing slash)

-garrett


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