Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7781991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:24:00+00:00 2026-06-01T19:24:00+00:00

Rails 3.2.2 has been working fine in both my development environment, and on my

  • 0

Rails 3.2.2 has been working fine in both my development environment, and on my server.

I’m trying to upgrade to 3.2.3 by changing:

gem 'rails', '3.2.2'

to

gem 'rails', '3.2.3'

then running:

bundle update
bundle

All goes well until I try to deploy to my server. During the deploy, I get this message:

An error occured while installing railties (3.2.3), and Bundler cannot continue.
Make sure that `gem install railties -v '3.2.3'` succeeds before bundling.

I have logged into the server and ran the gem install railties -v ‘3.2.3’ command and it works without problems. But the deploy always fails in the same way.

I’ve tried to delete the cache directory as shown here, but I’m not sure I’m doing that correctly. I’m using rvm on the server and my development environment.

Can anybody help point me in a direction on this?

Here’s my deploy.rb file:

require "bundler/capistrano"

$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano"                  # Load RVM's capistrano plugin.

set :application, "teamsite"
set :repository,  "git@github.com:user/teamsite.git"
set :deploy_to, "/home/website.com/rails/application/"
set :user, "website.com"
set :scm, :git
set :use_sudo, false
default_run_options[:pty] = true
set :branch, "master"
set :scm_verbose, true
set :deploy_via, :remote_cache
ssh_options[:forward_agent] = true

task :staging do
  role :web, "staging.website.com"
  role :app, "staging.website.com"
  role :db,  "staging.website.com", :primary => true
end

namespace :deploy do
  task :start do ; end
  task :stop do ; end
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  end

  namespace :assets do
    task :precompile, :roles => :web, :except => { :no_release => true } do
      from = source.next_revision(current_revision)
      if capture("cd #{latest_release} && #{source.local.log(from)} vendor/assets/ app/assets/ | wc -l").to_i > 0
        run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
      else
        logger.info "Skipping asset pre-compilation because there were no asset changes"
      end
    end
  end
end

namespace :customs  do
  task :create_symlink, :roles => :app do
    run <<-CMD
      ln -nfs #{shared_path}/files #{release_path}/files
    CMD

    run <<-CMD
      ln -nfs #{shared_path}/drawings #{release_path}/drawings
    CMD

    run <<-CMD
      ln -nfs #{shared_path}/photos #{release_path}/photos
    CMD
  end
end

after "deploy:create_symlink","customs:create_symlink"
after "deploy", "deploy:cleanup"

Update

I was able to finally fix this by deploying to a different user. But the question still remains: How would I clear out the gem cache for the old user?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:24:02+00:00Added an answer on June 1, 2026 at 7:24 pm

    You could use

    gem pristine --all --no-extensions
    

    to reinstall all your gems from scratch. If you’re using passenger on your host, you will need to find out where that gem cache directory is really at. Look at the .bashrc for GEM_PATH value, mine on Dreamhost is:

    export GEM_PATH="$GEM_HOME:/usr/lib/ruby/gems/1.8"
    

    Or if you’re using RVM on your server, that path is likely to the current version rvm is using.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Rails and all my gem files + homebrew installs have been working fine up
A medium sized rails app that our company has been working on is getting
I've been working on getting our Rails 2.3.8 app running correctly under JRuby. Everything
Argh! Everything has been totally fine, then all of a sudden I started getting
I have a Rails application running on Rails 2.3.9. It runs fine with ruby
I've been using the gmaps4rails gem for a while in rails 3.1 and it
I have one (EC2) Ubuntu server where bluepill is working just fine to start
I've been working in the Rails console with Rails 3.2 and I'm generating an
I've been working on a web app lately, and Activerecord has started creeping me
I'm saving an image upload using Paperclip in Rails, which is working fine. has_attached_file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.