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:
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 ;-)
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 ’