Red Hat Satellite 6 upgrade is failing with `("\xE2" on US-ASCII): N/A` error

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.2.x

Issue

  • Satellite upgrade is failing with below error:
[DEBUG 2018-01-15 18:01:04 main] Exit with status code: 6 (signal was 6)
[ERROR 2018-01-15 18:01:04 main] Errors encountered during run:
[ERROR 2018-01-15 18:01:04 main]  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite.example.com]: Could not evaluate: Proxy satellite.example.com cannot be registered ("\xE2" on US-ASCII): N/A
[ERROR 2018-01-15 18:01:04 main]  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite.example.com]: Failed to call refresh: Proxy satellite.example.com cannot be registered ("\xE2" on US-ASCII): N/A
[ERROR 2018-01-15 18:01:04 main]  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite.example.com]: Proxy satellite.example.com cannot be registered ("\xE2" on US-ASCII): N/A
[ERROR 2018-01-15 18:01:04 main] Upgrade failed during the installation phase. Fix the error and re-run the upgrade.

Resolution

  • This issue is related to Unicode Character Set defined on Satellite server.
# echo $LANG

en_US.UTF-8
  • Execute below commands on Satellite server to set en_US.UTF-8:
# localedef -c -f UTF-8 -i en_US en_US.UTF-8

# export LC_ALL=en_US.UTF-8

# export LANG=en_US.UTF-8
  • Additionally, you can add export LC_ALL=en_US.UTF-8 entry in /etc/environment

  • After setting the appropriate/mandatory Unicode character, re-execute the Satellite upgrade script again to complete the upgrade:

# satellite-installer --scenario satellite --upgrade

Root Cause

  • Incorrect Unicode Character defined on Satellite server.
  • Unicode character en_US.UTF-8 is mandatorily required to be set on the Satellite Server.

Diagnostic Steps

  • Check /var/log/foreman-installer/satellite.log for error messages:
[DEBUG 2018-01-15 18:01:04 main] Exit with status code: 6 (signal was 6)
[ERROR 2018-01-15 18:01:04 main] Errors encountered during run:
[ERROR 2018-01-15 18:01:04 main]  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite.example.com]: Could not evaluate: Proxy satellite.example.com cannot be registered ("\xE2" on US-ASCII): N/A
[ERROR 2018-01-15 18:01:04 main]  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite.example.com]: Failed to call refresh: Proxy satellite.example.com cannot be registered ("\xE2" on US-ASCII): N/A
[ERROR 2018-01-15 18:01:04 main]  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite.example.com]: Proxy satellite.example.com cannot be registered ("\xE2" on US-ASCII): N/A
[ERROR 2018-01-15 18:01:04 main] Upgrade failed during the installation phase. Fix the error and re-run the upgrade.

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.