theforeman / foreman_default_hostgroup

A plugin to set the default hostgroup when hosts are created.
GNU General Public License v3.0
11 stars 29 forks source link

Upgrade to 1.16 issues -> tfm-rubygem-foreman_default_hostgroup.noarch #32

Closed y-me-y closed 6 years ago

y-me-y commented 6 years ago

I removed the above gem and the below error went away.

no implicit conversion of nil into String (TypeError) /usr/share/foreman/config/initializers/assets.rb:73:in join' /usr/share/foreman/config/initializers/assets.rb:73:inblock (4 levels) in <top (required)>' /usr/share/foreman/config/initializers/assets.rb:72:in map' /usr/share/foreman/config/initializers/assets.rb:72:inblock (3 levels) in <top (required)>' /usr/share/foreman/config/initializers/assets.rb:69:in each' /usr/share/foreman/config/initializers/assets.rb:69:inblock (2 levels) in <top (required)>' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:36:in call' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:36:inexecute_hook' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:45:in block in run_load_hooks' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:44:ineach' /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:44:in run_load_hooks' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:62:inblock in ' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in instance_exec' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:inrun' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in block in run_initializers' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:inblock 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:ineach_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:ineach' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in call' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:ineach_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:intsort_each' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in run_initializers' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:352:ininitialize!' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in public_send' /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:inmethod_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:inrequire' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in require' config.ru:3:inblock in

' /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/builder.rb:55:in instance_eval' /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/builder.rb:55:ininitialize' config.ru:1:in new' config.ru:1:in
' /usr/share/passenger/helper-scripts/rack-preloader.rb:112:in eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:112:inpreload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in <module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `
'

juaorteg commented 6 years ago

I have this same issue. Installed Foreman 1.16 and the plugin:

$ foreman-installer -v --enable-foreman-plugin-default-hostgroup

When I restart Foreman I receive: /usr/share/foreman/config/initializers/assets.rb:73:in `join': no implicit conversion of nil into String (TypeError)

mmoll commented 6 years ago

GH-31 & GH-33

juaorteg commented 6 years ago

Thanks! Its working now.

ekohl commented 6 years ago

Since this is part of 4.0.1 I think it can be closed. It still needs to be included in 1.16 RPMs though.

mmoll commented 6 years ago

https://github.com/theforeman/foreman-packaging/pull/2082

ekohl commented 6 years ago

Looks like it's on me then. I'll take a look

jmp242 commented 6 years ago

Shouldn't the support table be updated with 4.0.1 for 1.16 and newer?

mmoll commented 6 years ago

I'm pretty sure, 1.17+ is broken again :)

GregSutcliffe commented 6 years ago

Table updated in https://github.com/theforeman/foreman_default_hostgroup/commit/36fa29c78a717c50d8fb2e8da709b4063ad74d88#diff-04c6e90faac2675aa89e2176d2eec7d8R21 :)