Red Hat Satellite 6 Web UI is inaccessible after running the 'yum update --security' command to patch the server

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6

Issue

  • Red Hat Satellite 6 Web UI is inaccessible after running the following command to patch the server:

    # yum update --security
    

Resolution

  • Restore the Red Hat Satellite server from a good snapshot or backup that was taken prior to applying the security patches. Before re-applying the security patches to the server, make sure that all custom repositories, third party repositories or other repositories not related to Red Hat Satellite are disabled, and that only Red Hat Satellite related repositories are enabled.

Root Cause

  • The Red Hat Satellite server was patched while some custom, third party or other repositories not related to Red Hat Satellite are enabled, causing undesired packages to be installed on the server.

Diagnostic Steps

  • Check the output from the 'hammer ping' command on the Satellite server:

    COMMAND> hammer ping
    
    /opt/theforeman/tfm/root/usr/share/gems/gems/fast_gettext-1.4.1/lib/fast_gettext/vendor/string.rb:70:in `%': too few arguments (ArgumentError)
        from /opt/theforeman/tfm/root/usr/share/gems/gems/fast_gettext-1.4.1/lib/fast_gettext/vendor/string.rb:70:in `%'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/lib/hammer_cli/utils.rb:13:in `format'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/lib/hammer_cli/output/adapter/abstract.rb:32:in `print_error'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/lib/hammer_cli/output/output.rb:16:in `print_error'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/lib/hammer_cli/exception_handler.rb:48:in `print_error'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/lib/hammer_cli/exception_handler.rb:65:in `handle_general_exception'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/lib/hammer_cli/exception_handler.rb:31:in `handle_exception'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/lib/hammer_cli/abstract.rb:188:in `handle_exception'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/lib/hammer_cli/abstract.rb:32:in `rescue in run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/lib/hammer_cli/abstract.rb:28:in `run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
        from /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.11.0.1/bin/hammer:147:in `<top (required)>'
        from /usr/bin/hammer:23:in `load'
        from /usr/bin/hammer:23:in `<main>'
    
  • Check if custom repositories, third party repositories or any other repositories not related to Red Hat Satellite are enabled on the Satellite server:

    # yum repolist all | grep enabled
    Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id,
    bintray--jfrog-artifactory-pro-rpms                                      enabled:    248
    edb-repos                                                                enabled:      2
    !gitlab_gitlab-ce/x86_64                                                 enabled:    504
    !gitlab_gitlab-ce-source                                                 enabled:      0
    !gitlab_gitlab-ee/x86_64                                                 enabled:    488
    !gitlab_gitlab-ee-source                                                 enabled:      0
    rhel-7-server-ansible-2.6-rpms/x86_64                                    enabled:     24
    rhel-7-server-rpms/7Server/x86_64                                        enabled: 26,176
    rhel-7-server-satellite-6.4-rpms/x86_64                                  enabled:    510
    rhel-7-server-satellite-maintenance-6-rpms/x86_64                        enabled:     33
    rhel-7-server-satellite-tools-6.4-rpms/x86_64                            enabled:     81
    rhel-server-rhscl-7-rpms/7Server/x86_64                                  enabled: 11,326
    Unable to upload Enabled Repositories Report
    

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.

Comments