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 8186423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:11:32+00:00 2026-06-07T02:11:32+00:00

I am using capistrano to deploy a rails application to production. Everything appears to

  • 0

I am using capistrano to deploy a rails application to production. Everything appears to work and capistrano does not report any errors however the application fails to start with the following error message

Ruby (Rack) application could not be started 
Could not find activemodel-3.2.0 in any of the sources (Bundler::GemNotFound)

When examining the bundled gems the correct version of gems are in the shared folder but passenger does not appear to be using them. Summarised output from cap deploy is as follows

  * executing "cd /opt/geonovo/retail/releases/20120628125205 && \
    bundle install --gemfile /opt/geonovo/retail/releases/20120628125205/Gemfile \
    --path /opt/geonovo/retail/shared/bundle --deployment \
    --without development test"
    servers: ["rt-devrails01"]
    [rt-devrails01] executing command
 ** [out :: rt-devrails01] Fetching source index for http://rubygems.org/
 ** [out :: rt-devrails01] Using activesupport (3.2.0)
 ** [out :: rt-devrails01] 
 ** [out :: rt-devrails01] Using builder (3.0.0)
 ** [out :: rt-devrails01] 
 ** [out :: rt-devrails01] Installing activemodel (3.2.0)
 ...
 ...
 * [out :: rt-devrails01] 
 ** [out :: rt-devrails01] Your bundle is complete! 
 It was installed into /opt/geonovo/retail/shared/bundle
 command finished in 47529ms

running gem list on the production server does not show the activemodel 3.2.0 gem being present but the shared directory /opt/geonovo/retail/shared/bundle/ruby/1.9.1/gems/ does include an entry for activemodel-3.2.0.

The production servers /bundle/config file contains the following

--- 
BUNDLE_FROZEN: "1"
BUNDLE_PATH: /opt/geonovo/retail/shared/bundle
BUNDLE_DISABLE_SHARED_GEMS: "1"
BUNDLE_WITHOUT: development:test

Running bundle check on the production server shows the following

The following gems are missing
 * activemodel (3.2.0)
 * actionpack (3.2.0)
 * actionmailer (3.2.0)
 * activerecord (3.2.0)
 * activeresource (3.2.0)
 * railties (3.2.0)
 * rails (3.2.0)
Install missing gems with `bundle install`

I could probably install the gems using bundle install but I want the deploy to happen within capistrano if possible.

The beginning of the Gemfile includes the following lines

source 'http://rubygems.org'

gem 'rails', '>= 3.2.0'

  • 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-07T02:11:36+00:00Added an answer on June 7, 2026 at 2:11 am

    It seems that the issue was that my gem version was out of date. Bundler was working OK but the application was failing to start due to problems loading gems.

    The problem became obvious when checking /var/log/httpd/error_log which revealed many errors like the following :-

    WARNING:  #<ArgumentError: Illformed requirement 
      ["<Syck::DefaultKey:0x00000016a73648> 3.2.0"]>
    WARNING:  Invalid .gemspec format in '...bundle/ruby/1.9.1/specifications/rails-3.2.0.gemspec'
    

    This led me to the following question and the solution which is to update gem to a current version, using sudo gem update --system and then restart apache. (Restarting passenger did not seem to be enough.

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

Sidebar

Related Questions

So I am using Capistrano to deploy a rails application to my production server
I am currently deploying a Rails application using Capistrano. Cap deploy:update_code usually works just
I am using capistrano to deploy my rails application. I want to override the
I'm trying to deploy my rails application by using Passenger and Capistrano on Dreamhost.
I am trying to deploy my rails application to a server using capistrano and
I'm trying to deploy the first rails application using Capistrano. I'm getting an error
I want to deploy a website the first time using Rails 3.2.1 with capistrano
I am using Capistrano to deploy a ruby on rails project. I am attempting
I am using capistrano to deploy my Ruby on Rails project. I am on
I'm using Subversion and Capistrano to deploy my rails app. Part of the organization

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.