Project

General

Profile

Actions

Bug #14734

closed

Init script runs standalone Rails server under system default Ruby

Added by Dominic Cleal over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Debian/Ubuntu
Target version:

Description

The Debian package init script runs the Rails server under the system Ruby, rather than /usr/bin/foreman-ruby, which on Ubuntu 14.04 results in:

# /etc/init.d/foreman start
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:296:in `resolve': You have requested: (Bundler::GemNotFound)
  net-ssh < 3

The bundle currently has net-ssh locked at 3.1.1.
Try running `bundle update net-ssh`
        from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:168:in `start'
        from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:129:in `block in resolve'
        from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:128:in `catch'
        from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:128:in `resolve'
        from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:179:in `resolve'
        from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:114:in `specs'
        from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:159:in `specs_for'
        from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:148:in `requested_specs'
        from /usr/lib/ruby/vendor_ruby/bundler/environment.rb:18:in `requested_specs'
        from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:13:in `setup'
        from /usr/lib/ruby/vendor_ruby/bundler.rb:120:in `setup'
        from /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `<top (required)>'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

Please note that if you come across this same error after a Foreman 1.11 upgrade when using Apache/Passenger/foreman-installer, you're missing PassengerRuby /usr/bin/foreman-ruby in the Apache configs. Edit /etc/apache2/sites-available/05-foreman*.conf and add it inside both VirtualHosts.

Actions

Also available in: Atom PDF