Actions
Bug #14734
closedInit script runs standalone Rails server under system default Ruby
Difficulty:
Triaged:
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.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 155
Updated by The Foreman Bot over 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
Updated by The Foreman Bot over 8 years ago
- Pull request https://github.com/theforeman/foreman-packaging/pull/1119 added
Updated by Dominic Cleal over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 5877dc3a683c6c97f63cbc687fb8fe90af3ec6ee.
Updated by The Foreman Bot over 7 years ago
- Pull request https://github.com/theforeman/foreman-packaging/pull/1658 added
Actions