"cannot load such file -- bundler_ext (LoadError)" after upgrading to 1.3.1

Hi,

I've been using Foreman since a few month and recently made an upgrade to
1.3.1.

After fixing many errors, I think related to the ruby version (1.8.7 +
1.9.3), I finally removed all 1.9.3 and previously installed forman
packages and start the installer from scratch but now I have the following
error when I try to access to foreman web interface:

cannot load such file – bundler_ext (LoadError)
/usr/share/foreman/config/application.rb:10:in require&#39; /usr/share/foreman/config/application.rb:10:in<top (required)>'
/usr/share/foreman/config/environment.rb:2:in require&#39; /usr/share/foreman/config/environment.rb:2:in<top (required)>'
config.ru:3:in require&#39; config.ru:3:inblock in <main>'
/opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:in instance_eval&#39; /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:ininitialize'
config.ru:1:in new&#39; config.ru:1:in<main>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in eval&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:inpreload_app'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in &lt;module:App&gt;&#39; /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in<module:PhusionPassenger>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in `<main>'

The foreman-installer went well but I still don't understand why the app is using ruby193 but passenger from version 1.8 (maybe it's not an issue?).

I googled the error without finding any solution, tried to re-read the foreman installation guide without any success.

My system is a Centos 6.4 with a working installation of puppetmaster (running under passenger).

Installed passenger packages are:

rubygem-passenger-native-libs-4.0.5-5.el6.x86_64
ruby193-rubygem-passenger-native-libs-4.0.5-5.el6.x86_64
rubygem-passenger-4.0.5-5.el6.x86_64
mod_passenger-4.0.5-5.el6.x86_64
ruby193-rubygem-passenger-4.0.5-5.el6.x86_64
rubygem-passenger-native-4.0.5-5.el6.x86_64
ruby193-rubygem-passenger-native-4.0.5-5.el6.x86_64

I really need help as I'm really missing the cool foreman features :wink:

Thanks,
Stephane

This looks about right, but you're correct in that it shouldn't be
listing Ruby 1.8 in the error, which indicates the source of the problem.

Can you check /etc/httpd/conf.d/foreman.conf please and look for a
PassengerRuby line? It should contain:

PassengerRuby /usr/bin/ruby193-ruby

This tells it to switch to ruby193 for the Foreman virtualhosts.

··· On 15/11/13 17:12, Stephane Dujardin wrote: > Hi, > > I've been using Foreman since a few month and recently made an upgrade > to 1.3.1. > > After fixing many errors, I think related to the ruby version (1.8.7 + > 1.9.3), I finally removed all 1.9.3 and previously installed forman > packages and start the installer from scratch but now I have the > following error when I try to access to foreman web interface: > > cannot load such file -- bundler_ext (LoadError) > /usr/share/foreman/config/application.rb:10:in `require' > /usr/share/foreman/config/application.rb:10:in `' > /usr/share/foreman/config/environment.rb:2:in `require' > /usr/share/foreman/config/environment.rb:2:in `' > config.ru:3:in `require' > config.ru:3:in `block in ' > /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval' > /opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize' > config.ru:1:in `new' > config.ru:1:in `' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in `eval' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in `preload_app' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in `' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in `' > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in `' > > The foreman-installer went well but I still don't understand why the app is using ruby193 but passenger from version 1.8 (maybe it's not an issue?). > > I googled the error without finding any solution, tried to re-read the foreman installation guide without any success. > > My system is a Centos 6.4 with a working installation of puppetmaster (running under passenger). > > Installed passenger packages are: > > rubygem-passenger-native-libs-4.0.5-5.el6.x86_64 > ruby193-rubygem-passenger-native-libs-4.0.5-5.el6.x86_64 > rubygem-passenger-4.0.5-5.el6.x86_64 > mod_passenger-4.0.5-5.el6.x86_64 > ruby193-rubygem-passenger-4.0.5-5.el6.x86_64 > rubygem-passenger-native-4.0.5-5.el6.x86_64 > ruby193-rubygem-passenger-native-4.0.5-5.el6.x86_64 > > I really need help as I'm really missing the cool foreman features ;-)


Dominic Cleal
Red Hat Engineering

Only the 1.9.3 version is installed:

rpm -qa | grep bundler_ext
ruby193-rubygem-bundler_ext-0.3.0-3.el6.noarch

··· -- Stephane

What does

rpm -qa | grep bundler_ext

show?

··· On Fri, Nov 15, 2013 at 09:12:18AM -0800, Stephane Dujardin wrote: > cannot load such file -- bundler_ext (LoadError)


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

Apache configuration seems right. I have the following lines for both
virtualhost (80 and 443):

DocumentRoot /usr/share/foreman/public
PassengerAppRoot /usr/share/foreman
PassengerRuby /usr/bin/ruby193-ruby

··· -- Stephane

Le vendredi 15 novembre 2013 18:16:11 UTC+1, Dominic Cleal a écrit :

On 15/11/13 17:12, Stephane Dujardin wrote:

Hi,

I’ve been using Foreman since a few month and recently made an upgrade
to 1.3.1.

After fixing many errors, I think related to the ruby version (1.8.7 +
1.9.3), I finally removed all 1.9.3 and previously installed forman
packages and start the installer from scratch but now I have the
following error when I try to access to foreman web interface:

cannot load such file – bundler_ext (LoadError)
/usr/share/foreman/config/application.rb:10:in require' /usr/share/foreman/config/application.rb:10:in<top (required)>’
/usr/share/foreman/config/environment.rb:2:in require' /usr/share/foreman/config/environment.rb:2:in<top (required)>'
config.ru:3:in require' config.ru:3:inblock in ’

/opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:in
`instance_eval’

/opt/rh/ruby193/root/usr/local/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:in
`initialize’

config.ru:1:in new' config.ru:1:in

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in
`eval’

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:82:in
`preload_app’

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in
`module:App

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in
`module:PhusionPassenger

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in
`’

The foreman-installer went well but I still don’t understand why the app
is using ruby193 but passenger from version 1.8 (maybe it’s not an issue?).

I googled the error without finding any solution, tried to re-read the
foreman installation guide without any success.

My system is a Centos 6.4 with a working installation of puppetmaster
(running under passenger).

Installed passenger packages are:

rubygem-passenger-native-libs-4.0.5-5.el6.x86_64
ruby193-rubygem-passenger-native-libs-4.0.5-5.el6.x86_64
rubygem-passenger-4.0.5-5.el6.x86_64
mod_passenger-4.0.5-5.el6.x86_64
ruby193-rubygem-passenger-4.0.5-5.el6.x86_64
rubygem-passenger-native-4.0.5-5.el6.x86_64
ruby193-rubygem-passenger-native-4.0.5-5.el6.x86_64

I really need help as I’m really missing the cool foreman features :wink:

This looks about right, but you’re correct in that it shouldn’t be
listing Ruby 1.8 in the error, which indicates the source of the problem.

Can you check /etc/httpd/conf.d/foreman.conf please and look for a
PassengerRuby line? It should contain:

PassengerRuby /usr/bin/ruby193-ruby

This tells it to switch to ruby193 for the Foreman virtualhosts.


Dominic Cleal
Red Hat Engineering

> Only the 1.9.3 version is installed:

That is okay. You are apparently starting with Ruby 1.8 and not SCL Ruby.

I think foreman-debug tarball would help us. If this is production
stuff, send us directly.

··· -- Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman