RHEL7: Collecting sosreport failed with IOError: [Errno 2] No such file or directory: '/var/tmp/xxx.tar.xz'

Solution Verified - Updated -


sosreport command is failed with logs

Creating compressed archive...
Traceback (most recent call last):
  File "/sbin/sosreport", line 25, in <module>
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1637, in main
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1616, in execute
    return self.final_work()
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1529, in final_work
    checksum = self._create_checksum(archive, hash_name)
  File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1467, in _create_checksum
    archive_fp = open(archive, 'rb')
IOError: [Errno 2] No such file or directory: '/var/tmp/sos.SKPcFL/sosreport-unicymdctr0001.localdomain-20181004144559.tar.xz'


  • Red Hat Enterprise Linux 7
  • Earlier than sos-3.4-6.el7
  • Red Hat OpenStack Platform

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