Bug 577184
| Summary: | [abrt] crash in tuned-0.2.10-1.fc12: __init__.py:820:_open:IOError: [Errno 13] Permission denied: '/var/log/tuned/tuned.log' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | orti1980 <orti1980> | ||||
| Component: | tuned | Assignee: | Jan Vcelak <jvcelak> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 12 | CC: | jvcelak, mmaslano, pknirsch, plautrba, tsmetana, twoerner | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i686 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | abrt_hash:d3563398 | ||||||
| Fixed In Version: | tuned-0.2.13-1.fc12 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-05-25 18:39:32 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 402819 [details]
File: backtrace
Do you have SElinux in enforcing mode? If so, then please attach SElinux report from setroubleshoot tool or `grep tuned /var/log/secure` SElinux is disabled and /var/log/tuned/tuned.log is empty Hi. Thank you for reporting. This seems like you tried running tuned as a non-superuser (from terminal). Am I right? yes i starting as non-su
under root no problems
Traceback (most recent call last):
File "/usr/sbin/tuned", line 30, in <module>
import logging, tuned_logging
File "/usr/share/tuned/tuned_logging.py", line 57, in <module>
file_handler = logging.handlers.RotatingFileHandler(LOG_FILENAME, maxBytes=200*1000, backupCount=2)
File "/usr/lib/python2.6/logging/handlers.py", line 107, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.6/logging/handlers.py", line 59, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.6/logging/__init__.py", line 801, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.6/logging/__init__.py", line 820, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/tuned/tuned.log'
thanks
Hi. It makes no sense to run it without superuser permission. But it definitely should fail more gracefully. Thank you. I will fix it in some future version. Jan tuned-0.2.13-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/tuned-0.2.13-1.fc13 tuned-0.2.13-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/tuned-0.2.13-1.fc12 tuned-0.2.13-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. tuned-0.2.13-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update tuned'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/tuned-0.2.13-1.fc12 tuned-0.2.13-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |
abrt 1.0.8 detected a crash. architecture: i686 cmdline: /usr/bin/python /usr/sbin/tuned component: tuned executable: /usr/sbin/tuned kernel: 2.6.32.9-70.fc12.i686.PAE package: tuned-0.2.10-1.fc12 reason: __init__.py:820:_open:IOError: [Errno 13] Permission denied: '/var/log/tuned/tuned.log' release: Fedora release 12 (Constantine) backtrace ----- __init__.py:820:_open:IOError: [Errno 13] Permission denied: '/var/log/tuned/tuned.log' Traceback (most recent call last): File "/usr/sbin/tuned", line 30, in <module> import logging, tuned_logging File "/usr/share/tuned/tuned_logging.py", line 57, in <module> file_handler = logging.handlers.RotatingFileHandler(LOG_FILENAME, maxBytes=200*1000, backupCount=2) File "/usr/lib/python2.6/logging/handlers.py", line 107, in __init__ BaseRotatingHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.6/logging/handlers.py", line 59, in __init__ logging.FileHandler.__init__(self, filename, mode, encoding, delay) File "/usr/lib/python2.6/logging/__init__.py", line 801, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python2.6/logging/__init__.py", line 820, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 13] Permission denied: '/var/log/tuned/tuned.log' Local variables in innermost frame: self: <logging.handlers.RotatingFileHandler instance at 0xb74052cc>