Hi
I have updated Foreman this morning hoping that it might resolve the
following bug thats not allowing me to edit templates or assign templates
to an OS environment.
http://projects.theforeman.org/issues/14346
After the update Foreman fails with the following:
undefined method status_code' for class
ActionDispatch::ShowExceptions' (NameError)
/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/core_ext/module/aliasing.rb:32:in alias_method' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/core_ext/module/aliasing.rb:32:in
alias_method_chain'
/opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:40:in block in <module:ShowExceptionsPatch>' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/concern.rb:120:in
class_eval'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/concern.rb:120:in append_features' /opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:28:in
include'
/opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:28:in setup_actioncontroller' /opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:14:in
block (2 levels) in <class:Railtie>'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:38:in instance_eval' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:38:in
execute_hook'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:28:in block in on_load' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:27:in
each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:27:in on_load' /opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:13:in
block in <class:Railtie>'
/opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in instance_exec' /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in
run'
/opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:55:in block in run_initializers' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:in
block in tsort_each'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:348:in block (2 levels) in each_strongly_connected_component' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:429:in
each_strongly_connected_component_from'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:347:in block in each_strongly_connected_component' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in
each'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in call' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in
each_strongly_connected_component'
/opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:224:in tsort_each' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:203:in
tsort_each'
/opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:54:in run_initializers' /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:300:in
initialize!'
/opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in public_send' /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in
method_missing'
/usr/share/foreman/config/environment.rb:5:in <top (required)>' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in
require'
/opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in require' config.ru:3:in
block in <main>'
/opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in instance_eval' /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in
initialize'
config.ru:1:in new' config.ru:1:in
<main>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in eval' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in
preload_app'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in <module:App>' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in
<module:PhusionPassenger>'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `<main>'
I noticed that during the update of Foreman additional tfm-rubygem and rh-ror packages were installed.
Ah ok the update of tfm-rubygem-will_paginate seemed to do the trick
although i noticed postgresql wouldnt start until kernel.shmmax was
increased.
Thanks for the assist!
I see that opening in a new tab is a work around, so thanks for the info. ![:slight_smile: :slight_smile:](https://community.theforeman.org/images/emoji/twitter/slight_smile.png?v=5)
···
On Friday, April 1, 2016 at 10:03:39 AM UTC+1, James Denton wrote:
>
> Hi
>
> I have updated Foreman this morning hoping that it might resolve the
> following bug thats not allowing me to edit templates or assign templates
> to an OS environment.
>
> http://projects.theforeman.org/issues/14346
>
> After the update Foreman fails with the following:
>
> undefined method `status_code' for class `ActionDispatch::ShowExceptions' (NameError)
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/core_ext/module/aliasing.rb:32:in `alias_method'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/core_ext/module/aliasing.rb:32:in `alias_method_chain'
> /opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:40:in `block in '
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/concern.rb:120:in `class_eval'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/concern.rb:120:in `append_features'
> /opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:28:in `include'
> /opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:28:in `setup_actioncontroller'
> /opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:14:in `block (2 levels) in '
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:27:in `each'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
> /opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:13:in `block in '
> /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `instance_exec'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `run'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:55:in `block in run_initializers'
> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:in `block in tsort_each'
> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:429:in `each_strongly_connected_component_from'
> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:347:in `block in each_strongly_connected_component'
> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `each'
> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `call'
> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `each_strongly_connected_component'
> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:224:in `tsort_each'
> /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:203:in `tsort_each'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:54:in `run_initializers'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:300:in `initialize!'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `public_send'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `method_missing'
> /usr/share/foreman/config/environment.rb:5:in `'
> /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
> /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
> config.ru:3:in `block in '
> /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
> /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
> config.ru:1:in `new'
> config.ru:1:in `'
> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `eval'
> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:105:in `preload_app'
> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:150:in `'
> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:29:in `'
> /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/helper-scripts/rack-preloader.rb:28:in `'
>
> I noticed that during the update of Foreman additional tfm-rubygem and rh-ror packages were installed.
>
>
>
>
> Hi
>
> I have updated Foreman this morning hoping that it might resolve the
> following bug thats not allowing me to edit templates or assign
> templates to an OS environment.
>
> Bug #14346: New Template feature does not work with firefox 45.0 - Foreman
This bug is still in the New state, it hasn't been fixed in any version.
I'd suggest using the workaround listed, open the template in a new tab.
> After the update Foreman fails with the following:
>
> undefined method status_code' for class
ActionDispatch::ShowExceptions' (NameError)
> /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/core_ext/module/aliasing.rb:32:in alias_method' > /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/core_ext/module/aliasing.rb:32:in
alias_method_chain'
> /opt/theforeman/tfm/root/usr/share/gems/gems/will_paginate-3.0.2/lib/will_paginate/railtie.rb:40:in `block in <module:ShowExceptionsPatch>'
This gem looks out of date, you should have
tfm-rubygem-will_paginate-3.1.0 installed, not 3.0.2.
> I noticed that during the update of Foreman additional tfm-rubygem and rh-ror packages were installed.
Yeah, that's right, but it's incomplete.
I'm not sure how you updated, but please follow the instructions at
Foreman :: Manual and ensure you
run the yum upgrade command to upgrade all related packages.
Cheers,
···
On 01/04/16 10:03, James Denton wrote:
–
Dominic Cleal
dominic@cleal.org