-----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.
-John
Thanks John,
Removing mod_php5 seems to do the trick, however how come we didnt run into this problem before svn 1.3? why would mod_php5 be involved in the processing of an svn request over dav?
Brad
Received on Wed Sep 6 14:42:25 2006