Hook problems

Subscribe to Hook problems 3 post(s), 2 voice(s)

 
Avatar Ian 2 post(s)

Hi,

Having some problems with the post-commit hook on our warehouse install. If the hook isn’t in place the commit goes ahead and we have to manually sync. If we have the hook in place we get an error back:

Updated: 1
commit -m "Testing post-commit" C:/dev/repos/README.txt Sending dev/repos/README.txt Transmitting file data ... RA layer request failed
svn: Commit failed (details follow):
svn: MERGE request failed on '/repos/trunk'
svn: MERGE of '/repos/trunk': 200 OK (http://svn.domain.co.uk)

The post-commit hooks is as follows:

!/bin/sh
PATH=/bin:/usr/bin:/usr/local/bin
cd /var/www/apps/warehouse/
/usr/local/bin/rake warehouse:post_commit RAILS_ENV=production REPO_PATH=$1 REVISION=$2

And when it runs we get a strange 404 error:

(in /var/www/apps/warehouse)
rake aborted! #<net::httpnotfound readbody="true" found 404 not> – <!DOCTYPE HTML PUBLIC ”-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<html>
<body>

File not found

Change this error message for pages not found in public/404.html


</body>
</html>

Thanks,
Ian

 
Avatar Geoff 71 post(s)

Do you have any hooks setup in warehouse to be run on the post commit? If you add -t to the rake command to trace it does that give you a better idea of whats going wrong?

 
Avatar Ian 2 post(s)

Hi,

We have a lighthouse hook setup which again doesn’t seem to be running either. I added a commit message with ticket information and nothing happened. The -t open on the rake doesn’t give me any more information at all.

Ian