You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Armando Perico <pe...@gmail.com> on 2012/04/15 13:02:35 UTC

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

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


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

Posted by Les Mikesell <le...@gmail.com>.
On Sun, Apr 15, 2012 at 4:56 PM, Armando Perico <pe...@usi.ch> wrote:
> I'm under linux and double checked for windows CRLFs.
> I turned SELinux off ... the error continues

And you can log in and execute it as the apache user?   If apache
doesn't have a login shell, start as root and 'su -s /bin/bash -
apache', then type the full path to the script.  You might get a
better error message that way.

-- 
   Les Mikesell
    lesmikesell@gmail.com

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

Posted by Armando Perico <pe...@usi.ch>.
I'm under linux and double checked for windows CRLFs.
I turned SELinux off ... the error continues

On Sun, Apr 15, 2012 at 11:38 PM, Les Mikesell <le...@gmail.com>wrote:

> On Sun, Apr 15, 2012 at 3:46 PM, Armando Perico <pe...@usi.ch> wrote:
> > SELinux is off.
> > +x has been set.
> > #!/bin/sh seems ok for me.
>
> Can you execute it directly?    Having a Windows style CRLF line
> ending on the #!/bin/sh line might prevent it from working and be hard
> to see.   Otherwise, if you can execute it as the apache user, but it
> doesn't run under the httpd process, double check SELinux.
>
> --
>  Les Mikesell
>    lesmikesell@gmail.com
>



-- 
Armando Perico

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

Posted by Les Mikesell <le...@gmail.com>.
On Sun, Apr 15, 2012 at 3:46 PM, Armando Perico <pe...@usi.ch> wrote:
> SELinux is off.
> +x has been set.
> #!/bin/sh seems ok for me.

Can you execute it directly?    Having a Windows style CRLF line
ending on the #!/bin/sh line might prevent it from working and be hard
to see.   Otherwise, if you can execute it as the apache user, but it
doesn't run under the httpd process, double check SELinux.

-- 
  Les Mikesell
    lesmikesell@gmail.com

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

Posted by Armando Perico <pe...@usi.ch>.
SELinux is off.
+x has been set.
#!/bin/sh seems ok for me.

I will check the FAQ, however, from what I read around, the pre-commit
script is not even being executed, so I figured it would be uncessary to
debug it. Previously I meant to debug the SVN execution...

I will keep trying here, but please, if you have any other suggestion let
me know.

On Sun, Apr 15, 2012 at 10:21 PM, Daniel Shahaf <d....@daniel.shahaf.name>wrote:

> That error usually means the #! line is bad, or the +x bit is missing,
> something like that.  Perhaps SELinux (if enabled) can cause similar
> effects?
>
> BTW: if you haven't done so already, please read the FAQ entry on
> debugging hooks.
>
> Armando Perico wrote on Sun, Apr 15, 2012 at 22:07:31 +0200:
> > 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@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@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
>



-- 
Armando Perico

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

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
That error usually means the #! line is bad, or the +x bit is missing,
something like that.  Perhaps SELinux (if enabled) can cause similar
effects?

BTW: if you haven't done so already, please read the FAQ entry on
debugging hooks.

Armando Perico wrote on Sun, Apr 15, 2012 at 22:07:31 +0200:
> 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....@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@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

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

Posted by Qazwart <qa...@gmail.com>.
On Apr 15, 2012, at 4:54 PM, Armando Perico <pe...@usi.ch> wrote:

> I actually don't have an apache user running, however, when I run it manually, the script works fine, am I missing anything ?


Of course you do! Otherwise, how could a file be "owned" by user "apache"?  Check the /etc/passwd file. There's probably an entry for user apache. 

What this user might not have is a login shell (done by setting the shell in /etc/passwd to /bin/false) or might not have a valid password. However, if you can sudo/login to root, you can sudo/login to apache. 

Run the pre-commit hook as user apache and unset PATH. This will emulate how your pre-commit hook is being run. 

--
David Weintraub
David@Weintraub.name
Sent from my iPhone while riding in my Ferrari. (Jealous?)



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

Posted by Qazwart <qa...@gmail.com>.
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@Weintraub.name
Sent from my iPhone while riding in my Ferrari. (Jealous?)

On Apr 15, 2012, at 4:07 PM, Armando Perico <pe...@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....@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....@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

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

Posted by Armando Perico <pe...@usi.ch>.
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....@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@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

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

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
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....@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-cimmit 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

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

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
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-cimmit 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
> 

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

Posted by Qazwart <qa...@gmail.com>.
Remember that the only output is
From STDERR and only if your script returns a nonzero exit code. What language in your hook script written in? Do you have the standard pre-commit hook call your pre-commit?

What OS are you using?

Check to make sure your script is executable and owned by the correct user. 

--
David Weintraub
David@Weintraub.name
Sent from my iPhone while riding in my Ferrari. (Jealous?)

On Apr 15, 2012, at 7:02 AM, Armando Perico <pe...@gmail.com> wrote:

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