Project

General

Profile

Actions

Bug #12546

closed

"Gem loading error: cannot load such file -- smart_proxy" on startup under bundler_ext

Added by Dominic Cleal almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Core
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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?


Related issues 1 (0 open1 closed)

Related to Smart Proxy - Bug #12146: core gem dependencies are defined in both Gemfile and gemspec files.Closed10/13/2015Actions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Related to Bug #12146: core gem dependencies are defined in both Gemfile and gemspec files. added
Actions #2

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
Actions #3

Updated by Dominic Cleal almost 9 years ago

  • Translation missing: en.field_release set to 71
Actions #4

Updated by Anonymous almost 9 years ago

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

Also available in: Atom PDF