foreman-proxy fails to start if ruby-rgen is missing
Oct 12 07:46:38 hostname foreman-proxy: 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.
#1 Updated by Dominic Cleal about 5 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