Bug 903861 - [abrt] anaconda-18.37.11-1.fc18: __init__.py:916:_open:IOError: [Errno 13] Permission denied: '/tmp/anaconda.log'
Summary: [abrt] anaconda-18.37.11-1.fc18: __init__.py:916:_open:IOError: [Errno 13] Pe...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Samantha N. Bueno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3c60886b601ce1ef797bfd1f2e9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-24 23:17 UTC by doomcup
Modified: 2014-02-05 18:27 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-05 18:27:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (960 bytes, text/plain)
2013-01-24 23:17 UTC, doomcup
no flags Details
File: core_backtrace (632 bytes, text/plain)
2013-01-24 23:17 UTC, doomcup
no flags Details
File: environ (1.32 KB, text/plain)
2013-01-24 23:17 UTC, doomcup
no flags Details
exit immediately if not running as root (824 bytes, patch)
2013-04-12 03:43 UTC, Gabriel M. Elder
no flags Details | Diff

Description doomcup 2013-01-24 23:17:40 UTC
Description of problem:
Upon getting to the desktop, I doubleclicked the "Install to Hard Drive" icon, and nothing happened. This error happened when I tried running it in the alt-f2 menu

Version-Release number of selected component:
anaconda-18.37.11-1.fc18

Additional info:
cmdline:        /usr/bin/python /usr/sbin/anaconda
dso_list:       python-libs-2.7.3-13.fc18.x86_64
executable:     /usr/sbin/anaconda
kernel:         3.6.10-4.fc18.x86_64
uid:            1000

Truncated backtrace:
__init__.py:916:_open:IOError: [Errno 13] Permission denied: '/tmp/anaconda.log'

Traceback (most recent call last):
  File "/usr/sbin/anaconda", line 654, in <module>
    anaconda_log.init()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/anaconda_log.py", line 258, in init
    logger = AnacondaLog()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/anaconda_log.py", line 132, in __init__
    minLevel=logging.DEBUG)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/anaconda_log.py", line 192, in addFileHandler
    logfileHandler = logging.FileHandler(file)
  File "/usr/lib64/python2.7/logging/__init__.py", line 897, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 916, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/tmp/anaconda.log'

Local variables in innermost frame:
self: <logging.FileHandler object at 0x161c7d0>

Potential duplicate: bug 861584

Comment 1 doomcup 2013-01-24 23:17:42 UTC
Created attachment 687077 [details]
File: backtrace

Comment 2 doomcup 2013-01-24 23:17:44 UTC
Created attachment 687078 [details]
File: core_backtrace

Comment 3 doomcup 2013-01-24 23:17:46 UTC
Created attachment 687079 [details]
File: environ

Comment 4 Chris Lumens 2013-01-29 18:57:27 UTC
This is caused by starting the live installer multiple times, but I thought anaconda-cleanup would take care of the pre-existing logs problem.

Comment 5 Gabriel M. Elder 2013-04-12 03:43:25 UTC
Created attachment 734520 [details]
exit immediately if not running as root

Proper exception handling could help with this particular bug, by why exit later, rather than sooner, if it's not running as root anyway, right?

Comment 6 Gabriel M. Elder 2013-04-12 03:44:19 UTC
Anaconda should be patched to either handle this exception, or exit prior to this occurring if it is not running with elevated privileges. That seems to be the intention expressed by lines 660-662 in the current /sbin/anaconda source version, anyway. So I've submitted a patch (diff -u) that will simply cause anaconda to exit immediately if it is not being run as root. In regards to this bug, it's better for it to exit right away, rather than later on, after an attempt has been made to initialize the logging subsystem - because by then, it's already too late.

Comment 7 Fedora End Of Life 2013-12-21 10:48:18 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2014-02-05 18:27:36 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.