sosreport error during sosreport command run with --tmp-dir NFS mount point

Latest response

Hi All,

while I am running sosreport with option --tmp-dir /nfs-mount , i m getting error at last .

ERROR:

Traceback (most recent call last):
File "/usr/sbin/sosreport", line 25, in
main(sys.argv[1:])
File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1593, in main
sos.execute()
File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1579, in execute
self.archive.cleanup()
File "/usr/lib/python2.7/site-packages/sos/archive.py", line 238, in cleanup
shutil.rmtree(self._archive_root)
File "/usr/lib64/python2.7/shutil.py", line 239, in rmtree
onerror(os.listdir, path, sys.exc_info())
File "/usr/lib64/python2.7/shutil.py", line 237, in rmtree
names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '/nfs_sos/sos.Lw2AuX/sosreport-rhel7.localdomain.localdomain-20171001012432'

Responses

Yes, I too received this error when trying to save sosreport data on remote system via nfs, but the dump was successful. This is the error :

OSError: [Errno 2] No such file or directory: '/fornfs/sos.YjZ5eK/sosreport-localhost.localdomain.mm-20170903065850'

But if see in the console before this error message there is a successful log recorded:

Your sosreport has been generated and saved in:
  /fornfs/sosreport-localhost.localdomain.mm-20170903065850.tar.xz

   The checksum is: 03f0fdde4050ba7301c2c75ac008168d

That confirms that the sosreport was dumped successfully on remote system, I also checked that and yes the tar file was there. As per this Red Hat KB https://access.redhat.com/solutions/2824591 this would be fixed in future release of RHEL6 and for RHEL7 upgrade to sos-3.4-5.el7 or later.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.