You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Menschel, Bob [HDS]" <Bo...@hdsupply.com> on 2008/08/07 20:00:09 UTC
svnserve setup not working
I'm well into the process of implementing SVN for our
in-house home-grown ERP, and it's working very well on a
single system (our development box).
I cannot get a second box to do a checkout from the
repository via svnserve.
Dev box (IBM AIX 5.3 using the SVN version 1.4.6 (r28521)
binaries from http://svnbinaries.open.collab.net) holds
the repository at /svn/cw3.
(Other repositories are planned for /svn/other.)
Development level code (our trunk) is at /svn/cw3/dvlp
Production level code is at /svn/cw3/prod
/svn/cw3/conf/svnserve.conf contains:
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
/svn/cw3/conf/passwd contains:
[users]
plibrm = asdf
/svn/cw3/conf/authz contains:
[groups]
IT = 10003801,10003890,10003874,10003837,10003910
plib = plibrm,plibkt,plibdh,plibnb,plibrb
[repository:/prod]
IT = r
plib = rw
[repository:/dvlp]
IT = rw
plib = r
I start svnserve on that box with root privileges with the command
> svnserve --root=/svn/cw3 --foreground -i
and the following displays on that terminal:
( success ( 1 2 ( ANONYMOUS ) ( edit-pipeline svndiff1 absent-entries
) ) )
On box 2 (identical system, same AIX 5.3 O/S, same SVN version 1.4.6
(r28521) binaries, I then issue the command
> /opt/subversion/bin/svn co --username plibrm --password asdf
svn://cw3d/cw3/prod .
and get a response
svn: Can't connect to host 'cw3d': A remote host refused an attempted
connect operation.
No matter what svn command I issue to svn://cw3d/anything, I get the
same response.
There is no additional output on either the client requesting terminal
nor on the
server execution terminal.
If instead on box 1 I use the command
> svnserve --root=/svn/cw3 --foreground -X
and then on box 2 use the command
> /opt/subversion/bin/svn co --username plibrm --password asdf
svn://cw3d/cw3/prod .
Then once(!) I received back
Authentication realm: <svn://cw3d:3690>
99a12dce-d69b-11dc-9272-dfb642a41e62
Password for 'plibrm':
I entered asdf as the password and received
svn: Authorization failed
On every attempt since that one, All I get is
svn: Authorization failed
On each -X attempt, the svnserve process sits and waits for the
connection attempt, and exits when the client terminal displays the
Authorization failed message.
There is no additional display on the server terminal.
What am I doing wrong? What do I need to setup/configure so that
svnserve
will run on the repository machine, and on the remote machine svn
command
with svn://cw3d/address will work?
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@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).
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svnserve setup not working
Posted by si <ss...@gmail.com>.
> I'd also recommend setting a default so that all repositories are
> denied access to un-authenticated users:
>
> [/]
> * =
Sorry, that may be confusing, we have multiple repositories which
share the same authz and passwd files. If you just have a single
repository, the above should work, but you could also use:
[cw3:/]
* =
If you don't plan on sharing the same configuration files between
repositories, you could also have:
[/]
* =
[/prod]
@IT = r
@plib = rw
[/dvlp]
@IT = rw
@plib = r
However I've found it easier to manage all repositories from the one
(version controlled) authz and passwd file, and reference them from
svnserve.conf using a relative path.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: svnserve setup not working
Posted by "Menschel, Bob [HDS]" <Bo...@hdsupply.com>.
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@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@gmail.com]
Sent: Thursday, August 07, 2008 7:36 PM
To: Menschel, Bob [HDS]
Cc: users@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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svnserve setup not working
Posted by si <ss...@gmail.com>.
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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org