[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: John Szakmeister <john_at_szakmeister.net>
Date: 2006-09-06 10:54:57 CEST

----- 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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 6 10:56:46 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.