My Oracle Support Banner

Orace Linux 6 - SOSREPORT Generation Failed With Error "IOError: [Errno 2] No Such File Or Directory" (Doc ID 2578417.1)

Last updated on SEPTEMBER 06, 2019

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Linux x86-64


Generating a sosreport failed with following errors on Oracle Linux 6 server.

[root@<localhost>~]# sosreport

Setting up archive ...
Setting up plugins ...
Running plugins. Please wait ...
 Running 72/74: x11... 
 Running 73/74: xfs... 
 Running 74/74: yum... 
Creating compressed archive...
Traceback (most recent call last):
 File "/usr/sbin/sosreport", line 25, in 
 File "/usr/lib/python2.6/site-packages/sos/", line 1520, in main
 File "/usr/lib/python2.6/site-packages/sos/", line 1499, in execute
  return self.final_work()
 File "/usr/lib/python2.6/site-packages/sos/", line 1411, in final_work
  checksum = self._create_checksum(archive, hash_name)
 File "/usr/lib/python2.6/site-packages/sos/", line 1349, in _create_checksum
  archive_fp = open(archive, 'rb')
IOError: [Errno 2] No such file or directory: '/tmp/sos._WBrAP/sosreport-localhost.tar.xz'

Tar file is created but not .xz compressed.

[root@<localhost>]# pwd
[root@<localhost>]# ls -l
total 2134952
-rw------- 1 root root 2183403520 Jun 12 13:39 sosreport-localhost-20190612133120.tar
-rw------- 1 root root 290 Jun 12 13:38 tmpFoixZs
-rw------- 1 root root 1430112 Jun 12 13:38 tmpOrDeqv
-rw------- 1 root root 786415 Jun 12 13:44 tmpWMyCSI
-rw------- 1 root root 556329 Jun 12 13:38 tmpzTfC1m 




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.