murder icon indicating copy to clipboard operation
murder copied to clipboard

call failed on task murder:stop_peering

Open dspattison opened this issue 14 years ago • 1 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

dspattison avatar Sep 27 '11 22:09 dspattison

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

TonyRice avatar May 06 '12 04:05 TonyRice