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

ssh hangs using svn:// with svn-tunnel-agent = ssh *after* successful operation

From: <PVM_at_capmon.dk>
Date: 2003-03-12 11:16:04 CET

Hi there,

It seems ssh hanges *after* doing the proper svn repository operation in
my setup....

I've downloaded and successfully installed subversion. I have it working
with http:// and file://, but since we're migrating from CVS we already
have system accounts on our repository server and ssh authentication
working fine. So I'd like to use start using svn:// and continue to use
ssh.

My ~/.subversion/servers file looks like this:
[groups]
group1 = localhost

[group1]
svn-tunnel-agent = ssh

Now, the output from e.g.
delenn_at_pvm:~> svn co svn://localhost/tmp/osttt wcsvn
A wcsvn/AppletMenuSet.java
A wcsvn/applet.cgi
A wcsvn/GetPropertyApplet.java
A wcsvn/Map.java
Checked out revision 6.

looks correct to me. (It is identical to the output from e.g. svn co svn
co http://localhost:8080/svn/repos wchttp). But the command never
finishes....

I'm using localhost as the server, and only the pvm user is ever doing
anything (apache2 is running as pvm, file:// and http:// works fine,
/tmp/osttt is entirely owned by pvm)... cvs-over-ssh works fine with
CVS_RSH=ssh.

I tried to rename svnserve to svnserve.real and then create svnserve as:
#!/bin/bash
touch /tmp/subversion-pre-$$
svnserve.real "$@"
touch /tmp/subversion-post-$$

Now, the /tmp/subversion-pre-$$ file is created immediately, but the
subversion-post-$$ file isn't. Hitting CTRL-C in the window that is
hanging "returns from the hang" and creates the subversion-post-$$ file.

I did compile with --enable-maintainer-mode but I don't know if there is
some option I need to use to "show the maintainer info". I tried -v but it
didn't do much...

The odd thing is the hang seems to happen after the svn operation
completed successfully. If I e.g.
delenn@pvm:~/wcsvn> svn ci -m "Added a line more" GetPropertyApplet.java
Sending GetPropertyApplet.java
Transmitting file data .
Committed revision 8.
and let it hang, but go to a http:// based working directory in another
xterm and do an update, it shows:
delenn@pvm:~/wchttp> svn update
U GetPropertyApplet.java
Updated to revision 8.

The relevant parts of ps -efHw while it is hanging is:
root 245 1 0 08:08 ? 00:00:00 /usr/sbin/sshd
root 1178 245 0 08:19 ? 00:00:02 /usr/sbin/sshd
pvm 1179 1178 0 08:19 ? 00:00:00 /usr/bin/X11/xterm
-ls -T delenn
pvm 1183 1179 0 08:19 pts/0 00:00:00 -bash
pvm 5968 1183 0 11:01 pts/0 00:00:00 svn ci -m Added
a line more GetPropertyApplet.java
pvm 5969 5968 0 11:01 pts/0 00:00:00 ssh localhost
svnserve -t
root 3302 245 0 09:35 ? 00:00:00 /usr/sbin/sshd
pvm 3303 3302 0 09:35 ? 00:00:00 /usr/bin/X11/xterm
-ls -T delenn
pvm 3307 3303 0 09:35 pts/2 00:00:00 -bash
pvm 6021 3307 0 11:04 pts/2 00:00:00 ps -efHw
root 5970 245 0 11:01 ? 00:00:00 /usr/sbin/sshd
pvm 5971 5970 0 11:01 ? 00:00:00 /bin/bash
/home/pvm/scr/svnserve -t
pvm 5975 5971 0 11:01 ? 00:00:00 svnserve.real -t

Shouldn't the "svnserve.real -t" process # 5975 be finished at this
point? Why isn't it?

I compiled and since made subversion with:
    sh autogen.sh
    configure --prefix=$SUBVERSION_PREFIX \
     --with-apr=$APACHE_PREFIX \
     --with-apr-util=$APACHE_PREFIX \
     --with-apxs=$APACHE_PREFIX/bin/apxs \
     --with-berkeley-db=$BERKELEY_DB_PREFIX \
     --enable-maintainer-mode --with-ssl
    make && make install

using
autoconf-2.57.tar.gz
db-4.0.14.tar.gz
httpd-2.0.44.tar.gz
libtool-1.4.3.tar.gz
subversion-0.19.tar.gz

Additionally (I'm just curious), in
http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=29740, Greg
Hudson writes:

$ cat > mems-serve
#!/bin/sh
umask 002
exec svnserve $*
^D
$ chmod +x mems-serve

Is there any way to tell svn-over-ssh to use mems-serve instead of
svnserve? I suppose not. Thats why I renamed svnserve to svnserve.real to
create my own svnserve script...

Anybody have any ideas/pointers?

Thanks so much!

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Mar 12 13:47:51 2003

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.