Why does the generating sosreport fail with Error "report' is an invalid choice"?

Solution Verified - Updated -

Issue

  • Unable to generate sosreport.
  • sosreport command failed .

    # sos report -a
    usage: sos [-h] [--version] {install,run,dryrun,status,execute,kill,purge,config,convert,remove} ...
    sos: error: argument {install,run,dryrun,status,execute,kill,purge,config,convert,remove}: invalid choice: 'report' (choose from    'run', 'dryrun', 'status', 'worker', 'remote', 'preview', 'execute', 'kill', 'purge', 'config', 'convert', 'remove')
    
    # sos run -a
    usage: sos run [-h] [-j [WORKERS ...]] [-J EXTERNAL_JOBS] [-c CONFIG_FILE] [-t FILE [FILE ...]] [-q QUEUE [QUEUE ...]] [-r HOST [HOST ...]] [-n] [-s SIGMODE] [-S SIGTYPE] [-T] [-e ERRORMODE] [-d [DAG]] [-p [REPORT]] [-M MONITOR_ID]
               [-v {0,1,2,3,4}]
                  SCRIPT [WORKFLOW]
    sos run: error: the following arguments are required: SCRIPT
    

Environment

  • Red Hat Enterprise Linux 8

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