You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "David D. Rea" <da...@daverea.com> on 2005/03/28 02:27:25 UTC

Newbie question: svn [most commands] hangs without error

Hi subversion users-

I'm very new to subversion - just started managing code with it
yesterday - and I'm having some trouble I hope you can help me with. I
apologize in advance if this has already been covered here. I have
Google searched and also searched the mailing list archives, but not
much seems applicable.

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. 

Everything was working great until earlier tonight. When I tried to do a
`svn commit -m "some_message"` it hung without any output. Same goes
without the `-m` switch, using the nano editor to enter my log message.
It sat for at least 2 minutes. I tried killing the process with `killall
svn` in another shell, but was forced to explicitly kill the process
with `kill -9 [process-number]" in order to get my shell back.

So far, it has hung with `svn commit` and `svn list` commands, but works
fine with `svn status` and `svn cleanup` commands. This seems to
indicate it has issues only when it tries to access the repository.
Speaking of `svn cleanup`, this problem still occurs after my working
copy has been cleaned up.

I'm not sure where to begin; I'd like to either find a log file or up
the verbosity of the command so I can learn where the breakage is. Any
suggestions?

Thanks much in advance,
Dave Rea
[Subversion (and version control in general) Amateur]


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by Chip Turner <ct...@pattern.net>.
"David D. Rea" <da...@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