You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "N. Thomas" <nt...@cise.ufl.edu> on 2004/01/27 15:36:43 UTC
hook scripts don't work with file:// URLS
So my hook scripts aren't being called at all. FWIW, I've checked the
obvious:
- permissions, ownership
- the scripts themselves work fine
- In addition to post-commit, I also tried to get
the other hook scripts to execute, no luck
The only thing I can think of that might be a problem is that I'm
checking in via the file:// and svn:// methods. Are hook scripts only
supposed to work with Apache2?
Thomas
--
N. Thomas
nthomas@cise.ufl.edu
http://www.cise.ufl.edu/~nthomas/
Etiamsi occiderit me, in ipso sperabo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hook scripts don't work with file:// URLS
Posted by "N. Thomas" <nt...@cise.ufl.edu>.
* Ben Collins-Sussman <su...@collab.net> [2004-01-27 10:19:29 -0600]:
> On Tue, 2004-01-27 at 09:36, N. Thomas wrote:
> > The only thing I can think of that might be a problem is that I'm
> > checking in via the file:// and svn:// methods. Are hook scripts
> > only supposed to work with Apache2?
>
> Nope, hook-scripts work with file:// just fine. Maybe you should show
> us an 'ls -l' of your hooks/ directory.
Feh, I just got it to work.
I initially was calling another program in the hook script, but when it
didn't work the first time, I started testing the scripts with
'echo "args are $REPOS $REV"' -- but I only now just realized that the
hook's stdout is not redirected to the terminal where I was doing the
checkin.
Thanks for helping me get this straightened out.
Thomas
--
N. Thomas
nthomas@cise.ufl.edu
http://www.cise.ufl.edu/~nthomas/
Etiamsi occiderit me, in ipso sperabo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
svnserve hang
Posted by root <eb...@yahoo.com>.
Hi, I posted a while back about this problem. I
thought it went away after upgrading to 0.36, but it
did not. It still exits. Currently, I am running
svnserve in gdb with -d mode. Then I connect via
local LAN using Tortoise and try a checkout of a
repository via the svn:// method. I'm not sure
exactly where to be setting breakpoints, so perhaps
someone can help me out...anyway, it starts checking
things out, but eventually it just hangs in the middle
of the checkout.
This is on SMP server (0.36) and SMP client (Tortoise)
Here is a gdb session:
## Starting -- before client issues LAN checkout..
(gdb) continue
Continuing.
Breakpoint 6, apr_proc_wait_all_procs
(proc=0xbfffecd0, exitcode=0x0, exitwhy=0x0,
waithow=APR_NOWAIT, p=0x8055c28) at proc.c:533
533 proc->pid = -1;
(gdb) bt
#0 apr_proc_wait_all_procs (proc=0xbfffecd0,
exitcode=0x0, exitwhy=0x0, waithow=APR_NOWAIT,
p=0x8055c28) at proc.c:533
#1 0x0804acd1 in main (argc=2, argv=0xbfffee84) at
subversion/svnserve/main.c:357
#2 0x42015704 in __libc_start_main () from
/lib/tls/libc.so.6
(gdb) continue
Continuing.
Breakpoint 7, apr_proc_fork (proc=0xbfffecd0,
pool=0x8055c28) at proc.c:226
226 if ((pid = fork()) < 0) {
(gdb) bt
#0 apr_proc_fork (proc=0xbfffecd0, pool=0x8055c28) at
proc.c:226
#1 0x0804ae19 in main (argc=2, argv=0xbfffee84) at
subversion/svnserve/main.c:392
#2 0x42015704 in __libc_start_main () from
/lib/tls/libc.so.6
(gdb) c
Continuing.
Breakpoint 6, apr_proc_wait_all_procs
(proc=0xbfffecd0, exitcode=0x0, exitwhy=0x0,
waithow=APR_NOWAIT, p=0x8055c28) at proc.c:533
533 proc->pid = -1;
(gdb) bt
#0 apr_proc_wait_all_procs (proc=0xbfffecd0,
exitcode=0x0, exitwhy=0x0, waithow=APR_NOWAIT,
p=0x8055c28) at proc.c:533
#1 0x0804acd1 in main (argc=2, argv=0xbfffee84) at
subversion/svnserve/main.c:357
#2 0x42015704 in __libc_start_main () from
/lib/tls/libc.so.6
(gdb) c
Continuing.
Breakpoint 7, apr_proc_fork (proc=0xbfffecd0,
pool=0x8055c28) at proc.c:226
226 if ((pid = fork()) < 0) {
(gdb) bt
#0 apr_proc_fork (proc=0xbfffecd0, pool=0x8055c28) at
proc.c:226
#1 0x0804ae19 in main (argc=2, argv=0xbfffee84) at
subversion/svnserve/main.c:392
#2 0x42015704 in __libc_start_main () from
/lib/tls/libc.so.6
(gdb) c
Continuing.
### HERE IS WHERE it just gets stuck, somewhere along
the path. ...eventually I have to CTRL-C in gdb b/c
nothing is happening anymore. I setup ALL signal
information to print. Could it be that someone is
waiting for a signal? Can someone point me to places
in the code where critical sections exist, or busy
wait conditions, etc..so I can try to break
around/near there?
Program received signal SIGINT, Interrupt.
0xffffe002 in ?? ()
(gdb) bt
#0 0xffffe002 in ?? ()
#1 0x0804aca7 in main (argc=2, argv=0xbfffee84) at
subversion/svnserve/main.c:353
#2 0x42015704 in __libc_start_main () from
/lib/tls/libc.so.6
This was after the CTRL-C
Thanks for any and all help...
Regards,
Davis
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hook scripts don't work with file:// URLS
Posted by Ben Collins-Sussman <su...@collab.net>.
On Tue, 2004-01-27 at 09:36, N. Thomas wrote:
> So my hook scripts aren't being called at all. FWIW, I've checked the
> obvious:
>
> - permissions, ownership
>
> - the scripts themselves work fine
>
> - In addition to post-commit, I also tried to get
> the other hook scripts to execute, no luck
>
> The only thing I can think of that might be a problem is that I'm
> checking in via the file:// and svn:// methods. Are hook scripts only
> supposed to work with Apache2?
Nope, hook-scripts work with file:// just fine. Maybe you should show
us an 'ls -l' of your hooks/ directory.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hook scripts don't work with file:// URLS
Posted by "N. Thomas" <nt...@cise.ufl.edu>.
* John Peacock <jp...@rowman.com> [2004-01-27 10:57:13 -0500]:
> N. Thomas wrote:
> >So my hook scripts aren't being called at all.
>
> O/S? Version of svn? Which hook scripts are you testing?
Sorry for not including this earlier, the OS is Solaris 8, and I'm using
svn 0.37.0. I've tested post-commit, pre-commit, and start-commit with
regular /bin/sh scripts.
Thomas
--
N. Thomas
nthomas@cise.ufl.edu
http://www.cise.ufl.edu/~nthomas/
Etiamsi occiderit me, in ipso sperabo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hook scripts don't work with file:// URLS
Posted by John Peacock <jp...@rowman.com>.
N. Thomas wrote:
> So my hook scripts aren't being called at all.
O/S? Version of svn? Which hook scripts are you testing?
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org