Note that there are some explanatory texts on larger screens.

plurals
  1. PORails deployment issues when calling delayed_job:restart
    primarykey
    data
    text
    <p>When I try to run the following task to restart delayed_jobs on my server I get the error message below. <strong>However</strong>, without this script being run the deployment is successful and the application runs as is expected, so all the gems are installed correctly and rails 2.3.8 is the version installed on the server.</p> <pre><code>namespace :delayed_job do desc "Restart the delayed_job process" task :restart, :roles =&gt; :app do run "cd #{current_path}; RAILS_ENV=production script/delayed_job restart" end end # error Missing the Rails 2.3.8 gem. Please `gem install -v=2.3.8 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. </code></pre> <p>All gems are installed using sudo (the /home/chris/.gem/... folder does not actually exist)</p> <pre><code>$ gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.6.2 - RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [i686-linux] - INSTALLATION DIRECTORY: /opt/ruby1.8/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /opt/ruby1.8/bin/ruby - EXECUTABLE DIRECTORY: /opt/ruby1.8/bin - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /opt/ruby1.8/lib/ruby/gems/1.8 - /home/chris/.gem/ruby/1.8 - GEM CONFIGURATION: - :update_sources =&gt; true - :verbose =&gt; true - :benchmark =&gt; false - :backtrace =&gt; false - :bulk_threshold =&gt; 1000 - REMOTE SOURCES: - http://rubygems.org/ </code></pre> <p>The capistrano settings are setup so to perform the deployment with the 'chris' account.</p> <p>Any ideas why it can't find the rails gem?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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