Project

General

Profile

Actions

Bug #13274

closed

unable to start smart proxy with ssh plugin

Added by Ohad Levy about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Fixed in Releases:
Found in Releases:

Description

/home/ohad/.rvm/gems/ruby-2.2.3@proxy/gems/smart_proxy_remote_execution_ssh-0.0.11/lib/smart_proxy_remote_execution_ssh/plugin.rb:1:in `<top (required)>': uninitialized constant Proxy::RemoteExecution (NameError)
from /home/ohad/.rvm/gems/ruby-2.2.3@proxy/gems/smart_proxy_remote_execution_ssh-0.0.11/lib/smart_proxy_remote_execution_ssh.rb:1:in `require'
from /home/ohad/.rvm/gems/ruby-2.2.3@proxy/gems/smart_proxy_remote_execution_ssh-0.0.11/lib/smart_proxy_remote_execution_ssh.rb:1:in `<top (required)>'
from /home/ohad/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require'
from /home/ohad/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /home/ohad/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each'
from /home/ohad/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require'
from /home/ohad/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each'
from /home/ohad/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `require'
from /home/ohad/.rvm/gems/ruby-2.2.3@global/gems/bundler-1.10.6/lib/bundler.rb:134:in `require'
from /home/ohad/git/smart-proxy/lib/bundler_helper.rb:25:in `require_groups'
from /home/ohad/git/smart-proxy/lib/smart_proxy_main.rb:31:in `<top (required)>'
from /home/ohad/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/ohad/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from ./bin/smart-proxy:5:in `<main>'

Actions #1

Updated by Stephen Benjamin about 8 years ago

FWIW, I also tried on 2.2.3 and couldn't get it to give this error, proxy works fine. I know Tom McKay also reported similar issues before which prompted Daniel's change

Maybe lib/smart_proxy_remote_execution_ssh/plugin.rb should define the module like this? Although it'd be nice to get to the bottom of this loading/ordering issue.

module Proxy::RemoteExecution
  module Ssh
Actions #2

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ohad Levy
  • Pull request https://github.com/theforeman/smart_proxy_remote_execution_ssh/pull/19 added
Actions #3

Updated by Anonymous about 8 years ago

I have a similar problem on FreeBSD (Ruby 2.2.4p230). 0.0.10 works, 0.0.11 not:

/usr/local/lib/ruby/gems/2.2/gems/smart_proxy_remote_execution_ssh-0.0.11/lib/smart_proxy_remote_execution_ssh/plugin.rb:1:in `<top (required)>': uninitialized constant Proxy::RemoteExecution (NameError)
    from /usr/local/lib/ruby/site_ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/local/lib/ruby/site_ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/local/lib/ruby/gems/2.2/gems/smart_proxy_remote_execution_ssh-0.0.11/lib/smart_proxy_remote_execution_ssh.rb:1:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.2/rubygems/core_ext/kernel_require.rb:126:in `require'
    from /usr/local/lib/ruby/site_ruby/2.2/rubygems/core_ext/kernel_require.rb:126:in `rescue in require'
    from /usr/local/lib/ruby/site_ruby/2.2/rubygems/core_ext/kernel_require.rb:39:in `require'
    from /usr/local/lib/ruby/gems/2.2/gems/bundler_ext-0.4.0/lib/bundler_ext/runtime.rb:41:in `block in system_require'
    from /usr/local/lib/ruby/gems/2.2/gems/bundler_ext-0.4.0/lib/bundler_ext/runtime.rb:37:in `each'
    from /usr/local/lib/ruby/gems/2.2/gems/bundler_ext-0.4.0/lib/bundler_ext/runtime.rb:37:in `system_require'
    from /usr/local/lib/ruby/gems/2.2/gems/bundler_ext-0.4.0/lib/bundler_ext.rb:19:in `block in system_require'
    from /usr/local/lib/ruby/gems/2.2/gems/bundler_ext-0.4.0/lib/bundler_ext.rb:14:in `each'
    from /usr/local/lib/ruby/gems/2.2/gems/bundler_ext-0.4.0/lib/bundler_ext.rb:14:in `system_require'
    from /usr/local/share/foreman-proxy/lib/bundler_helper.rb:22:in `require_groups'
    from /usr/local/share/foreman-proxy/lib/smart_proxy.rb:31:in `<top (required)>'
    from /usr/local/lib/ruby/site_ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/local/lib/ruby/site_ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/local/sbin/smart-proxy:6:in `<main>'

Ohad's PR fixes it also for me.

Actions #4

Updated by Ohad Levy about 8 years ago

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

Updated by Marek Hulán about 8 years ago

  • translation missing: en.field_release set to 118
Actions #6

Updated by Marek Hulán about 8 years ago

  • Target version set to 97
Actions #7

Updated by Marek Hulán about 8 years ago

  • translation missing: en.field_release changed from 118 to 127
Actions

Also available in: Atom PDF