Project

General

Profile

Bug #14734

Init script runs standalone Rails server under system default Ruby

Added by Dominic Cleal almost 4 years ago. Updated over 1 year 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.

Associated revisions

Revision 5877dc3a (diff)
Added by Dominic Cleal almost 4 years ago

fixes #14734 - use foreman-ruby in all bin/* scripts (#1119)

History

#1 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 155

#2 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Dominic Cleal
  • Pull request https://github.com/theforeman/foreman-packaging/pull/1118 added

#3 Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/1119 added

#4 Updated by Dominic Cleal almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/1658 added

Also available in: Atom PDF