Project

General

Profile

Actions

Bug #12136

closed

foreman-proxy fails to start if ruby-rgen is missing

Added by Adam Cécile over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Puppet
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Oct 12 07:46:38 hostname foreman-proxy[12730]: Starting foreman-proxy : foreman-proxy/usr/share/foreman-proxy/lib/smart_proxy.rb:101:in `instance_eval': cannot load such file -- rgen/ecore/ecore (LoadError)

foreman-proxy fails to start because of missing **

Installing Debian's package ruby-rgen resolved the issue.

Actions #1

Updated by Dominic Cleal over 8 years ago

  • Category changed from Packaging to Puppet
  • Difficulty changed from trivial to easy

The smart proxy loads puppet/pops from the eparser scanner code when it detects Puppet 3.2+, but this depends on rgen. If ruby-rgen isn't installed (it's optional in Debian packages) then the smart proxy fails to start.

It should probably catch load errors from puppet/pops, or better, skip loading the scanner's dependency if it's not needed?

Nightly behaviour is slightly different from 1.9, due to #11599, it now logs and starts without the Puppet functionality:

E, [2015-10-12T08:06:11.677900 #20277] ERROR -- : Couldn't enable plugin puppet: cannot load such file -- rgen/ecore/ecore
Actions #2

Updated by Dominic Cleal over 8 years ago

  • Difficulty deleted (easy)
Actions #3

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/324 added
  • Pull request deleted ()
Actions #4

Updated by Anonymous over 8 years ago

On which distribution and version is that happening specifically?

Actions #5

Updated by Dominic Cleal over 8 years ago

It was Debian 8/Jessie, I think with apt's installation of recommends disabled - since puppet-common only recommends ruby-rgen.

Actions #6

Updated by The Foreman Bot over 8 years ago

  • Assignee set to Anonymous
Actions #7

Updated by Dominic Cleal over 8 years ago

  • translation missing: en.field_release set to 104
Actions #8

Updated by Anonymous over 8 years ago

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

Also available in: Atom PDF