Note that there are some explanatory texts on larger screens.

plurals
  1. PORuby on rails: Bundler not installed when deploying using capistrano
    text
    copied!<p>I'm trying to deploy to a ubuntu server using capistrano and get the following error:</p> <pre><code>Executing "cd /home/useracc/www/releases/20130420101911 &amp;&amp; bundle install --gemfile /home/useracc/www/releases/20130420101911/Gemfile --path /home/useracc/www/shared/bundle --deployment --quiet --without development test" servers: ["dev.website.com"] [dev.self-sale.com] executing command ** [out :: dev.website.com] ERROR: Gem bundler is not installed, run `gem install bundler` first. ** [out :: dev.website.com] command finished in 510ms *** [deploy:update_code] rolling back * executing "rm -rf /home/useracc/www/releases/20130420101911; true" servers: ["dev.website.com"] [dev.self-sale.com] executing command command finished in 613ms failed: "sh -c 'cd /home/selfsale/www/releases/20130420101911 &amp;&amp; bundle install --gemfile /home/useracc/www/releases/20130420101911/Gemfile --path /home/useracc/www/shared/bundle --deployment --quiet --without development test'" on dev.website.com </code></pre> <p>I've done some searching and found that some people have resolved this issue by putting require "bundler/capistrano" in their deploy.rb.</p> <p>I've tried that but it's not made any difference.</p> <p>I have also tried installing bundler on the server but get:</p> <pre><code>$ gem install bundler Fetching: bundler-1.3.5.gem (100%) ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /usr/local/rvm/gems/ruby-1.8.7-p371 directory. </code></pre> <p>I don't remember setting RVM up though, so this is a little confusing to me.</p> <p>Does any one have any suggestions? </p> <p>This is an old app btw, here is my gem list:</p> <p>% bundle exec gem list</p> <p><strong>* LOCAL GEMS *</strong></p> <p>actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource (2.3.14) activesupport (2.3.14) brightbox (2.3.9) bundler (1.3.5) capistrano (2.14.2) highline (1.6.16) hoe (3.5.2) hpricot (0.8.2) htmldoc (0.2.3) json (1.7.7) macaddr (1.6.1) mysql (2.9.1) net-scp (1.1.0) net-sftp (2.1.1) net-ssh (2.6.7) net-ssh-gateway (1.2.0) paginator (1.1.1) rack (1.1.6) rails (2.3.14) rake (10.0.4) rdoc (4.0.1) RedCloth (4.2.9) rmagick (2.13.1) systemu (2.5.2) uuid (2.0.2) will_paginate (2.3.16) wkhtmltopdf-binary (0.9.9.1)</p> <p>Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload