Bug 669884

Summary: [abrt] anaconda-15.14-1.fc15: __init__.py:912:_open:IOError: [Errno 13] Permission denied: '/tmp/anaconda.log'
Product: [Fedora] Fedora Reporter: Flóki Pálsson <flokip>
Component: anacondaAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: anaconda-maint-list, dr.diesel, erikina, jonathan, jzeleny, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:2b89e413
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-23 10:04:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
# anaconda - crash none

Description Flóki Pálsson 2011-01-15 14:23:53 UTC
abrt version: 1.1.14
architecture: x86_64
cmdline: /usr/bin/python /usr/sbin/anaconda
component: anaconda
executable: /usr/sbin/anaconda
kernel: 2.6.37-2.fc15.x86_64
package: anaconda-15.14-1.fc15
reason: __init__.py:912:_open:IOError: [Errno 13] Permission denied: '/tmp/anaconda.log'
release: Fedora release 15 (Rawhide)
time: 1295155186
uid: 500

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

Traceback (most recent call last):
  File "/usr/sbin/anaconda", line 483, in <module>
    anaconda_log.init()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/anaconda_log.py", line 164, in init
    logger = AnacondaLog()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/anaconda_log.py", line 85, in __init__
    minLevel=logging.DEBUG)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/anaconda_log.py", line 121, in addFileHandler
    logfileHandler = logging.FileHandler(file)
  File "/usr/lib64/python2.7/logging/__init__.py", line 893, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 912, 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 0x23f6cd0>

How to reproduce
-----
1.  starterded anaconda from terminal
2.
3.

Comment 1 Flóki Pálsson 2011-01-15 14:23:56 UTC
Created attachment 473641 [details]
File: backtrace

Comment 2 Flóki Pálsson 2011-01-15 14:29:25 UTC
I was innstalling from desktop-x86_64-20110114.16.iso.
It was not possible to uese from menu Install to Hard Drive.

Comment 3 Flóki Pálsson 2011-01-15 14:44:37 UTC
As root it anacoda starts.   
# anaconda
00:31:52 Starting graphical installation.
Loading /lib/kbd/keymaps/i386/qwerty/us.map.gz
Loading /lib/kbd/keymaps/i386/qwerty/is-latin1.map.gz
[root@localhost ~]# anaconda
00:33:32 Starting graphical installation.
Loading /lib/kbd/keymaps/i386/qwerty/us.map.gz
Loading /lib/kbd/keymaps/i386/qwerty/is-latin1.map.gz
**
ERROR:lib/modules.c:214:lu_modules_load: assertion failed: (module != NULL)
Aborted (core dumped)
[root@localhost ~]#

Comment 4 Chris Lumens 2011-01-15 15:13:37 UTC
Was this on the second time you tried to run anaconda?

Comment 5 Flóki Pálsson 2011-01-15 17:18:55 UTC
>Was this on the second time you tried to run anaconda?
Yes.  
#3 started  anaconda as root.

In first case   then anaconda was started as live user $.

Comment 6 Martin Gracik 2011-01-17 11:36:31 UTC
So which error are you reporting?

ERROR:lib/modules.c:214:lu_modules_load: assertion failed: (module != NULL)
Aborted (core dumped)

should be fixed now.

Comment 7 Flóki Pálsson 2011-01-17 23:43:19 UTC
>So which error are you reporting?
It was not possible to uese from menu Install to Hard Drive.

ps
To start anaconda from terminal was to show that something was wrong.

Comment 8 Chris Lumens 2011-01-18 21:49:19 UTC
Ales - looks like we should just make sure that if our log files are present at the beginning of installation, we remove them first.

Comment 9 Ales Kozumplik 2011-01-19 07:54:52 UTC
Flóki,

This is what I think what happened:

1) on your first try you hit bug 668855, anaconda silently terminated.

2) on your second try (from the terminal) you started anaconda from the terminal as normal user:
/usr/bin/python /usr/sbin/anaconda
this command by itself won't give anaconda the root privileges so it dies quickly failing to open the log file created under root in step 1)

3) on the third try, as root, you hit 1) again.

Can you please try with a more recent rawhide liveinst compose? To successfully run anaconda as the live user use the 'liveinst' command.

Thank you.
Ales

Comment 10 Flóki Pálsson 2011-01-19 21:21:14 UTC
booting upp from desktop-x86_64-20110117.16.iso and using bacic video.
Deauult does not work. 

Then
[liveuser@localhost ~]$ liveinst
Error launching program: Failed to execute child process "/usr/bin/hal-lock" (No such file or directory)
[liveuser@localhost ~]$ su -
[root@localhost ~]# liveinst
Error launching program: Failed to execute child process "/usr/bin/hal-lock" (No such file or directory)
[root@localhost ~]# 

I will try next one.

Comment 11 Flóki Pálsson 2011-01-19 21:28:43 UTC
Created attachment 474361 [details]
# anaconda - crash

Crash from anaconda.
Starting as root from terminal.

Comment 12 Chris Lumens 2011-01-19 21:40:14 UTC
Please only report one bug per bug report.  There's now at least three different problems here, which makes it basically impossible to know what the status is or what's been resolved and what has not.

To sum up:

* The /tmp/anaconda.log thing looks like it still needs to be resolved.
* The /usr/bin/hal-lock thing is bug 670312.
* The XOpenDisplay thing is bug 663294.

Comment 13 Ales Kozumplik 2011-01-20 06:56:10 UTC
(In reply to comment #12)
> * The /tmp/anaconda.log thing looks like it still needs to be resolved.

I think the reporter is hitting this because he attempted to run anaconda as non-root and not through liveinst.

Flóki,

Please try again once the anaconda with the bug 670312 fixed is released (when Chris pushes his patch you'll be able to see the anaconda version in the "Fixed In Version: " field of the bug 670312.)

Thanks.
Ales

Comment 14 Eric Springer 2011-01-23 01:35:05 UTC
Package: anaconda-15.16-1.fc15
Architecture: x86_64
OS Release: Fedora release 15 (Rawhide)


How to reproduce
-----
Just launching anaconda on the most recent nightly compose

Comment 15 Eric Springer 2011-01-23 01:38:00 UTC
(In reply to comment #13)
> 
> Please try again once the anaconda with the bug 670312 fixed is released (when
> Chris pushes his patch you'll be able to see the anaconda version in the "Fixed
> In Version: " field of the bug 670312.)

I believe I'm using that version of anaconda, and still experiencing the problem. Running liveinst also gives:

[liveuser@localhost ~]$ liveinst 
Error launching program: Failed to execute child process "anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.utf8 " (No such file or directory)
rm: cannot remove `/tmp/updates': No such file or directory
rm: cannot remove `/tmp/updates.img': No such file or directory

Comment 16 Ales Kozumplik 2011-01-24 08:03:27 UTC
(In reply to comment #15)
> [liveuser@localhost ~]$ liveinst 
> Error launching program: Failed to execute child process "anaconda --liveinst
> --method=livecd:///dev/mapper/live-osimg-min --lang en_US.utf8 " (No such file
> or directory)
> rm: cannot remove `/tmp/updates': No such file or directory
> rm: cannot remove `/tmp/updates.img': No such file or directory

This must be yet something different since I don't see similar errors mentioned above. How do you compose your LiveCD image?

Comment 17 Ales Kozumplik 2011-01-24 15:02:08 UTC
Eric you are seeing an instance of bug 672022.

Comment 18 Andy Lawrence 2011-02-20 14:49:49 UTC
Package: anaconda-15.20-1.fc15
Architecture: x86_64
OS Release: Fedora release 15 (Lovelock)


How to reproduce
-----
Attempted to install 64bit Live version dated 2/19/11.  This was the "Install to Hard Drive" option.

Comment 19 Ales Kozumplik 2011-02-21 11:54:52 UTC
Andy,

can you please describe the exact steps you have taken? I am using this image in a virt machine:

http://alt.fedoraproject.org/pub/alt/nightly-composes/desktop/desktop-x86_64-20110221.00.iso

1) boot the livecd
2) login as the passwordless liveuser
3) because the desktop is broken there's no 'Install to Hard Drive' icon on the desktop. So I chose Applications->System Tools->Install to Hard Drive.
4) The installers starts up as expected, keyboard selection screen is displayed.

Comment 20 Andy Lawrence 2011-02-21 12:37:46 UTC
Ales, I basically did comment 9 without the liveinst command.  After comment 18 I booted to init 3 and ran anaconda as root. I could get to entering my root pass then anaconda would lock, no VT switch or anything so I was not able to pull any debug info.

With no luck I downloaded the Alpha test 2 net install and was able to complete the install.

Sorry, I realize that doesn't help much!

Comment 21 Ales Kozumplik 2011-02-21 12:47:16 UTC
(In reply to comment #20)
> Ales, I basically did comment 9 without the liveinst command.

Again,

this is not supposed work. It is not possible to run anaconda directly on livecd, special things need to be setup with the liveinst script (so we can manipulate all the storage hardware directly etc.)

I am going to close this as not a bug unless there is someone hitting the original problem when running the installer through the desktop shortcuts (or from the cmdline via the liveinst command).