My Weird error

Hi,

I’m getting this error while deploying to a dev machine with cap:deploy

executing “cd – /home/ubuntu/deployments/
appreleases/20130723233947 && RAILS_ENV=production RAILS_GROUPS=assets
rake
assets:precompile”
servers:
["serverhttp://ec2-54-229-75-254.eu-west-1.compute.amazonaws.com
"]
[server] executing command
*** [err :: server] rake aborted!
*** [err :: server] Could not find highline-1.6.19 in any of the sources
*** [err :: server]
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in
block in materialize' *** [err :: server] /home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:inmap!’
*** [err :: server
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in
materialize' *** [err :: server] /home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:114:inspecs’
*** [err :: server]
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in
specs_for' *** [err :: server] /home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/definition.rb:148:inrequested_specs’
*** [err :: server]
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in
requested_specs' *** [err :: server] /home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:insetup’
*** [err :: server]
/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler.rb:120:in
setup' *** [err :: server] /home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in<top (required)>’
*** [err :: server]
/home/ubuntu/deployments/app/releases/20130723233947/config/boot.rb:4:in
<top (required)>' *** [err :: server] /home/ubuntu/deployments/app/releases/20130723233947/config/application.rb:1:in<top (required)>’
*** [err :: server]
/home/ubuntu/deployments/app/releases/20130723233947/Rakefile:4:in <top (required)>' *** [err :: server] /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:ineval’
*** [err :: server]
/home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in
`’
*** [err :: server] (See full trace by running task with --trace)
command finished in 1213ms
*** [deploy:update_code] rolling back

  • executing “rm -rf
    /home/ubuntu/deployments/app/releases/20130723233947;
    true”
    servers: [“server”]
    [server] executing command
    command finished in 790ms
    failed: “rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell ‘default’ -c ‘cd

    /home/ubuntu/deployments/app/releases/20130723233947 &&
    RAILS_ENV=production RAILS_GROUPS=assets rake assets:precompile’” on
    server

If I run the command
RAILS_ENV=production RAILS_GROUPS=assets rake assets:precompile

by hand, either on local machine and testing machine, it works ok,
Strange
is that I was able to make a deploy a few minutes ago…

What may be the problem?

On Tuesday, July 23, 2013 7:47:41 PM UTC-4, Joo P. wrote:

"]

/home/ubuntu/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in

*** [err :: server]
<top (required)>' /home/ubuntu/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:ineval’
command finished in 790ms

What may be the problem?

The problem is that it’s looking for the gem highline, version 1.6.19,
and
it’s not installed. This is not a gem capistrano would normally need,
so
it must be specified in the gemfile. I’ve had this issue before with
other
gems. When deploying, it seems that it’s checking the gemfile to make
sure
all gems and their dependencies are installed. I’ve never really
researched it, it’s easier to just install the gems it needs.

Yes, I found my self installing all capistrano dependencies by hand on
the
remote machine, now it’s ok. Strange I was able to make a deploy a some
minutes before…

Thnaks

On Jul 23, 2013, at 6:47 PM, Joo P. [email protected]
wrote:

*** [err :: server] Could not find highline-1.6.19 in any of the sources
*** [err :: server]
/home/ubuntu/deployments/app/releases/20130723233947/config/boot.rb:4:in `<top
(required)>’
command finished in 790ms
failed: “rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell ‘default’ -c ‘cd –
/home/ubuntu/deployments/app/releases/20130723233947 && RAILS_ENV=production
RAILS_GROUPS=assets rake assets:precompile’” on server

If I run the command
RAILS_ENV=production RAILS_GROUPS=assets rake assets:precompile

by hand, either on local machine and testing machine, it works ok, Strange is
that I was able to make a deploy a few minutes ago…

What may be the problem?

This:

Could not find highline-1.6.19 in any of the sources

Make sure you have that gem in a production section of your Gemfile.