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

RE: svnserve setup not working

From: Menschel, Bob [HDS] <Bob.Menschel_at_hdsupply.com>
Date: Fri, 8 Aug 2008 15:17:57 -0400

Thanks for the guidance. Unfortunately I'm still not getting something
right.

I simplified authz to
[/]
* = r

just to work through problems one at a time. I'll work through authz
later...

On the repository server cw3d, I use the command:
> svnserve --root=/svn/cw3 --foreground -X

My repository is /svn/cw3, with the authz file in /svn/cw3/conf (other
repositories are planned for /svn/other)

On that server, when I do an "svn info file:///svn/cw3/prod/" I get:
Path: prod
URL: file:///svn/cw3/prod
Repository Root: file:///svn/cw3
Repository UUID: 99a12dce-d69b-11dc-9272-dfb642a41e62
Revision: 198
Node Kind: directory
Last Changed Author: plibrm
Last Changed Rev: 195
Last Changed Date: 2008-08-06 15:00:06 -0700 (Wed, 06 Aug 2008)

On the client machine, I use the command:
> /opt/subversion/bin/svn co --username plibrm --password asdf
svn://cw3d/svn/cw3/prod .
svn: URL 'svn://cw3d/svn/cw3/prod' doesn't exist
The URL line from svn info suggests this would be the correct path to
use.

a) If I repeat exactly this same test, but on the server I use the
command
> svnserve --root=/svn/cw3 --foreground -i
then on the client I get
svn: Can't connect to host 'cw3d': A remote host refused an attempted
connect operation.
Is there something wrong with this svnserve command? ("svnserve
--root=/svn/cw3 --daemon" also works -- only the foreground -i command
seems to be non-functional here).

b) If I repeat the -X server command, and on the client use
> /opt/subversion/bin/svn co --username plibrm --password asdf
svn://cw3d/svn/prod .
(removing the cw3 repository name), then I get back:
svn: Can't connect to host 'cw3d': A remote host refused an attempted
connect operation.
Why is this connection refused, when the first one isn't, and
authorization (giving global read access) hasn't changed?

c) Somewhere along the way, one of the commands I issued that seemed to
NOT work somehow created a valid .svn directory in the checkout
destination. In one of my tests I received:
svn: '.' is already a working copy for a different URL; run 'svn update'
to complete it
I have no idea which of my tests that failed generated the .svn
directory. However, I was then able to start svnserve -X and issue
> /opt/subversion/bin/svn update --username plibrm --password asdf
and my desired checkout began to pull files from the repository.

Bob Menschel
Lead Systems Engineer
HD Supply, Repair & Remodel
3222 Winona Way # 201
North Highlands, CA 95660
Phone: 916-331-5934 x155
Fax: 866-504-2857
email: Bob.Menschel_at_hdsupply.com
website: http://www.hdsupplyrepairandremodel.com

One Team, Driving Customer Success and Value Creation

CONFIDENTIALITY NOTICE:
This e-mail message (including any attachments) is intended solely for
the use of the addressee(s) and may contain information that is
proprietary, privileged, confidential or otherwise legally exempt from
disclosure. If you are not the intended recipient of this e-mail
message, you are not authorized to review, print, copy, disseminate,
disclose or use this message, or otherwise take any action in reliance
upon this message or its contents. If you have received this message in
error, please notify the sender immediately and delete this message and
all copies thereof from your computer systems (including servers,
laptops, handheld devices and back-up systems).

-----Original Message-----
From: si [mailto:sshnug.si_at_gmail.com]
Sent: Thursday, August 07, 2008 7:36 PM
To: Menschel, Bob [HDS]
Cc: users_at_subversion.tigris.org
Subject: Re: svnserve setup not working

Hi Bob,

The repository name looks incorrect, and group references are prefixed
with @, so instead of:

[repository:/prod]
IT = r
plib = rw
[repository:/dvlp]
IT = rw
plib = r

use:

[cw3:/prod]
@IT = r
@plib = rw
[cw3:/dvlp]
@IT = rw
@plib = r

I'd also recommend setting a default so that all repositories are denied
access to un-authenticated users:

[/]
* =

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-08 21:16:56 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.