{"action":"opened","issue":{"url":"https://api.github.com/repos/plashchynski/capistrano-crono/issues/1","labels_url":"https://api.github.com/repos/plashchynski/capistrano-crono/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/plashchynski/capistrano-crono/issues/1/comments","events_url":"https://api.github.com/repos/plashchynski/capistrano-crono/issues/1/events","html_url":"https://github.com/plashchynski/capistrano-crono/issues/1","id":88692850,"number":1,"title":"throw exception during deploy  sometime","user":{"login":"icyleaf","id":17814,"avatar_url":"https://avatars.githubusercontent.com/u/17814?v=3","gravatar_id":"","url":"https://api.github.com/users/icyleaf","html_url":"https://github.com/icyleaf","followers_url":"https://api.github.com/users/icyleaf/followers","following_url":"https://api.github.com/users/icyleaf/following{/other_user}","gists_url":"https://api.github.com/users/icyleaf/gists{/gist_id}","starred_url":"https://api.github.com/users/icyleaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icyleaf/subscriptions","organizations_url":"https://api.github.com/users/icyleaf/orgs","repos_url":"https://api.github.com/users/icyleaf/repos","events_url":"https://api.github.com/users/icyleaf/events{/privacy}","received_events_url":"https://api.github.com/users/icyleaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-16T10:55:51Z","updated_at":"2015-06-16T10:55:51Z","closed_at":null,"body":"rails: `4.2.1`\r\ncrono: `0.9.0`\r\ncapistrano-crono: `0.1.2`\r\n\r\ndeploy.rb\r\n```ruby\r\nset :crono_pid, -> { File.join(shared_path, 'tmp', 'pids', 'crono.pid') }\r\nset :crono_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }\r\nset :crono_log, -> { File.join(shared_path, 'log', 'crono.log') }\r\nset :crono_role, -> { :app }\r\n```\r\n\r\nsometime, execute `cap production deploy` will throw exception:\r\n```bash\r\nINFO [8ab8ae76] Finished in 3.194 seconds with exit status 0 (successful).\r\nDEBUG [1fdb2d31] Running /usr/bin/env [ -d /home/deployer/www/SuperACC/releases/20150616104602 ] as deployer@123.59.56.66\r\nDEBUG [1fdb2d31] Command: [ -d /home/deployer/www/SuperACC/releases/20150616104602 ]\r\nDEBUG [1fdb2d31] Finished in 0.047 seconds with exit status 0 (successful).\r\nDEBUG [f6ea6825] Running /usr/bin/env [ -f /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid ] as deployer@123.59.56.66\r\nDEBUG [f6ea6825] Command: /usr/bin/env [ -f /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid ]\r\nDEBUG [f6ea6825] Finished in 0.075 seconds with exit status 0 (successful).\r\nDEBUG [509653b7] Running /usr/bin/env kill -0 $( cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid ) as deployer@123.59.56.66\r\nDEBUG [509653b7] Command: /usr/bin/env kill -0 $( cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid )\r\nDEBUG [509653b7] Finished in 0.117 seconds with exit status 0 (successful).\r\nINFO [538ca644] Running /usr/bin/env kill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` as deployer@123.59.56.66\r\nDEBUG [538ca644] Command: kill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid`\r\nDEBUG [538ca644]        zsh:kill:1: not enough arguments\r\nDEBUG [538ca644]\r\n(Backtrace restricted to imported tasks)\r\ncap aborted!\r\nSSHKit::Runner::ExecuteError: Exception while executing as deployer@123.59.56.66: kill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` exit status: 1\r\nkill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` stdout: zsh:kill:1: not enough arguments\r\nkill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` stderr: Nothing written\r\n\r\nSSHKit::Command::Failed: kill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` exit status: 1\r\nkill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` stdout: zsh:kill:1: not enough arguments\r\nkill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` stderr: Nothing written\r\n\r\nTasks: TOP => crono:stop\r\n(See full trace by running task with --trace)\r\nThe deploy has failed with an error: Exception while executing as deployer@123.59.56.66: kill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` exit status: 1\r\nkill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` stdout: zsh:kill:1: not enough arguments\r\nkill -TERM `cat /home/deployer/www/SuperACC/shared/tmp/pids/crono.pid` stderr: Nothing written\r\n```\r\n"}}