satellite-installer is failing with traceback rolling_file.rb:368:in `block in roll_by_number': undefined method `[]' for nil:NilClass (NoMethodError)

Solution Verified - Updated -

Issue

  • During the upgrade, satellite-installer is failing with following traceback:
# satellite-installer --scenario satellite --upgrade
/usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:368:in `block in roll_by_number': undefined method `[]' for nil:NilClass (NoMethodError)
        from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:367:in `sort'
        from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:367:in `roll_by_number'
        from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:349:in `roll_files'
        from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:110:in `initialize'
        from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:6:in `new'
        from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:6:in `rolling_file'
        from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/logger.rb:57:in `setup'
        from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:96:in `initialize'
        from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
        from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
        from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:163:in `run'
        from /sbin/satellite-installer:8:in `<main>'

Its not limited only to --upgrade, any satellite-installer command is failing with same traceback:

# satellite-installer
/usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:368:in `block in roll_by_number': undefined method `[]' for nil:NilClass (NoMethodError)
    from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:367:in `sort'
    from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:367:in `roll_by_number'
    from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:349:in `roll_files'
    from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:110:in `initialize'
    from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:6:in `new'
    from /usr/share/gems/gems/logging-2.2.2/lib/logging/appenders/rolling_file.rb:6:in `rolling_file'
    from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/logger.rb:57:in `setup'
    from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:96:in `initialize'
    from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
    from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
    from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:163:in `run'
    from /usr/sbin/satellite-installer:8:in `<main>'

Environment

  • Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content