Red Hat Satellite 6 upgrade fails with `/usr/share/foreman-installer/katello/hooks/pre_commit/13-hiera.rb:20:in `block (4 levels) in load': undefined method `[]' for nil:NilClass (NoMethodError)`
Environment
- Red Hat Satellite 6.x
Issue
-
Satellite 6.x upgrade fails with:
/usr/share/foreman-installer/katello/hooks/pre_commit/13-hiera.rb:20:in `block (4 levels) in load': undefined method `[]' for nil:NilClass (NoMethodError) from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:34:in `instance_eval' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:34:in `block (4 levels) in load' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hook_context.rb:16:in `instance_exec' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hook_context.rb:16:in `execute' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:51:in `block in execute' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:49:in `each' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/hooking.rb:49:in `execute' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/kafo_configure.rb:150:in `execute' from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/kafo_configure.rb:118:in `run' from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run' from /usr/share/gems/gems/kafo-4.0.1/lib/kafo/kafo_configure.rb:162:in `run' from /sbin/satellite-installer:8:in `<main>'
Resolution
-
Remove the rubygem-facter rpm from satellite.
# satellite-maintain packages unlock # yum remove rubygem-facter # satellite-maintain packages lock
Once done, repeat the upgrade process again.
For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.
Root Cause
- rubygem-facter rpm installed on satellite caused this issue.
SBR
Product(s)
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.