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

RE: Subversion Hook succeeds inconsistently (very strange)

From: Bradley Molander <Bradley.Molander_at_nisc.coop>
Date: 2006-09-06 14:17:08 CEST

-----Original Message-----
From: John Szakmeister [mailto:john@szakmeister.net]
Sent: Wed 9/6/2006 3:54 AM
To: Bradley Molander
Cc: users@subversion.tigris.org
Subject: Re: Subversion Hook succeeds inconsistently (very strange)

----- Bradley Molander <Bradley.Molander@nisc.coop> wrote:
> Apparently, with most commits through the dav connector, a newline is
> being appended. Subversion pre-commit hook nearly always fails because
> of this even when the only text in the file is:
> ------------
> #!/bin/sh
> exit 0
> ------------
> We have been using subversion for 18 months with no problems. Once we
> upgraded to 1.3, the dav connector more often than not reports a hook
> error when there isn't one (using above script). Sometimes, it passes,
> but usually not (~ 10 failures to every success). If we use svnserve,
> the hook works properly (so do our normal hooks).
> What could cause this? In the apache log I see:
> [Tue Sep 05 21:33:44 2006] [error] [client *host*] Could not MERGE
> resource "/dav/test2/!svn/act/b616d8cd-bf1c-0410-9d09-cae5edde832e"
> into "/dav/test2". [409, #0]
> [Tue Sep 05 21:33:44 2006] [error] [client *host*] An error occurred
> while committing the transaction. [409, #165001]
> [Tue Sep 05 21:33:44 2006] [error] [client *host*] 'pre-commit' hook
> failed with error output:\n [409, #165001]
> The '\n' seems to be tripping the connector into thinking the script
> failed. Not sure where it even came from. Is this a neon problem?
> Race?
> System:
> SUSE 10.1
> Subversion 1.3.0 (also tried 1.3.2 from source)
> apache2
> Any ideas?

Are you using mod_php? I ran into a number of issues trying to get a blog with mod_php4 and Subversion working together. I had to start a completely separate instance of Apache (one with Subversion, the other with the blog) to get it to function. :-( But there error I got consistently up until that point was exactly what you're seeing. FWIW, at least one other user on this list has seen similar behavior mixing the two as well.


Actually we are using mod_php5, I will try to disable it and see what happens.
Received on Wed Sep 6 14:23:12 2006

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