Project

General

Profile

Actions

Bug #25716

closed

Foreman-proxy is missing ruby-logging dependency

Added by Romke van Dijk almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Debian/Ubuntu
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

Hi all,

Not sure if this is the correct place to post this, but I have been trying to upgrade some foreman nodes of mine to Foreman 1.20 including the require foreman modules. I run foreman without the foreman installer, but run the foreman modules directly myself on the nodes using Puppet. If I have to post this issue on the foreman puppet module page or something, please let met know.

The (simplified) code that I run on my node is as followed:


class {'foreman':
  repo => '1.20'
}

class {'foreman_proxy':
}

class {'puppet':
  server => true,
}

I installed the required modules using puppet-librarian based on the Puppetfile supplied by the Foreman installer (https://github.com/theforeman/foreman-installer/blob/1.20-stable/Puppetfile).

In the end foreman-proxy fails to start. This is because some dependency is missing for some reason. The error that service is generating is:

Dec 17 19:16:11 master smart-proxy[7075]: /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- logging (LoadError)
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/share/foreman-proxy/lib/proxy/log.rb:1:in `<top (required)>'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/share/foreman-proxy/lib/launcher.rb:1:in `<top (required)>'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/share/foreman-proxy/lib/smart_proxy_main.rb:4:in `<top (required)>'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Dec 17 19:16:11 master smart-proxy[7075]:         from /usr/share/foreman-proxy/bin/smart-proxy:5:in `<main>'

As the error suggested, ruby-logging is missing. After install ruby-logging foreman-proxy start as is expected.

Conclusion, there ruby-logging dependancy should be added to the foreman-proxy package.

Platform:
Linux master 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
Debian 9.6

Thank in advance

Actions #1

Updated by Tomer Brisker almost 6 years ago

  • Project changed from Foreman to Installer
  • Category set to Foreman modules
Actions #2

Updated by Stephan Eicher almost 6 years ago

discovered the same problem.

quick fix:

  package {
    'ruby-logging':
      ensure => 'present',
      before => Package['foreman-proxy']
  }

would be good if the package would be required by the foreman-proxy package :)

Actions #3

Updated by Romke van Dijk almost 6 years ago

That did not resolve it for me, the ruby-logging package needs to be installed before ANY foreman package is installed. This is because for example foreman-postgresql has foreman-proxy as a requirement.

So, this was my work around:

package {'ruby-logging':
  ensure => present,
  before => [Package['foreman-postgresql'], Package['foreman-proxy']],
}
Actions #4

Updated by Ewoud Kohl van Wijngaarden almost 6 years ago

  • Project changed from Installer to Packaging
  • Category changed from Foreman modules to Debian/Ubuntu
  • Status changed from New to Resolved
  • Assignee set to Anonymous
  • Fixed in Releases 1.20.2, 1.21.0 added
  • Found in Releases 1.20.1 added

Per https://community.theforeman.org/t/installation-foreman-proxy-1-20-1-1/12219/2 this should be fixed by 613c9996b284a14a1230832a36332d84a3b2fc30 (nightly) and commit:4d94359e1b89e6069beb21e575fdefd0c87e941c (1.20).

Actions #5

Updated by Ewoud Kohl van Wijngaarden over 5 years ago

  • Subject changed from Dependency error when running foreman modules without Foreman-installer to Foreman-proxy is missing ruby-logging dependency
Actions

Also available in: Atom PDF