{"action":"created","issue":{"url":"https://api.github.com/repos/aporat/opsworks-php-cookbooks/issues/6","labels_url":"https://api.github.com/repos/aporat/opsworks-php-cookbooks/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/aporat/opsworks-php-cookbooks/issues/6/comments","events_url":"https://api.github.com/repos/aporat/opsworks-php-cookbooks/issues/6/events","html_url":"https://github.com/aporat/opsworks-php-cookbooks/issues/6","id":75948560,"number":6,"title":"Error executing action `run` on resource 'execute[ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy']'","user":{"login":"keithbmcd","id":7412164,"avatar_url":"https://avatars.githubusercontent.com/u/7412164?v=3","gravatar_id":"","url":"https://api.github.com/users/keithbmcd","html_url":"https://github.com/keithbmcd","followers_url":"https://api.github.com/users/keithbmcd/followers","following_url":"https://api.github.com/users/keithbmcd/following{/other_user}","gists_url":"https://api.github.com/users/keithbmcd/gists{/gist_id}","starred_url":"https://api.github.com/users/keithbmcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithbmcd/subscriptions","organizations_url":"https://api.github.com/users/keithbmcd/orgs","repos_url":"https://api.github.com/users/keithbmcd/repos","events_url":"https://api.github.com/users/keithbmcd/events{/privacy}","received_events_url":"https://api.github.com/users/keithbmcd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T11:15:21Z","updated_at":"2015-05-27T20:00:07Z","closed_at":"2015-05-27T20:00:07Z","body":"Hi,\r\n\r\n================================================================================\r\nError executing action `run` on resource 'execute[ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy']'\r\n================================================================================\r\n \r\n \r\nMixlib::ShellOut::ShellCommandFailed\r\n------------------------------------\r\nExpected process to exit with [0], but received '1'\r\n---- Begin output of ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy' ----\r\nSTDOUT: \r\nSTDERR: Enter passphrase for /root/.ssh/id_deploy:\r\n---- End output of ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy' ----\r\nRan ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy' returned 1\r\n \r\n \r\nResource Declaration:\r\n---------------------\r\n# In /var/lib/aws/opsworks/cache.stage2/cookbooks/phpapp/recipes/deploy.rb\r\n \r\n23:   execute \"ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy'\"\r\n24:   \r\n \r\n \r\n \r\nCompiled Resource:\r\n------------------\r\n# Declared in /var/lib/aws/opsworks/cache.stage2/cookbooks/phpapp/recipes/deploy.rb:23:in `block in from_file'\r\n \r\nexecute(\"ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy'\") do\r\naction \"run\"\r\nretries 0\r\nretry_delay 2\r\ncommand \"ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy'\"\r\nbackup 5\r\nreturns 0\r\ncookbook_name \"phpapp\"\r\nrecipe_name \"deploy\"\r\nend\r\n \r\n \r\n \r\n[2015-05-13T13:34:50+00:00] INFO: Running queued delayed notifications before re-raising exception\r\n[2015-05-13T13:34:50+00:00] INFO: template[/etc/httpd/mods-available/deflate.conf] sending restart action to service[apache2] (delayed)\r\n[2015-05-13T13:34:50+00:00] INFO: Processing service[apache2] action restart (apache2::default line 210)\r\n[2015-05-13T13:34:51+00:00] INFO: service[apache2] restarted\r\n[2015-05-13T13:34:51+00:00] ERROR: Running exception handlers\r\n[2015-05-13T13:34:51+00:00] ERROR: Exception handlers complete\r\n[2015-05-13T13:34:51+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage2/chef-stacktrace.out\r\n[2015-05-13T13:34:51+00:00] ERROR: execute[ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy'] (phpapp::deploy line 23) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'\r\n---- Begin output of ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy' ----\r\nSTDOUT: \r\nSTDERR: Enter passphrase for /root/.ssh/id_deploy:\r\n---- End output of ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy' ----\r\nRan ssh-agent bash -c 'ssh-add /root/.ssh/id_deploy' returned 1\r\n[2015-05-13T13:34:51+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n\r\nHow can I fix it?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/aporat/opsworks-php-cookbooks/issues/comments/106055959","html_url":"https://github.com/aporat/opsworks-php-cookbooks/issues/6#issuecomment-106055959","issue_url":"https://api.github.com/repos/aporat/opsworks-php-cookbooks/issues/6","id":106055959,"user":{"login":"aporat","id":415576,"avatar_url":"https://avatars.githubusercontent.com/u/415576?v=3","gravatar_id":"","url":"https://api.github.com/users/aporat","html_url":"https://github.com/aporat","followers_url":"https://api.github.com/users/aporat/followers","following_url":"https://api.github.com/users/aporat/following{/other_user}","gists_url":"https://api.github.com/users/aporat/gists{/gist_id}","starred_url":"https://api.github.com/users/aporat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aporat/subscriptions","organizations_url":"https://api.github.com/users/aporat/orgs","repos_url":"https://api.github.com/users/aporat/repos","events_url":"https://api.github.com/users/aporat/events{/privacy}","received_events_url":"https://api.github.com/users/aporat/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T20:00:07Z","updated_at":"2015-05-27T20:00:07Z","body":"this was caused by updates made to opsworks deployment process. I've updated the cookbooks to address the issue "}}