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

Re: troubles with svnserve and svnadmin

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-05-04 11:58:24 CEST

On Wednesday 04 May 2005 04:31, maxx@videosite.ru wrote:
> "svnadmin create PATH-TO-REPOSITORY" hangs on Linux 2.4.18 with
> subversion and libraries from here:
>
> http://summersoft.fay.ar.us/pub/subversion/latest/redhat-7.x/bin/
>
> After this i created repository on WinXP by TortoiseSVN and uploaded
> this to Linux box.
> Then I started svnserve -d -i PATH-TO-REPO - and now I can see very
> interesting thing - without any uncommented strings in
> conf/svnserve.conf (i.e. without ability to authenticate users)
> repository works OK (read only of course), but if I try to set up
> authentication in this file - svnserve hangs without any error :((( I
> tried to run svnserve under root, and under dedicated account - results
> are the same.
>
> It's funny, but "svn checkout file:///PATH-TO-REPO ... " works fine. I
> don't know whats wrong with me or with this program, but all of this
> makes me really angry.

You didn't say which version of Subversion that you are using, nor what
kind of repository you created (FSFS or BDB). You also didn't include
the contents of your svnserve.conf file. It's hard to help troubleshoot
your problem without this information. :-)

My guess is that you haven't set up authentication correctly. You
actually need two files: svnserve.conf and another (typically called
passwd that consists of name/value pairs).

For instance, my svnserve.conf might look like:
  [general]
  anon-access = none
  auth-access = write
  password-db = /path/to/passwd
  realm = Test Project

and /path/to/passwd might be:
  [users]
  test = password

Finally, you're command line looks wrong. It should probably be 'svnserve
-d -r /path/to/repo'. You can't mix -d and -i, those are mutually
exclusive options (a newer Subversion would actually tell you this).

Other pitfalls to watch for are moving a BDB repository between OS's. You
should really delete the __db.* files from the repo/db directory and run
'svnadmin recover' on the repository from the new machine. BDB isn't
meant to be quite a portable as FSFS was designed to be.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 4 12:04:45 2005

This is an archived mail posted to the Subversion Users mailing list.