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

Re: Commit blocked by pre-commit hook (exit code 255) with no output

From: Qazwart <qazwart_at_gmail.com>
Date: Sun, 15 Apr 2012 16:46:28 -0400

If I understand your pre-commit script, it consists of two lines and can only exit with a status of 0. Exit 255 code usually means that your script couldn't get executed.

• You're on Linux or Unix.
• Script is in the hooks directory
• The whole repository is owned apache:apache. And that's the user running the repository.
• you've tried logging in as user apache, unset PATH, and tried to run the script manually.

--
David Weintraub
David_at_Weintraub.name
Sent from my iPhone while riding in my Ferrari. (Jealous?)
On Apr 15, 2012, at 4:07 PM, Armando Perico <pericona_at_usi.ch> wrote:
> sorry about the cc, my bad.
> 
> I really don't know what else to do... I tried a lot already.
> 
> Would be nice to be able to debug it better (like a call stack or something), but the message bellow is all I managed to get.
> * svn: Commit blocked by pre-commit hook (exit code 255) with no output
> 
> On Sun, Apr 15, 2012 at 10:02 PM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> Both of these look normal.  Please keep the list in the CC.
> 
> Armando Perico wrote on Sun, Apr 15, 2012 at 22:00:41 +0200:
> > # xxd pre-commit
> > 0000000: 2321 2f62 696e 2f73 680a 6563 686f 2022  #!/bin/sh.echo "
> > 0000010: 6865 6c6c 6f22 2031 3e26 3220 0a65 7869  hello" 1>&2 .exi
> > 0000020: 7420 300a                                t 0.
> >
> >  ls -dl testrepo/hooks/
> > drwxrwxrwx. 2 apache apache 4096 Apr 15 10:56 testrepo/hooks/
> >
> > On Sun, Apr 15, 2012 at 5:30 PM, Daniel Shahaf <d.s_at_daniel.shahaf.name>wrote:
> >
> > > What's the output of
> > >
> > > xxd pre-commit
> > > ls -dl testrepo/hooks/
> > >
> > > Armando Perico wrote on Sun, Apr 15, 2012 at 13:02:35 +0200:
> > > > Hello,
> > > >
> > > > I'm having problems with hook scripts (pre-commit or post-commit)
> > > > - When I try to commit, the svn commit is not performing completely, it
> > > > is returning "Commit blocked by pre-commit hook (exit code 255) with no
> > > > output"
> > > >
> > > > It passed a long while that I am trying to fix this problem without
> > > > having no solution. I tried and read lots of things (here and in other
> > > > places) and none seems to be working.
> > > >
> > > > The only answers I can find were related to the permissions of the
> > > > pre-commit hook file, but I also tried all possible combinations and
> > > > nothing works.
> > > >
> > > > These are the important information I have:
> > > >
> > > > pre-commit file:
> > > > ----------------------
> > > > #!/bin/sh
> > > > echo "pre-commit running" 1>&2
> > > > exit 0
> > > > ----------------------
> > > >
> > > > permissions in the repository folder:
> > > > drwxrwxrwx. 7 apache apache 4096 Apr 14 18:36 testrepo
> > > > -rwxrwxrwx. 1 apache apache   61 Apr 14 19:26 testrepo/hooks/pre-commit
> > > >
> > > > when I try to commit: svn commit -m "commit log"
> > > > svn: Commit blocked by pre-commit hook (exit code 255) with no output
> > > > (a warning pops also when i rename to post-commit, just for
> > > >
> > > > apache error_log:
> > > > [error] [client 127.0.0.1] Commit blocked by pre-commit hook (exit code
> > > > 255) with no output.  [409, #165001]
> > > >
> > > > OS: Fedora 16
> > > >
> > > > I am out of options, does anybody has a proper solution to this ?
> > > > Thanks in advance
> > > >
> > > > -APN
> > > >
> > >
> >
> >
> >
> > --
> > Armando Perico
> 
> 
> 
> -- 
> Armando Perico
Received on 2012-04-15 22:47:04 CEST

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.