Adding plugin foreman_content in foreman 1.4 on CentOS 6.5

Hi,

I'm trying to install foreman 1.4 and the plugin foreman_content on a
CentOS 6.5.
After installing foreman with foreman-installer everything is working fine.

I then follow the Foreman 1.4 manual (Advanced: installing from gems), to
install the foreman_content plugin, because foreman_content is not
available as a RPM.

I do this by running the following commands as root:

scl enable ruby193 bash

gem install --ignore-dependencies foreman_content

Fetching: foreman_content-0.4.gem (100%)
Successfully installed foreman_content-0.4
1 gem installed
Installing ri documentation for foreman_content-0.4…
Installing RDoc documentation for foreman_content-0.4…

echo "gem 'foreman_content' >

/usr/share/foreman/bundler.d/Gemfile.local.rb

I need to install some extra dependencies for foreman_content.

gem install --ignore-dependencies runcible -v "0.4.10"

Fetching: runcible-0.4.10.gem (100%)
Successfully installed runcible-0.4.10
1 gem installed
Installing ri documentation for runcible-0.4.10…
Installing RDoc documentation for runcible-0.4.10…

gem install --ignore-dependencies deface

Fetching: deface-1.0.0.gem (100%)
Successfully installed deface-1.0.0
1 gem installed
Installing ri documentation for deface-1.0.0…
Installing RDoc documentation for deface-1.0.0…

gem install --ignore-dependencies nokogiri -v "1.6.0"

Building native extensions. This could take a while…
Successfully installed nokogiri-1.6.0
1 gem installed
Installing ri documentation for nokogiri-1.6.0…
Installing RDoc documentation for nokogiri-1.6.0…

gem install --ignore-dependencies colorize -v "0.5.8"

Fetching: colorize-0.5.8.gem (100%)
Successfully installed colorize-0.5.8
1 gem installed
Installing ri documentation for colorize-0.5.8…
Installing RDoc documentation for colorize-0.5.8…

After installing these deps and restarting httpd I get following error.

Web application could not be started

undefined method setting_options' for moduleHomeHelper' (NameError)

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/module/aliasing.rb:31:in
`alias_method'

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/module/aliasing.rb:31:in
`alias_method_chain'

/opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_content-0.4/app/models/concerns/content/home_helper.rb:4:in
`block in <module:HomeHelper>'

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/concern.rb:119:in
`class_eval'

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/concern.rb:119:in
`append_features'

/opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_content-0.4/lib/content/engine.rb:24:in
`include'

/opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_content-0.4/lib/content/engine.rb:24:in
`block in <class:Engine>'

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:440:in
`_run__3955485975989203156__prepare__960248487373364547__callbacks'

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in
`__run_callback'

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
`_run_prepare_callbacks'

/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in
`run_callbacks'

/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:74:in
`prepare!'

/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in
`prepare!'

/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:in
`block in <module:Finisher>'

/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in
`instance_exec'

/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in
`run'

/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in
`block in run_initializers'

/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in
`each'

/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in
`run_initializers'

/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:in
`initialize!'

/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
method_missing&#39; /usr/share/foreman/config/environment.rb:5:in<top (required)>'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in
require&#39; /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:inrequire'
config.ru:3:in `block in <main>'

/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in
`instance_eval'

/opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in
initialize&#39; config.ru:1:innew'
config.ru:1:in `<main>'

/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
`<main>'

Does anyone has any idea what to do next?

I wonder if foreman_content is compatible with Foreman 1.4+

I guess it is not.

I can recommend Katello plugins which is more complex than
foreman_content.

LZ

··· On Thu, Mar 20, 2014 at 08:27:18AM -0700, Thomas Buts wrote: > Hi, > > I'm trying to install foreman 1.4 and the plugin foreman_content on a > CentOS 6.5. > After installing foreman with foreman-installer everything is working fine. > > I then follow the Foreman 1.4 manual (Advanced: installing from gems), to > install the foreman_content plugin, because foreman_content is not > available as a RPM. > > I do this by running the following commands as root: > > # scl enable ruby193 bash > > # gem install --ignore-dependencies foreman_content > Fetching: foreman_content-0.4.gem (100%) > Successfully installed foreman_content-0.4 > 1 gem installed > Installing ri documentation for foreman_content-0.4... > Installing RDoc documentation for foreman_content-0.4... > > # echo "gem 'foreman_content' > > /usr/share/foreman/bundler.d/Gemfile.local.rb > > I need to install some extra dependencies for foreman_content. > > # gem install --ignore-dependencies runcible -v "0.4.10" > Fetching: runcible-0.4.10.gem (100%) > Successfully installed runcible-0.4.10 > 1 gem installed > Installing ri documentation for runcible-0.4.10... > Installing RDoc documentation for runcible-0.4.10... > > # gem install --ignore-dependencies deface > Fetching: deface-1.0.0.gem (100%) > Successfully installed deface-1.0.0 > 1 gem installed > Installing ri documentation for deface-1.0.0... > Installing RDoc documentation for deface-1.0.0... > > # gem install --ignore-dependencies nokogiri -v "1.6.0" > Building native extensions. This could take a while... > Successfully installed nokogiri-1.6.0 > 1 gem installed > Installing ri documentation for nokogiri-1.6.0... > Installing RDoc documentation for nokogiri-1.6.0... > > # gem install --ignore-dependencies colorize -v "0.5.8" > Fetching: colorize-0.5.8.gem (100%) > Successfully installed colorize-0.5.8 > 1 gem installed > Installing ri documentation for colorize-0.5.8... > Installing RDoc documentation for colorize-0.5.8... > > > After installing these deps and restarting httpd I get following error. > > Web application could not be started > > undefined method `setting_options' for module `HomeHelper' (NameError) > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/module/aliasing.rb:31:in > `alias_method' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/module/aliasing.rb:31:in > `alias_method_chain' > > /opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_content-0.4/app/models/concerns/content/home_helper.rb:4:in > `block in ' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/concern.rb:119:in > `class_eval' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/concern.rb:119:in > `append_features' > > /opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_content-0.4/lib/content/engine.rb:24:in > `include' > > /opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_content-0.4/lib/content/engine.rb:24:in > `block in ' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:440:in > `_run__3955485975989203156__prepare__960248487373364547__callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in > `__run_callback' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in > `_run_prepare_callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in > `run_callbacks' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:74:in > `prepare!' > > /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in > `prepare!' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:in > `block in ' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in > `instance_exec' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in > `run' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in > `block in run_initializers' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in > `each' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in > `run_initializers' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:in > `initialize!' > > /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in > `method_missing' > /usr/share/foreman/config/environment.rb:5:in `' > /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > `require' > /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in > `require' > config.ru:3:in `block in ' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/lib/rack/builder.rb:51:in > `instance_eval' > > /opt/rh/ruby193/root/usr/share/gems/gems/rack-1.4.1/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 > `' > > > Does anyone has any idea what to do next? > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman