Bug 17928

Summary: Teach RPM to pass exceptions up to anaconda
Product: [Retired] Red Hat Linux Reporter: Norby <norby>
Component: anacondaAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: jbj
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-03-20 17:55:40 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:
Description Flags
Anacdump.txt none

Description Norby 2000-09-30 02:49:48 UTC
Custom Install, formatted root filesystem.  Only filesystem is / on hda5

Traceback (innermost last):
  File "/var/tmp/anaconda-7.0.1//usr/lib/anaconda/iw/progress_gui.py", 
line 20, in run
    rc = self.todo.doInstall ()
  File "/var/tmp/anaconda-7.0.1//usr/lib/anaconda/todo.py", line 1632, in 
doInstall
    self.writeConfiguration ()
  File "/var/tmp/anaconda-7.0.1//usr/lib/anaconda/todo.py", line 1383, in 
writeConfiguration
    self.writeRootPassword ()
  File "/var/tmp/anaconda-7.0.1//usr/lib/anaconda/todo.py", line 660, in 
writeRootPassword
    self.setPassword("root", pure)
  File "/var/tmp/anaconda-7.0.1//usr/lib/anaconda/todo.py", line 1151, in 
setPassword
    stdin = p[0], stdout = devnull)
  File "/var/tmp/anaconda-7.0.1//usr/lib/anaconda/iutil.py", line 40, in 
execWithRedirect
    raise RuntimeError, command + " can not be run"
RuntimeError: /usr/bin/passwd can not be run

Local variables in innermost frame:
argv: ['/usr/bin/passwd', '--stdin', 'root']
root: /mnt/sysimage
stdin: 22
newPgrp: 0
stdout: 21
stderr: 2
command: /usr/bin/passwd
searchPath: 0
ignoreTermSigs: 0

ToDo object:
(itodo
ToDo
p1
(dp2
S'method'
p3
(iimage
CdromInstallMethod
p4
(dp5
S'progressWindow'
p6

<failed>

Comment 1 Norby 2000-09-30 02:51:16 UTC
Created attachment 3574 [details]
Anacdump.txt

Comment 2 Michael Fulbright 2000-10-02 22:47:22 UTC
Did you happen to not install the passwd package? It is needed.

Comment 3 Norby 2000-10-03 15:45:57 UTC
I did not choose to select individual packages, so I guess the question 
is, "Does the installer install the passwd package by default?"

But seriously, at the point the installer dies, /usr/bin is still the install 
image, isn't it?  If the passwd package is installed, isn't it located in the 
destination mount point?

Comment 4 Norby 2000-10-03 15:48:01 UTC
>Local variables in innermost frame:
>argv: ['/usr/bin/passwd', '--stdin', 'root']
>root: /mnt/sysimage
>stdin: 22
>newPgrp: 0
>stdout: 21
>stderr: 2
>command: /usr/bin/passwd

There is no passwd at /usr/bin at this stage - and if passwd is installed, 
possibly it is at /mnt/sysimage/usr/bin?

Comment 5 Michael Fulbright 2000-10-03 19:32:10 UTC
Related to bug 18201.

Comment 6 Michael Fulbright 2000-10-03 22:11:11 UTC
Yes it should be running /mnt/sysimage/usr/bin/passwd.

Could you try the install again, using the same options, and watch to see if
passwd gets installed, and when the installation of packages is almost complete,
go to virtual console 2 and look in /mnt/sysimage/usr/bin to see if the passwd
binary exists.

Be sure to 'cd  /' when you are done so the installer can umount all mounts
cleanly when it is done.

Comment 7 Norby 2000-10-04 02:12:37 UTC
No, passwd does not get installed.  And I think I've found the problem.

At the error screen, the install pauses.  On console 2, I ran 
rpm -q -p passwd-0.64.1-4.i386.rpm from /mnt/source/RedHat/RPMS.  rpm said that 
package did not appear to be a valid RPM.  So I tried rpm -q -p * and found 
that a lot of the RPMs in there are corrupt.  Including packages like the XFree 
fonts and other handy things.

I had downloaded the ISO from several sites simultaneously with GetRight.  I 
had no problems using this method to get 6.1, so either GetRight screwed up 
(this is a newer version than I used before), there was some kind of transfer 
error on one of the segments that GetRight didn't catch, or there is different 
versions of ISO's on the mirrors.

In either case, NotABug, corrupt CD image.

Maybe I'll just break down and buy the thing! :)

Thanks.

Comment 8 Norby 2000-10-04 02:15:40 UTC
A couple of thoughts:

It might be handy in the future to have the install process be able to tell 
whether or not an RPM is corrupt, rather than just have it skip it altogether.

Your related 18201 sounds like the same thing.

Thanks again!  Sorry to waste your time, you appear busy.

Comment 9 Michael Fulbright 2000-10-04 16:32:37 UTC
We will try to address this in the future by trapping the RPM error - the
current behavior is inadequate.

Sorry for the trouble.

Comment 10 Michael Fulbright 2000-10-04 16:51:09 UTC
*** Bug 17480 has been marked as a duplicate of this bug. ***

Comment 11 Michael Fulbright 2000-10-04 18:25:28 UTC
*** Bug 1569 has been marked as a duplicate of this bug. ***

Comment 12 Michael Fulbright 2000-10-06 19:59:42 UTC
*** Bug 18550 has been marked as a duplicate of this bug. ***

Comment 13 Michael Fulbright 2000-10-31 16:05:58 UTC
*** Bug 20084 has been marked as a duplicate of this bug. ***

Comment 14 Michael Fulbright 2000-11-07 15:27:22 UTC
*** Bug 20339 has been marked as a duplicate of this bug. ***

Comment 15 Michael Fulbright 2000-11-13 19:15:27 UTC
*** Bug 20728 has been marked as a duplicate of this bug. ***

Comment 16 Michael Fulbright 2000-11-13 19:18:21 UTC
*** Bug 20723 has been marked as a duplicate of this bug. ***

Comment 17 Michael Fulbright 2001-01-09 16:32:22 UTC
*** Bug 23583 has been marked as a duplicate of this bug. ***

Comment 18 Michael Fulbright 2001-01-11 16:57:42 UTC
*** Bug 23755 has been marked as a duplicate of this bug. ***

Comment 19 Michael Fulbright 2001-01-16 00:40:40 UTC
*** Bug 23964 has been marked as a duplicate of this bug. ***

Comment 20 Michael Fulbright 2001-01-16 00:44:26 UTC
*** Bug 23901 has been marked as a duplicate of this bug. ***

Comment 21 Michael Fulbright 2001-01-25 22:35:13 UTC
*** Bug 24926 has been marked as a duplicate of this bug. ***

Comment 22 Brent Fox 2001-04-20 03:49:18 UTC
*** Bug 34173 has been marked as a duplicate of this bug. ***

Comment 23 Brent Fox 2001-09-07 16:12:10 UTC
*** Bug 53365 has been marked as a duplicate of this bug. ***

Comment 24 Michael Fulbright 2001-09-18 16:41:19 UTC
*** Bug 27390 has been marked as a duplicate of this bug. ***

Comment 25 Jeremy Katz 2002-03-20 17:55:36 UTC
RPM error trapped

Comment 26 Jeremy Katz 2002-04-10 04:39:08 UTC
Verified