bug 589147 is caused by sosreport trying to save the file in /tmp, which is prohibited by selinux.
abrt later copies the file to a abrt crash dump directory.
Please provide a sosreport command line option to specify the destination file. If this causes problems with picking the right compression method, for example:
sosreport ... -o /path/to/file.tar.gz
sosreport ... -o /path/to/file.tar.bz2
- you might find it non-trivial to teach sosreport to figure out how to conform to tarfile extension - then I'd settle for an option which merely specifies a destination directory or destination basename (without .gz etc)
You can set a temporary directory to store the captures files and also the compressed archive (--tmp-dir)
This should be available in latest sos release in RHEL6 beta.
Could you please confirm if this solves the issue?
I've tried on rhel6 machine with this result. What's wrong?
[root@redhat ~]# mkdir sos
[root@redhat ~]# sosreport --tmp-dir sos/
sosreport (version 2.1)
This utility will collect some detailed information about the
hardware and setup of your Red Hat Enterprise Linux system.
The information is collected and an archive is packaged under
/tmp, which you can send to a support representative.
Red Hat Enterprise Linux will use this information for diagnostic purposes ONLY
and it will be considered confidential information.
This process may take a while to complete.
No changes will be made to your system.
Press ENTER to continue, or CTRL-C to quit.
Please enter your first initial and last name [redhat]:
Please enter the case number that you are generating this report for:
Running plugins. Please wait ...
Completed [52/52] ...
Creating compressed archive...
/bin/sh: sos/sosreport-redhat-20100602173547.tar.xz: No such file or directory
/bin/tar: -: Cannot write: Broken pipe
/bin/tar: Error is not recoverable: exiting now
Traceback (most recent call last):
File "/usr/sbin/sosreport", line 23, in <module>
File "/usr/lib/python2.6/site-packages/sos/sosreport.py", line 835, in sosreport
File "/usr/lib/python2.6/site-packages/sos/policyredhat.py", line 313, in displayResults
fp = open(self.report_file, "r")
IOError: [Errno 2] No such file or directory: 'sos/sosreport-redhat-20100602173547.tar.xz'
[root@redhat ~]# ls -l sos/
Does `pwd`/sos/ exist?
Of course. "mkdir sos" created it, and "ls -l sos/" did not says that it doesn't exist.
Thanks for the quick replies -- I'm able to reproduce so I'll see what I can do.
I belive I've fixed this issue it should make its way into nightly as soon as I can get the cluster plugin wrapped up.
Where we can get this build for testing?
I have a scratch build up at
I tested it and it works for me, please push it to RHEL6 ASAP...
This feature request did not get resolved in time for Feature Freeze
for the current Red Hat Enterprise Linux release and has now been
denied. It has been proposed for the next Red Hat Enterprise Linux
release. If you would still like it considered for the current
release as an exception, please make that request with your support
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.