sosreport running in a container throws the error " Could not initialize 'report' :local variable '_host_sysroot' regerenced before assignment"

Solution Verified - Updated -

Issue

  • sosreport running in a container throws the following error:

    Could not initialize 'report' :local variable '_host_sysroot' regerenced before assignment
    

Environment

  • Red Hat Enterprise Linux 8.4
  • RHEL8 UBI image
  • sos
  • Operation in container

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