Issue while running cap script
Closed this issue · 3 comments
leenasn commented
When I am running the command run_cmd %Q{cap deploy}
, it is giving me the following error:
Running cd /var/lib/hudson/deployinator_jobs/ut && cap production deploy:setup
STDERR: /usr/lib/ruby/1.8/rubygems/dependency.rb:52:in `initialize': Valid types are [:development, :runtime], not nil (ArgumentError)
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:359:in `new'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:359:in `search'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:354:in `gems_size'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:179:in `resolve'
from /usr/lib/ruby/1.8/rubygems/source_index.rb:95:in `sort_by'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:175:in `each'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:175:in `sort_by'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:175:in `resolve'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:160:in `start'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:128:in `resolve'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:127:in `catch'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/resolver.rb:127:in `resolve'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/definition.rb:151:in `resolve'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/definition.rb:90:in `specs'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/definition.rb:135:in `specs_for'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/definition.rb:124:in `requested_specs'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/environment.rb:23:in `requested_specs'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/runtime.rb:11:in `setup'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler.rb:107:in `setup'
from /var/lib/hudson/.rvm/gems/ruby-1.9.2-rc1@global/gems/bundler-1.0.15/lib/bundler/setup.rb:17
But am able to run the same command from the shell prompt. Can you please let me know what am I missing?
mrtazz commented
This seems to be a problem with cap and the Gemfile used. Can you maybe give some more information on that?
mrtazz commented
Any updates on that?
mrtazz commented
closing this, please reopen if the problem persists.