capistrano deploy fails with noMethodError

258 views
Skip to first unread message

Jonathan Slusher

unread,
Feb 18, 2014, 3:33:33 PM2/18/14
to capis...@googlegroups.com
Versions:
  • Ruby - 2.0.0-p247
  • Capistrano - 3.1.0
  • Rake / Rails / etc - Rake Version: 10.1.1
Platform:
  • Working on.... Ubuntu 12.04
  • Deploying to... Ubuntu 12.04
Logs:

Getting the following error. I'm not sure what I'm doing wrong.

bundle exec cap local deploy
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.

cap aborted!
undefined method `to_sym' for [:web]:Array
/home/cap_user/olab-capistrano/lib/capistrano/configuration/servers/role_filter.rb:25:in `each'
/home/cap_user/olab-capistrano/lib/capistrano/configuration/servers/role_filter.rb:25:in `flat_map'
/home/cap_user/olab-capistrano/lib/capistrano/configuration/servers/role_filter.rb:25:in `required'
/home/cap_user/olab-capistrano/lib/capistrano/configuration/servers/role_filter.rb:15:in `roles'
/home/cap_user/olab-capistrano/lib/capistrano/configuration/servers/role_filter.rb:11:in `for'
/home/cap_user/olab-capistrano/lib/capistrano/configuration/servers.rb:45:in `fetch_roles'
/home/cap_user/olab-capistrano/lib/capistrano/configuration/servers.rb:18:in `roles_for'
/home/cap_user/olab-capistrano/lib/capistrano/configuration.rb:49:in `roles_for'
/home/cap_user/olab-capistrano/lib/capistrano/dsl/env.rb:43:in `roles'
/home/cap_user/olab-capistrano/lib/capistrano/dsl.rb:14:in `invoke'
/home/cap_user/olab-capistrano/lib/capistrano/dsl/task_enhancements.rb:12:in `block in after'
/home/cap_user/olab-capistrano/lib/capistrano/dsl.rb:14:in `invoke'
/home/cap_user/olab-capistrano/lib/capistrano/tasks/framework.rake:65:in `block (2 levels) in <top (required)>'
/home/cap_user/olab-capistrano/lib/capistrano/tasks/framework.rake:64:in `each'
/home/cap_user/olab-capistrano/lib/capistrano/tasks/framework.rake:64:in `block in <top (required)>'
/home/cap_user/olab-capistrano/lib/capistrano/application.rb:12:in `run'
/home/cap_user/olab-capistrano/bin/cap:3:in `<top (required)>'
Tasks: TOP => deploy:assets:precompile
(See full trace by running task with --trace)
The deploy has failed with an error: #<NoMethodError: undefined method `to_sym' for [:web]:Array>






Lee Hambley

unread,
Feb 19, 2014, 2:37:01 AM2/19/14
to capistrano

What is olab-capistrano?

Sent from my Nexus 4.

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/ef36c93c-e4ef-4364-8bc4-efa7880265ff%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Alan McCann

unread,
Aug 16, 2014, 3:59:56 PM8/16/14
to capis...@googlegroups.com
Did you ever figure this out?
Reply all
Reply to author
Forward
0 new messages