Caught exception in plugin method "grub2.setup()" during sosreport execution

Solution Verified - Updated -


  • Running sosreport logs the below error:
$ cat grub2-plugin-errors.txt 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/sos/", line 1252, in setup
  File "/usr/lib/python2.7/site-packages/sos/plugins/", line 34, in setup
  File "/usr/lib/python2.7/site-packages/sos/plugins/", line 572, in add_copy_spec
    files.sort(key=getmtime, reverse=True)
  File "/usr/lib/python2.7/site-packages/sos/plugins/", line 569, in getmtime
    except (OSError, FileNotFoundError):
NameError: global name 'FileNotFoundError' is not defined


  • Red Hat Enterprise Linux 7
    • seen on sos-3.5-9.el7_5 and below.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In