{"action":"created","issue":{"url":"https://api.github.com/repos/capistrano/passenger/issues/20","labels_url":"https://api.github.com/repos/capistrano/passenger/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/capistrano/passenger/issues/20/comments","events_url":"https://api.github.com/repos/capistrano/passenger/issues/20/events","html_url":"https://github.com/capistrano/passenger/issues/20","id":78016797,"number":20,"title":"undefined method `[]' for nil:NilClass","user":{"login":"Sevyls","id":547842,"avatar_url":"https://avatars.githubusercontent.com/u/547842?v=3","gravatar_id":"","url":"https://api.github.com/users/Sevyls","html_url":"https://github.com/Sevyls","followers_url":"https://api.github.com/users/Sevyls/followers","following_url":"https://api.github.com/users/Sevyls/following{/other_user}","gists_url":"https://api.github.com/users/Sevyls/gists{/gist_id}","starred_url":"https://api.github.com/users/Sevyls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sevyls/subscriptions","organizations_url":"https://api.github.com/users/Sevyls/orgs","repos_url":"https://api.github.com/users/Sevyls/repos","events_url":"https://api.github.com/users/Sevyls/events{/privacy}","received_events_url":"https://api.github.com/users/Sevyls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-19T09:45:14Z","updated_at":"2015-05-31T18:04:08Z","closed_at":null,"body":"I was running a dry-run with the following configuration and got an unexpected exception while running deploy:\r\n\r\n`` /home/michael/.rvm/gems/ruby-1.9.3-p551/bin/cap development deploy --dry-run --trace``\r\n\r\n## Capfile\r\n\r\n````\r\nrequire 'capistrano/setup'\r\nrequire 'capistrano/deploy'\r\n\r\nrequire 'capistrano/rvm'\r\nrequire 'capistrano/bundler'\r\nrequire 'capistrano/rails/assets'\r\nrequire 'capistrano/rails/migrations'\r\nrequire 'capistrano/passenger'\r\n\r\n```` \r\n\r\n## config/deploy.rb\r\n\r\n````\r\nlock '3.4.0'\r\n\r\nset :application, 'project'\r\n\r\nset :repo_url, 'git@git.example.org:organization/project.git'\r\n\r\nset :deploy_to, '/var/www/project'\r\n```` \r\n\r\n## config/deploy/development.rb\r\n\r\n````\r\nserver 'host', user: 'user', roles: %w{app db web}\r\n\r\nset :deploy_to, '/var/www/dev.project'\r\n```` \r\n\r\n## Log\r\n````\r\n  INFO [188d35fb] Running /usr/bin/env which passenger as user@host\r\n** Invoke development (first_time)\r\n DEBUG [188d35fb] Command: /usr/bin/env which passenger\r\n** Execute development\r\n  INFO [2af5a0f7] Running /usr/bin/env [ -d ~/.rvm ] as user@host\r\n** Invoke load:defaults (first_time)\r\n DEBUG [2af5a0f7] Command: [ -d ~/.rvm ]\r\n** Execute load:defaults\r\n  INFO [23fe168e] Running ~/.rvm/bin/rvm version as user@host\r\n** Invoke rvm:hook (first_time)\r\n DEBUG [23fe168e] Command: ~/.rvm/bin/rvm version\r\n** Invoke passenger:rvm:hook (first_time)\r\n\r\n** Execute passenger:rvm:hook\r\n  INFO [6044c812] Running ~/.rvm/bin/rvm current as user@host\r\n** Execute rvm:hook\r\n DEBUG [6044c812] Command: ~/.rvm/bin/rvm current\r\n** Invoke rvm:check (first_time)\r\n\r\n** Execute rvm:check\r\n  INFO [7c274162] Running ~/.rvm/bin/rvm default do ruby --version as user@host\r\n** Invoke bundler:map_bins (first_time)\r\n DEBUG [7c274162] Command: ~/.rvm/bin/rvm default do ruby --version\r\n** Execute bundler:map_bins\r\n\r\n** Invoke deploy:set_rails_env (first_time)\r\n  INFO [3ac326a7] Running /usr/bin/env mkdir -p /tmp/project/ as user@host\r\n** Execute deploy:set_rails_env\r\n DEBUG [3ac326a7] Command: /usr/bin/env mkdir -p /tmp/project/\r\n** Invoke deploy:set_rails_env \r\n** Invoke deploy (first_time)\r\n  INFO [35443c3b] Running /usr/bin/env #<StringIO:0x000000017cd2f0> /tmp/project/git-ssh.sh as user@host\r\n** Execute deploy\r\n DEBUG [35443c3b] Command: /usr/bin/env #<StringIO:0x000000017cd2f0> /tmp/project/git-ssh.sh\r\n** Invoke deploy:starting (first_time)\r\n** Execute deploy:starting\r\n** Invoke deploy:check (first_time)\r\n** Execute deploy:check\r\n** Invoke git:check (first_time)\r\n** Invoke git:wrapper (first_time)\r\n** Execute git:wrapper\r\n  INFO [cddac1d3] Running /usr/bin/env chmod +x /tmp/project/git-ssh.sh as user@host\r\n DEBUG [cddac1d3] Command: /usr/bin/env chmod +x /tmp/project/git-ssh.sh\r\n** Execute git:check\r\n  INFO [bd35090c] Running /usr/bin/env git ls-remote --heads git@git.example.org:organization/project.git as user@host\r\n DEBUG [bd35090c] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/project/git-ssh.sh /usr/bin/env git ls-remote --heads git@git.example.org:organization/project.git )\r\n  INFO [1c674eb0] Running /usr/bin/env mkdir -p /var/www/dev.project/shared /var/www/dev.project/releases as user@host\r\n DEBUG [1c674eb0] Command: /usr/bin/env mkdir -p /var/www/dev.project/shared /var/www/dev.project/releases\r\n  INFO [60e6e662] Running /usr/bin/env mkdir -p /var/www/dev.project/shared/public/assets as user@host\r\n DEBUG [60e6e662] Command: /usr/bin/env mkdir -p /var/www/dev.project/shared/public/assets\r\n  INFO [9be3788b] Running /usr/bin/env [ -f /var/www/dev.project/current/REVISION ] as user@host\r\n DEBUG [9be3788b] Command: [ -f /var/www/dev.project/current/REVISION ]\r\n  INFO [ba40c474] Running /usr/bin/env cat /var/www/dev.project/current/REVISION 2>/dev/null as user@host\r\n DEBUG [ba40c474] Command: /usr/bin/env cat /var/www/dev.project/current/REVISION 2>/dev/null\r\n  INFO [57a186f0] Running /usr/bin/env [ -f /var/www/dev.project/repo/HEAD ] as user@host\r\n DEBUG [57a186f0] Command: [ -f /var/www/dev.project/repo/HEAD ]\r\n  INFO The repository mirror is at /var/www/dev.project/repo\r\n DEBUG [2c073709] Running /usr/bin/env if test ! -d /var/www/dev.project/repo; then echo \"Directory does not exist '/var/www/dev.project/repo'\" 1>&2; false; fi as user@host\r\n DEBUG [2c073709] Command: if test ! -d /var/www/dev.project/repo; then echo \"Directory does not exist '/var/www/dev.project/repo'\" 1>&2; false; fi\r\n  INFO [1e05b25a] Running /usr/bin/env git remote update as user@host\r\n DEBUG [1e05b25a] Command: cd /var/www/dev.project/repo && ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/project/git-ssh.sh /usr/bin/env git remote update )\r\n DEBUG [a36ced43] Running /usr/bin/env if test ! -d /var/www/dev.project/repo; then echo \"Directory does not exist '/var/www/dev.project/repo'\" 1>&2; false; fi as user@host\r\n DEBUG [a36ced43] Command: if test ! -d /var/www/dev.project/repo; then echo \"Directory does not exist '/var/www/dev.project/repo'\" 1>&2; false; fi\r\n  INFO [b2b5fe61] Running /usr/bin/env mkdir -p /var/www/dev.project/releases/20150519092353 as user@host\r\n DEBUG [b2b5fe61] Command: cd /var/www/dev.project/repo && ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/project/git-ssh.sh /usr/bin/env mkdir -p /var/www/dev.project/releases/20150519092353 )\r\n  INFO [8439eb54] Running /usr/bin/env git archive master | tar -x -f - -C /var/www/dev.project/releases/20150519092353 as user@host\r\n DEBUG [8439eb54] Command: cd /var/www/dev.project/repo && ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/project/git-ssh.sh /usr/bin/env git archive master | tar -x -f - -C /var/www/dev.project/releases/20150519092353 )\r\n** Invoke deploy:check:directories (first_time)\r\n** Execute deploy:check:directories\r\n** Invoke deploy:check:linked_dirs (first_time)\r\n** Execute deploy:check:linked_dirs\r\n** Invoke deploy:check:make_linked_dirs (first_time)\r\n** Execute deploy:check:make_linked_dirs\r\n** Invoke deploy:check:linked_files (first_time)\r\n** Execute deploy:check:linked_files\r\n** Invoke deploy:set_previous_revision (first_time)\r\n** Execute deploy:set_previous_revision\r\n** Invoke deploy:started (first_time)\r\n** Execute deploy:started\r\n** Invoke deploy:updating (first_time)\r\n** Invoke deploy:new_release_path (first_time)\r\n** Execute deploy:new_release_path\r\n** Execute deploy:updating\r\n** Invoke git:create_release (first_time)\r\n** Invoke git:update (first_time)\r\n** Invoke git:clone (first_time)\r\n** Invoke git:wrapper \r\n** Execute git:clone\r\n** Execute git:update\r\n** Execute git:create_release\r\n** Invoke deploy:set_current_revision (first_time)\r\n** Execute deploy:set_current_revision\r\n** Invoke git:set_current_revision (first_time)\r\n** Execute git:set_current_revision\r\n DEBUG [604f2f3e] Running /usr/bin/env if test ! -d /var/www/dev.project/repo; then echo \"Directory does not exist '/var/www/dev.project/repo'\" 1>&2; false; fi as user@host\r\n DEBUG [604f2f3e] Command: if test ! -d /var/www/dev.project/repo; then echo \"Directory does not exist '/var/www/dev.project/repo'\" 1>&2; false; fi\r\n  INFO [f2b9cb5b] Running /usr/bin/env git rev-list --max-count=1 --abbrev-commit master as user@host\r\n DEBUG [f2b9cb5b] Command: cd /var/www/dev.project/repo && ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/project/git-ssh.sh /usr/bin/env git rev-list --max-count=1 --abbrev-commit master )\r\n DEBUG [4ccfba9d] Running /usr/bin/env if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi as user@host\r\n DEBUG [4ccfba9d] Command: if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi\r\n  INFO [2759a50e] Running /usr/bin/env echo \"\" >> REVISION as user@host\r\n DEBUG [2759a50e] Command: cd /var/www/dev.project/releases/20150519092353 && /usr/bin/env echo \"\" >> REVISION\r\n** Invoke deploy:symlink:shared (first_time)\r\n** Execute deploy:symlink:shared\r\n** Invoke deploy:symlink:linked_files (first_time)\r\n** Execute deploy:symlink:linked_files\r\n** Invoke deploy:symlink:linked_dirs (first_time)\r\n** Execute deploy:symlink:linked_dirs\r\n  INFO [f1a9d27e] Running /usr/bin/env mkdir -p /var/www/dev.project/releases/20150519092353/public as user@host\r\n DEBUG [f1a9d27e] Command: /usr/bin/env mkdir -p /var/www/dev.project/releases/20150519092353/public\r\n  INFO [401eabce] Running /usr/bin/env [ -L /var/www/dev.project/releases/20150519092353/public/assets ] as user@host\r\n DEBUG [401eabce] Command: [ -L /var/www/dev.project/releases/20150519092353/public/assets ]\r\n DEBUG [6fa0d28d] Running /usr/bin/env if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi as user@host\r\n DEBUG [6fa0d28d] Command: if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi\r\n  INFO [c2fb92dc] Running ~/.rvm/bin/rvm default do bundle install --path /var/www/dev.project/shared/bundle --without development test --deployment --quiet as user@host\r\n DEBUG [c2fb92dc] Command: cd /var/www/dev.project/releases/20150519092353 && ~/.rvm/bin/rvm default do bundle install --path /var/www/dev.project/shared/bundle --without development test --deployment --quiet\r\n** Invoke deploy:updated (first_time)\r\n** Invoke bundler:install (first_time)\r\n** Execute bundler:install\r\n** Execute deploy:updated\r\n** Invoke deploy:compile_assets (first_time)\r\n** Invoke deploy:set_rails_env \r\n** Execute deploy:compile_assets\r\n** Invoke deploy:assets:precompile (first_time)\r\n** Execute deploy:assets:precompile\r\n DEBUG [2ae3124e] Running /usr/bin/env if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi as user@host\r\n DEBUG [2ae3124e] Command: if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi\r\n  INFO [8996e9a0] Running ~/.rvm/bin/rvm default do bundle exec rake assets:precompile as user@host\r\n DEBUG [8996e9a0] Command: cd /var/www/dev.project/releases/20150519092353 && ( RAILS_ENV=development ~/.rvm/bin/rvm default do bundle exec rake assets:precompile )\r\n DEBUG [b0e3cb89] Running /usr/bin/env if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi as user@host\r\n DEBUG [b0e3cb89] Command: if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi\r\n  INFO [6172eb12] Running /usr/bin/env mkdir -p /var/www/dev.project/releases/20150519092353/assets_manifest_backup as user@host\r\n DEBUG [6172eb12] Command: cd /var/www/dev.project/releases/20150519092353 && /usr/bin/env mkdir -p /var/www/dev.project/releases/20150519092353/assets_manifest_backup\r\n  INFO [1ff87779] Running /usr/bin/env ls /var/www/dev.project/releases/20150519092353/public/assets/.sprockets-manifest* as user@host\r\n DEBUG [1ff87779] Command: cd /var/www/dev.project/releases/20150519092353 && /usr/bin/env ls /var/www/dev.project/releases/20150519092353/public/assets/.sprockets-manifest*\r\n** Invoke deploy:assets:backup_manifest (first_time)\r\n** Execute deploy:assets:backup_manifest\r\n  INFO [fbdf5edb] Running /usr/bin/env ls /var/www/dev.project/releases/20150519092353/public/assets/.sprockets-manifest* as user@host\r\n DEBUG [fbdf5edb] Command: cd /var/www/dev.project/releases/20150519092353 && /usr/bin/env ls /var/www/dev.project/releases/20150519092353/public/assets/.sprockets-manifest*\r\n  INFO [30d49a60] Running /usr/bin/env cp  /var/www/dev.project/releases/20150519092353/assets_manifest_backup as user@host\r\n DEBUG [30d49a60] Command: cd /var/www/dev.project/releases/20150519092353 && /usr/bin/env cp  /var/www/dev.project/releases/20150519092353/assets_manifest_backup\r\n  INFO [deploy:migrate] Run `rake db:migrate`\r\n DEBUG [24d35478] Running /usr/bin/env if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi as user@host\r\n DEBUG [24d35478] Command: if test ! -d /var/www/dev.project/releases/20150519092353; then echo \"Directory does not exist '/var/www/dev.project/releases/20150519092353'\" 1>&2; false; fi\r\n  INFO [f4ad4959] Running ~/.rvm/bin/rvm default do bundle exec rake db:migrate as user@host\r\n DEBUG [f4ad4959] Command: cd /var/www/dev.project/releases/20150519092353 && ( RAILS_ENV=development ~/.rvm/bin/rvm default do bundle exec rake db:migrate )\r\n** Invoke deploy:normalize_assets (first_time)\r\n** Invoke deploy:set_rails_env \r\n** Execute deploy:normalize_assets\r\n** Invoke deploy:migrate (first_time)\r\n** Invoke deploy:set_rails_env \r\n** Execute deploy:migrate\r\n** Invoke deploy:publishing (first_time)\r\n** Execute deploy:publishing\r\n** Invoke deploy:symlink:release (first_time)\r\n** Execute deploy:symlink:release\r\n  INFO [2c25ed5e] Running /usr/bin/env ln -s /var/www/dev.project/releases/20150519092353 /var/www/dev.project/releases/current as user@host\r\n DEBUG [2c25ed5e] Command: /usr/bin/env ln -s /var/www/dev.project/releases/20150519092353 /var/www/dev.project/releases/current\r\n  INFO [4079994c] Running /usr/bin/env mv /var/www/dev.project/releases/current /var/www/dev.project as user@host\r\n DEBUG [4079994c] Command: /usr/bin/env mv /var/www/dev.project/releases/current /var/www/dev.project\r\n  INFO [ef7d289d] Running /usr/bin/env passenger -v as user@host\r\n DEBUG [ef7d289d] Command: /usr/bin/env passenger -v\r\n** Invoke deploy:restart (first_time)\r\n** Execute deploy:restart\r\n** Invoke passenger:restart (first_time)\r\n** Execute passenger:restart\r\n\r\ncap aborted!\r\nSSHKit::Runner::ExecuteError: Exception while executing as user@host: undefined method `[]' for nil:NilClass\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/runners/sequential.rb:24:in `rescue in run_backend'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/runners/sequential.rb:21:in `run_backend'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/runners/sequential.rb:16:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/coordinator.rb:15:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:55:in `on'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-passenger-0.0.5/lib/capistrano/tasks/passenger.cap:4:in `block (2 levels) in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/home/michael/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:16:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-passenger-0.0.5/lib/capistrano/tasks/deploy_passenger.cap:6:in `block (2 levels) in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/home/michael/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/dsl/task_enhancements.rb:14:in `block in after'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/home/michael/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:16:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/tasks/framework.rake:65:in `block (2 levels) in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/tasks/framework.rake:61:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/tasks/framework.rake:61:in `block in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/home/michael/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/application.rb:15:in `run'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/bin/cap:3:in `<top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/bin/cap:23:in `load'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/bin/cap:23:in `<top (required)>'\r\n-e:1:in `load'\r\n-e:1:in `<main>'\r\nNoMethodError: undefined method `[]' for nil:NilClass\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-passenger-0.0.5/lib/capistrano/tasks/passenger.cap:6:in `block (4 levels) in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/backends/abstract.rb:85:in `with'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-passenger-0.0.5/lib/capistrano/tasks/passenger.cap:5:in `block (3 levels) in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/backends/printer.rb:9:in `instance_exec'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/backends/printer.rb:9:in `run'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/runners/sequential.rb:21:in `run_backend'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/runners/sequential.rb:16:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/sshkit-1.7.1/lib/sshkit/coordinator.rb:15:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:55:in `on'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-passenger-0.0.5/lib/capistrano/tasks/passenger.cap:4:in `block (2 levels) in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/home/michael/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:16:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-passenger-0.0.5/lib/capistrano/tasks/deploy_passenger.cap:6:in `block (2 levels) in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/home/michael/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/dsl/task_enhancements.rb:14:in `block in after'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/home/michael/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:16:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/tasks/framework.rake:65:in `block (2 levels) in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/tasks/framework.rake:61:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/tasks/framework.rake:61:in `block in <top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/home/michael/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/lib/capistrano/application.rb:15:in `run'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/gems/capistrano-3.4.0/bin/cap:3:in `<top (required)>'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/bin/cap:23:in `load'\r\n/home/michael/.rvm/gems/ruby-1.9.3-p551/bin/cap:23:in `<top (required)>'\r\n-e:1:in `load'\r\n-e:1:in `<main>'\r\nTasks: TOP => passenger:restart\r\nThe deploy has failed with an error: Exception while executing as user@host: undefined method `[]' for nil:NilClass\r\n** Invoke deploy:failed (first_time)\r\n** Execute deploy:failed\r\n````\r\n\r\n\r\n## Environment on the host machine\r\n\r\nApache 2.4 + passenger 4.0.56\r\n\r\n````\r\nuser@host:~> which passenger\r\n/usr/local/rvm/gems/ruby-1.9.3-p551/bin/passenger\r\nuser@host:~> which ruby\r\n/usr/local/rvm/rubies/ruby-1.9.3-p551/bin/ruby\r\nuser@host:~>passenger -v\r\nPhusion Passenger version 4.0.56\r\n\r\n\"Phusion Passenger\" is a trademark of Hongli Lai & Ninh Bui.\r\n````\r\n\r\n## Gemfile.lock\r\n\r\n````\r\nGEM\r\n  remote: https://rubygems.org/\r\n  specs:\r\n    actionmailer (3.2.21)\r\n      actionpack (= 3.2.21)\r\n      mail (~> 2.5.4)\r\n    actionpack (3.2.21)\r\n      activemodel (= 3.2.21)\r\n      activesupport (= 3.2.21)\r\n      builder (~> 3.0.0)\r\n      erubis (~> 2.7.0)\r\n      journey (~> 1.0.4)\r\n      rack (~> 1.4.5)\r\n      rack-cache (~> 1.2)\r\n      rack-test (~> 0.6.1)\r\n      sprockets (~> 2.2.1)\r\n    activemodel (3.2.21)\r\n      activesupport (= 3.2.21)\r\n      builder (~> 3.0.0)\r\n    activerecord (3.2.21)\r\n      activemodel (= 3.2.21)\r\n      activesupport (= 3.2.21)\r\n      arel (~> 3.0.2)\r\n      tzinfo (~> 0.3.29)\r\n    activeresource (3.2.21)\r\n      activemodel (= 3.2.21)\r\n      activesupport (= 3.2.21)\r\n    activesupport (3.2.21)\r\n      i18n (~> 0.6, >= 0.6.4)\r\n      multi_json (~> 1.0)\r\n    airbrake (4.1.0)\r\n      builder\r\n      multi_json\r\n    annotate (2.6.5)\r\n      activerecord (>= 2.3.0)\r\n      rake (>= 0.8.7)\r\n    ansi (1.4.3)\r\n    arel (3.0.3)\r\n    awesome_print (1.2.0)\r\n    builder (3.0.4)\r\n    capistrano (3.4.0)\r\n      i18n\r\n      rake (>= 10.0.0)\r\n      sshkit (~> 1.3)\r\n    capistrano-bundler (1.1.4)\r\n      capistrano (~> 3.1)\r\n      sshkit (~> 1.2)\r\n    capistrano-passenger (0.0.5)\r\n      capistrano (~> 3.0)\r\n    capistrano-rails (1.1.3)\r\n      capistrano (~> 3.1)\r\n      capistrano-bundler (~> 1.1)\r\n    capistrano-rvm (0.1.2)\r\n      capistrano (~> 3.0)\r\n      sshkit (~> 1.2)\r\n    coffee-rails (3.2.2)\r\n      coffee-script (>= 2.2.0)\r\n      railties (~> 3.2.0)\r\n    coffee-script (2.3.0)\r\n      coffee-script-source\r\n      execjs\r\n    coffee-script-source (1.8.0)\r\n    colorize (0.7.7)\r\n    daemons (1.1.9)\r\n    dbd-pg (0.3.9)\r\n      dbi (>= 0.4.0)\r\n      pg\r\n    dbi (0.4.5)\r\n      deprecated (= 2.0.1)\r\n    delayed_job (4.0.4)\r\n      activesupport (>= 3.0, < 4.2)\r\n    delayed_job_active_record (4.0.2)\r\n      activerecord (>= 3.0, < 4.2)\r\n      delayed_job (>= 3.0, < 4.1)\r\n    deprecated (2.0.1)\r\n    erubis (2.7.0)\r\n    execjs (2.2.2)\r\n    hashie (3.3.1)\r\n    hike (1.2.3)\r\n    i18n (0.7.0)\r\n    journey (1.0.4)\r\n    jquery-rails (3.1.2)\r\n      railties (>= 3.0, < 5.0)\r\n      thor (>= 0.14, < 2.0)\r\n    jquery-ui-rails (5.0.2)\r\n      railties (>= 3.2.16)\r\n    json (1.8.2)\r\n    libv8 (3.16.14.7)\r\n    mail (2.5.4)\r\n      mime-types (~> 1.16)\r\n      treetop (~> 1.4.8)\r\n    mime-types (1.25.1)\r\n    minitest (4.7.5)\r\n    minitest-reporters (0.14.24)\r\n      ansi\r\n      builder\r\n      minitest (>= 2.12, < 5.0)\r\n      powerbar\r\n    multi_json (1.10.1)\r\n    net-scp (1.2.1)\r\n      net-ssh (>= 2.6.5)\r\n    net-ssh (2.9.2)\r\n    netrc (0.8.0)\r\n    pg (0.17.1)\r\n    polyglot (0.3.5)\r\n    powerbar (1.0.11)\r\n      ansi (~> 1.4.0)\r\n      hashie (>= 1.1.0)\r\n    psych (2.0.6)\r\n    rack (1.4.5)\r\n    rack-cache (1.2)\r\n      rack (>= 0.4)\r\n    rack-ssl (1.3.4)\r\n      rack\r\n    rack-test (0.6.3)\r\n      rack (>= 1.0)\r\n    rails (3.2.21)\r\n      actionmailer (= 3.2.21)\r\n      actionpack (= 3.2.21)\r\n      activerecord (= 3.2.21)\r\n      activeresource (= 3.2.21)\r\n      activesupport (= 3.2.21)\r\n      bundler (~> 1.0)\r\n      railties (= 3.2.21)\r\n    rails_autolink (1.1.6)\r\n      rails (> 3.1)\r\n    railties (3.2.21)\r\n      actionpack (= 3.2.21)\r\n      activesupport (= 3.2.21)\r\n      rack-ssl (~> 1.3.2)\r\n      rake (>= 0.8.7)\r\n      rdoc (~> 3.4)\r\n      thor (>= 0.14.6, < 2.0)\r\n    rake (10.4.2)\r\n    rcov (0.9.11)\r\n    rdoc (3.12.2)\r\n      json (~> 1.4)\r\n    redcarpet (3.2.0)\r\n    ref (1.0.5)\r\n    rest-client (1.7.2)\r\n      mime-types (>= 1.16, < 3.0)\r\n      netrc (~> 0.7)\r\n    sass (3.4.7)\r\n    sass-rails (3.2.6)\r\n      railties (~> 3.2.0)\r\n      sass (>= 3.1.10)\r\n      tilt (~> 1.3)\r\n    snmp (1.2.0)\r\n    sprockets (2.2.3)\r\n      hike (~> 1.2)\r\n      multi_json (~> 1.0)\r\n      rack (~> 1.0)\r\n      tilt (~> 1.1, != 1.3.0)\r\n    sqlite3 (1.3.10)\r\n    sshkit (1.7.1)\r\n      colorize (>= 0.7.0)\r\n      net-scp (>= 1.1.2)\r\n      net-ssh (>= 2.8.0)\r\n    therubyracer (0.12.1)\r\n      libv8 (~> 3.16.14.0)\r\n      ref\r\n    thor (0.19.1)\r\n    tilt (1.4.1)\r\n    treetop (1.4.15)\r\n      polyglot\r\n      polyglot (>= 0.3.1)\r\n    tzinfo (0.3.43)\r\n    uglifier (2.5.3)\r\n      execjs (>= 0.3.0)\r\n      json (>= 1.8.0)\r\n    webrick (1.3.1)\r\n\r\nPLATFORMS\r\n  ruby\r\n\r\nDEPENDENCIES\r\n  airbrake\r\n  annotate (>= 2.6.0)\r\n  awesome_print\r\n  capistrano\r\n  capistrano-bundler\r\n  capistrano-passenger\r\n  capistrano-rails\r\n  capistrano-rvm\r\n  coffee-rails (~> 3.2.1)\r\n  daemons\r\n  dbd-pg\r\n  dbi\r\n  delayed_job_active_record\r\n  execjs\r\n  jquery-rails\r\n  jquery-ui-rails\r\n  json\r\n  minitest\r\n  minitest-reporters (~> 0.14.24)\r\n  pg\r\n  psych\r\n  rails (= 3.2.21)\r\n  rails_autolink\r\n  rcov (~> 0.9.1)\r\n  redcarpet\r\n  rest-client\r\n  sass-rails (~> 3.2.3)\r\n  snmp\r\n  sqlite3\r\n  therubyracer\r\n  uglifier (~> 2.5.1)\r\n  webrick (~> 1.3.1)\r\n```` "},"comment":{"url":"https://api.github.com/repos/capistrano/passenger/issues/comments/107228822","html_url":"https://github.com/capistrano/passenger/issues/20#issuecomment-107228822","issue_url":"https://api.github.com/repos/capistrano/passenger/issues/20","id":107228822,"user":{"login":"betesh","id":2154282,"avatar_url":"https://avatars.githubusercontent.com/u/2154282?v=3","gravatar_id":"","url":"https://api.github.com/users/betesh","html_url":"https://github.com/betesh","followers_url":"https://api.github.com/users/betesh/followers","following_url":"https://api.github.com/users/betesh/following{/other_user}","gists_url":"https://api.github.com/users/betesh/gists{/gist_id}","starred_url":"https://api.github.com/users/betesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betesh/subscriptions","organizations_url":"https://api.github.com/users/betesh/orgs","repos_url":"https://api.github.com/users/betesh/repos","events_url":"https://api.github.com/users/betesh/events{/privacy}","received_events_url":"https://api.github.com/users/betesh/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T18:04:08Z","updated_at":"2015-05-31T18:04:08Z","body":"It's failing because in --dry-run, we don't actually run any commands, so we can't guess the passenger version.  There's really no reasonable way to work around this, other than to log a fatal error and exit.  I'm going to make this a more graceful process."}}