Satellite upgrade check throws warning as locale environment variables were bad.

Solution Verified - Updated -

Issue

  • Satellite-maintain upgrade check --target-version="6.x" results in warning

    # satellite-maintain upgrade check --target-version="6.x.z"
    /usr/share/rubygems/rubygems/version.rb:191:in `initialize': Malformed version number string 2020-09-15 12:54:14.646378 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C (ArgumentError)5.5.12
    

    OR

      /usr/share/ruby/json/common.rb:155:in `parse': 757: unexpected token at '2022-09-07 15:53:17.173973 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C (JSON::ParserError)
    

    OR

    Error 1: Puppet Exec resource 'postgresql_reload_main' failed. Logs:
    /Stage[main]/Postgresql::Server::Reload/Postgresql::Server::Instance::Reload[main]/Exec[postgresql_reload_main]/requir                                      e
    require to Class[Postgresql::Server::Service]
    /Stage[main]/Postgresql::Server::Reload/Postgresql::Server::Instance::Reload[main]/Exec[postgresql_reload_main]
    Starting to evaluate the resource (962 of 1217)
    'systemctl reload postgresql' won't be executed because of failed check 'refreshonly'
    Failed to call refresh: invalid byte sequence in US-ASCII
    invalid byte sequence in US-ASCII
    Evaluated in 0.01 seconds
    Exec[postgresql_reload_main](provider=posix)
    Executing check 'systemctl status postgresql'
    

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule

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