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

Re: Newbie question: svn [most commands] hangs without error

From: Chip Turner <cturner_at_pattern.net>
Date: 2005-03-28 04:49:03 CEST

"David D. Rea" <dave@daverea.com> writes:

> I am running subversion 1.1.3 on my Gentoo Linux box (Kernel 2.6.10-r4,
> glibc 2.3.4, bash 2.05) and starting off with a very simple repository
> located in a subdir of my home directory. The repository manages less
> than 10 files, including source files and some debug files created by
> the IDE I'm using. The repository is on my local machine, I am the only
> user accessing it, and thus far I've only been using the file:/// access
> method.

Are you using a bdb repository (it's the default, and changeable at
repo creation time)? What you describe sounds like a berkeley db
issue -- something has a lock. Did you try an 'svnadmin recover' on
the repo? Before a recover, you may need to use ps to find any other
svn or related processes (svnadmin, svnserve, gui clients, apache,
etc).

To diagnose further, next time an svn command locks, whip out strace
and lsof to see what the process is doing and what files it has open.
Generally you will see strace waiting on an flock or some similar
command that relates to a descriptor; then you use lsof to find out
what that descriptor is.

'strace -p PID' will strace the pid in question, then 'lsof -p PID' to
see what files, sockets, mmaps, etc the process has open.

Chip

-- 
Chip Turner                   cturner@pattern.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 28 04:51:47 2005

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.