call failed on task murder:stop_peering
dspattison opened this issue · comments
Hello,
I get this error while trying to deploy:
call failed #<Capistrano::CommandError: failed: "sh -c 'pkill -f \"murder_client.py peer.*/tmp/20110927221958.tar.gz.tgz\"'" on server1,server2...>
*** [deploy:update_code] rolling back
I can't figure out why it is failing.
- I tried modifing the commands to append a "; true"
- using sudo
- re-writing it using ps|grep|awk|kill
I ended up ignoring the issue by using the following code:
namespace :murder do
task :stop_peering, :roles=>:peer do
logger.info 'override'
end
task :stop_seeding, :roles=>:peer do
logger.info 'override'
end
task :stop_tracker, :roles=>:peer do
logger.info 'override'
end
end
Then after each deploy, i have to go and kill murder (lol) processes.
ENV:
- The servers are running Ubuntu 8.04
- I am using a cap file similar to https://github.com/lg/murder/blob/master/doc/examples/Capfile
Thanks,
-Dave
It is an issue with the pkill command I've forked this and implemented a custom function. This might help https://github.com/IAmTonyRice/murder