Actions
Bug #12546
closed"Gem loading error: cannot load such file -- smart_proxy" on startup under bundler_ext
Description
Since #12146, the smart proxy Debian and RPM packages are failing to start up under bundler_ext. Under plain Bundler it seems fine.
Note that the gemspec is missing from our packages at the moment, you need to put it into /usr/share/foreman-proxy to see this.
# sudo -u foreman-proxy /usr/share/foreman-proxy/bin/smart-proxy Attempting to require smart_proxy /usr/lib/ruby/vendor_ruby/bundler_ext/output.rb:12:in `strict_err': Gem loading error: cannot load such file -- smart_proxy (RuntimeError) from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:50:in `rescue in block in system_require' from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:39:in `block in system_require' from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:37:in `each' from /usr/lib/ruby/vendor_ruby/bundler_ext/runtime.rb:37:in `system_require' from /usr/lib/ruby/vendor_ruby/bundler_ext.rb:21:in `block in system_require' from /usr/lib/ruby/vendor_ruby/bundler_ext.rb:16:in `each' from /usr/lib/ruby/vendor_ruby/bundler_ext.rb:16:in `system_require' from /usr/share/foreman-proxy/lib/bundler_helper.rb:22:in `require_groups' from /usr/share/foreman-proxy/lib/smart_proxy_main.rb:31:in `<top (required)>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/share/foreman-proxy/bin/smart-proxy:5:in `<main>'
The smart proxy attempts to require the "default" bundler group. This requires "smart_proxy", but it fails as the file doesn't exist. I'm not sure what's different about a plain Bundler setup - possibly it silently ignores LoadErrors for smart_proxy?
Updated by Dominic Cleal almost 9 years ago
- Related to Bug #12146: core gem dependencies are defined in both Gemfile and gemspec files. added
Updated by The Foreman Bot almost 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Anonymous
- Pull request https://github.com/theforeman/smart-proxy/pull/342 added
Updated by Dominic Cleal almost 9 years ago
- Translation missing: en.field_release set to 71
Updated by Anonymous almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 59809c6cbbaa8d7e26195f7b2f90437dbd0d4de4.
Actions