Cannot create sosreport presets without manually creating /var/lib/sos/presets

Solution Verified - Updated -


  • Trying to create a preset with the sosreport command will fail with:

    # sosreport --add-preset foobar [any sos options]
    Could not add preset: [Errno 2] No such file or directory:     '/var/lib/sos/presets/foobar'


  • Red Hat Enterprise Linux 8.0

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