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

Re: My first hung repository

From: Eric S. Raymond <esr_at_thyrsus.com>
Date: 2004-08-25 08:51:22 CEST

Brian W. Fitzpatrick <fitz@red-bean.com>:
> 1. Make sure that there are no processes accessing
> (or attempting to access) the repository. For
> networked repositories, this means shutting down
> the Apache HTTP Server, too.
>
> Of course, if you're using svn+ssh, you may have to kill an svnserve or
> ssh process instead of an HTTP process--you need to kill the other
> processes that have a lock on the repository

I read that bit. Carefully. It wasn't helpful. I'm not flaming, not
this time, because this is a forgivable sort of omission -- there are enough
different hosting circumstances that trying to be exhaustive about it
would be very hard.

But, say I'm on a Linux machine -- how do I tell which processes have
a lock on the repository? (Actually, the first question is why "svn
recover" doesn't print a list of those locks and exit with an
explanatory message.)

Looking for svnserves in the process list isn't good enough. Here
I am on a big hosting site:

esr@sheep:~> ps ax | grep svn
11463 ? S 0:00 /usr/bin/svnserve.exe -d -r /svnroot/repos
 9395 ? S 0:00 /usr/bin/svnserve.exe -d -r /svnroot/repos
17369 ? S 0:00 /bin/bash /usr/local/httpd/SF2.5/backend/berlios/cron.daily.svn
 9361 ? S 0:03 /usr/bin/perl ./create_svn_dumps.pl
18014 ? S 0:00 sh -c svnadmin dump /svnroot/repos/tw-light >/tmp/tw-light-repos
18015 ? S 0:00 /bin/sh /usr/bin/svnadmin dump /svnroot/repos/tw-light
18016 ? S 0:00 /usr/bin/svnadmin.exe dump /svnroot/repos/tw-light
 8208 ? S 0:00 /bin/sh /usr/bin/svnserve -t
 8227 ? S 0:00 /usr/bin/svnserve.exe -t
 8243 ? S 0:00 /bin/sh /usr/bin/svnserve -t
 8262 ? S 0:00 /usr/bin/svnserve.exe -t
 9475 ? S 0:00 /bin/sh /usr/bin/svnserve -t
 9494 ? S 0:00 /usr/bin/svnserve.exe -t
 1078 ? S 0:00 /bin/bash /usr/local/httpd/SF2.5/backend/berlios/cron.daily.svn
 1082 ? S 0:00 /usr/bin/perl ./remove_svn_unused_dblogs.pl
10864 ? S 0:00 sh -c svnadmin list-unused-dblogs /svnroot/repos/tlr-regedit | xargs rm
10865 ? S 0:00 /bin/sh /usr/bin/svnadmin list-unused-dblogs /svnroot/repos/tlr-regedit
10867 ? S 0:00 /usr/bin/svnadmin.exe list-unused-dblogs /svnroot/repos/tlr-regedit
17754 ? S 0:00 /bin/sh /usr/bin/svnserve -t
17774 ? S 0:00 /usr/bin/svnserve.exe -t
18182 ? S 0:00 /bin/sh /usr/bin/svnserve -t
18202 ? S 0:00 /usr/bin/svnserve.exe -t
18244 ? S 0:00 /bin/sh /usr/bin/svnserve -t
18264 ? S 0:00 /usr/bin/svnserve.exe -t
22279 ? S 0:00 /usr/bin/svnserve.exe -d -r /svnroot/repos

-- 
		Eric S. Raymond
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 25 08:59:18 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.