|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Warning: post-commit hook failed (exit code 255) with no output.hi all,
I meet those output when make use of post-commit hook to update live site working copy. i use apapche + mod_dav. the post-commit script can run with no error when i use env - ./post-commit command. and the user the server run on have the full permisstion on the working copy. hope someone can help me to figure out. thanks. George --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Warning: post-commit hook failed (exit code 255) with no output.On Jul 31, 2008, at 21:13, Xinhao Zheng wrote:
> I meet those output when make use of post-commit hook to update > live site working copy. > i use apapche + mod_dav. > the post-commit script can run with no error when i use env - ./ > post-commit command. > and the user the server run on have the full permisstion on the > working copy. What does your post-commit hook say? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Warning: post-commit hook failed (exit code 255) with no output.Maybe you can put some simple debugging information in your hook. Hook
scripts will display what is printed in STDERR if they fail. In Bourne shell and Bat scripts, you can redirect the echo statements to standard error by doing this: echo "This message will go to STDERR" 1>&2 Take a look at your hook script and see what assumptions you're making. For example, print out the environment the hook is running under. I've found that 90% of the time when a hook script fails, it fails because an assumption I am making about my environment proves to be false. -- David Weintraub qazwart@... On Thu, Jul 31, 2008 at 10:13 PM, Xinhao Zheng <xinhaozheng@...> wrote: > hi all, > > I meet those output when make use of post-commit hook to update live site > working copy. > i use apapche + mod_dav. > the post-commit script can run with no error when i use env - ./post-commit > command. > and the user the server run on have the full permisstion on the working > copy. > hope someone can help me to figure out. > thanks. > George > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Warning: post-commit hook failed (exit code 255) with no output.hi Ryan,
i am under linux debian, this is my post-commit content: REPOS="$1" REV="$2" /home/svn/wzo/hooks/svn-update.sh this is content for svn-update.sh svn update /home/www/html/wzoprj/project/mylib --username 'george' --password 'xxxx' is there any error in the script,it can run from command line,and if i put one line in the front of the script to test if the script run,it seems to yes.(date>/var/tmp/a.txt) George Ryan Schmidt wrote: > On Jul 31, 2008, at 21:13, Xinhao Zheng wrote: > >> I meet those output when make use of post-commit hook to update live >> site working copy. >> i use apapche + mod_dav. >> the post-commit script can run with no error when i use env - >> ./post-commit command. >> and the user the server run on have the full permisstion on the >> working copy. > > What does your post-commit hook say? > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Warning: post-commit hook failed (exit code 255) with no output.On Jul 31, 2008, at 22:29, Xinhao Zheng wrote:
> Ryan Schmidt wrote: > >> On Jul 31, 2008, at 21:13, Xinhao Zheng wrote: >> >>> I meet those output when make use of post-commit hook to update >>> live site working copy. >>> i use apapche + mod_dav. >>> the post-commit script can run with no error when i use env - ./ >>> post-commit command. >>> and the user the server run on have the full permisstion on the >>> working copy. >> >> What does your post-commit hook say? > > i am under linux debian, this is my post-commit content: > > REPOS="$1" > REV="$2" > /home/svn/wzo/hooks/svn-update.sh > > this is content for svn-update.sh > svn update /home/www/html/wzoprj/project/mylib --username 'george' > --password 'xxxx' > > is there any error in the script,it can run from command line,and > if i put one line in the front of the script to test if the script > run,it seems to yes.(date>/var/tmp/a.txt) There is no PATH set when Subversion runs the hook script, so you must set it yourself or use absolute paths to every executable. For example, in svn-update.sh, instead of "svn", use "/usr/bin/svn", or wherever svn actually is on your system. Your post-commit must also begin with a line like "#!/bin/sh" and have its executable bit set. You should probably add the --non-interactive flag when you call svn so that svn doesn't attempt to do anything interactive. You should probably log the error output of the svn command somewhere by appending "2>/path/to/log". You might also want to check the exit status of the svn command and do something if an error occurs (like send an email to an administrator). --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Warning: post-commit hook failed (exit code 255) with no output.On Fri, Aug 1, 2008 at 04:13, Xinhao Zheng <xinhaozheng@...> wrote:
> I meet those output when make use of post-commit hook to update live site > working copy. > i use apapche + mod_dav. > the post-commit script can run with no error when i use env - ./post-commit > command. > and the user the server run on have the full permisstion on the working > copy. > hope someone can help me to figure out. > thanks. try "chmod +x post-commit" Regards. -- Seb --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Warning: post-commit hook failed (exit code 255) with no output.Hi everyone involved in this thread..
I have been facing similar problems with the post-commit hook I am using subversion with apache and I am trying to update a working copy on the server itself (where subversion is installed..its a Red Hat Linux 4 machine) as and when a tortoise client makes a commit to the repository. I have tried all tricks mentioned in this conversation in order to get the post-commit hook running.. I mean it runs (i checked that using a simple echo "something" >> "somefile" command) However when the execution comes to the /usr/bin/svn update --username name --password ****** --non-interactive "path/to/working/copy" 2>> path/to/log/file command, it just doesnt get executed. I have given 777 permissions to the working copy directory. However I think that permissions is still whats causing the issue Even the log file is empty. The update command just doesnt do anything command Can anything please help me with this. Also please lemme know if you need any more data Thanks, Viren
|
| Free embeddable forum powered by Nabble | Forum Help |