Project

General

Profile

Actions

Bug #14734

closed

Init script runs standalone Rails server under system default Ruby

Added by Dominic Cleal almost 8 years ago. Updated almost 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 #1

Updated by Dominic Cleal almost 8 years ago

  • translation missing: en.field_release set to 155
Actions #2

Updated by The Foreman Bot almost 8 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
Actions #3

Updated by The Foreman Bot almost 8 years ago

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

Updated by Dominic Cleal almost 8 years ago

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

Updated by The Foreman Bot almost 7 years ago

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

Also available in: Atom PDF