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

Re: Post Commit Hook Script !!

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Fri, 29 Jul 2011 03:43:40 -0500

On Jul 29, 2011, at 03:38, Himanshu Raina wrote:

> Well the interactive part has been removed. Moreover, there exists null keys between the servers so it won't prompt for password. The current issue that I'm facing is that it gives the following error on execution
>
> Warning: post-commit hook failed (exit code 255) with output:
> + /usr/bin/ssh -l root 192.168.2.60 'cd /deploy/Project/config; /usr/bin/cap deploy:php tagid=Code1'
> Host key verification failed.
>
> The deployment script has an environment variable set which takes the tagid as specified in the command line. The set is as follow
>
> From my machine I do commit, the changes are updated in the repository on svn server. The hook script gets invoked and connects to another server where deployments scripts are available and the script in turn connects to different destination servers. The entire process uses SSH and I am using null keys for the time being.

I don't know what "null key" means. But from the error you've shown, it sure sounds like the hook script is unable to connect to your other server via this ssh command. Again, ensure the requisite keys are in the correct user's .ssh directory. Earlier you showed things owned by the svn user and the apache group. If apache is running as the user svn, then ensure the required ssh keys are in the svn user's .ssh directory on the subversion server.
Received on 2011-07-29 10:44:40 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.