[Satellite6] satellite-maintain fails with command_runner.rb:88:in `strip': invalid byte sequence in UTF-8 (ArgumentError)

Solution Verified - Updated -

Issue

satellite-maintain fails with error

satellite-maintain
/usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/utils/command_runner.rb:88:in `strip': invalid byte sequence in UTF-8 (ArgumentError)
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/utils/command_runner.rb:88:in `block in run_non_interactively'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/utils/command_runner.rb:83:in `popen'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/utils/command_runner.rb:83:in `run_non_interactively'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/utils/command_runner.rb:30:in `run'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/concerns/system_helpers.rb:59:in `execute_runner'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/concerns/system_helpers.rb:73:in `execute'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/concerns/system_helpers.rb:48:in `execute?'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/package_manager/yum.rb:38:in `installed?'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/definitions/features/capsule.rb:10:in `block (2 levels) in <class:Capsule>'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/concerns/metadata.rb:226:in `instance_exec'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/concerns/metadata.rb:226:in `block in evaluate_confines'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/concerns/metadata.rb:225:in `each'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/concerns/metadata.rb:225:in `all?'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/concerns/metadata.rb:225:in `evaluate_confines'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/concerns/metadata.rb:200:in `present?'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/detector.rb:112:in `each'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/detector.rb:112:in `find'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/detector.rb:112:in `detect_feature'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/detector.rb:11:in `feature'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/cli/backup_command.rb:56:in `common_backup_options'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/cli/backup_command.rb:111:in `<class:OnlineBackupCommand>'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/cli/backup_command.rb:108:in `<module:Cli>'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/cli/backup_command.rb:2:in `<module:ForemanMaintain>'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/cli/backup_command.rb:1:in `<top (required)>'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/lib/foreman_maintain/cli.rb:7:in `<top (required)>'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/gems/gems/foreman_maintain-0.6.8/bin/foreman-maintain:14:in `<top (required)>'
    from /usr/bin/satellite-maintain:23:in `load'
    from /usr/bin/satellite-maintain:23:in `<main>'

Environment

Satellite 6.8
Rhel7

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