Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 494290

Summary: spacewalk-proxy-installer: KeyError: 'getpwnam(): name not found: apache'
Product: Red Hat Satellite Proxy 5 Reporter: Michael Mráka <mmraka>
Component: InstallerAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Mráka <mmraka>
Severity: low Docs Contact:
Priority: low    
Version: 530CC: jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sat530 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-10 14:38:20 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:
Bug Depends On:    
Bug Blocks: 456999, 486216    

Description Michael Mráka 2009-04-06 08:27:29 UTC
Description of problem:
configure-proxy.sh fails with traceback.


Version-Release number of selected component (if applicable):
RHN-Proxy-5.3.0-RHEL4-re20090403.2
spacewalk-proxy-installer-0.5.25-1.el4sat

How reproducible:
all archs

Steps to Reproduce:
1. /usr/sbin/configure-proxy.sh --answer-file=proxy-answer.txt --non-interactive
2.
3.
  
Actual results:
Proxy version to activate [5.3]: 5.3
RHN Parent [xmlrpc.rhn.webqa.redhat.com]: 
Traceback email [michael.mraka]: michael.mraka
Use SSL [Y]: Y
CA Chain [/usr/share/rhn/RHNS-CA-CERT]: /usr/share/rhn/RHNS-CA-CERT
HTTP Proxy []: 
Regardless of whether you enabled SSL for the connection to the Spacewalk Parent
Server, you will be prompted to generate an SSL certificate.
This SSL certificate will allow client systems to connect to this Spacewalk Proxy
securely. Refer to the Spacewalk Proxy Installation Guide for more information.
Organization [Red Hat]: Red Hat
Organization Unit [RHN Satellite]: RHN Satellite
Common Name [hp-dl560-01.rhts.bos.redhat.com]: hp-dl560-01.rhts.bos.redhat.com
City [Brno]: Brno
State [CZ]: CZ
Country code [CZ]: CZ
Email [michael.mraka]: michael.mraka

ERROR: unhandled exception occurred:
Traceback (most recent call last):
  File "/usr/bin/rhn-proxy-activate", line 41, in ?
    sys.exit(mod.main() or 0)
  File "/usr/share/rhn/installer/rhn_proxy_activate.py", line 527, in main
    chmod_chown_systemid()
  File "/usr/share/rhn/installer/rhn_proxy_activate.py", line 101, in chmod_chown_systemid
    apacheGID = pwd.getpwnam('apache')[3]
KeyError: 'getpwnam(): name not found: apache'
Proxy activation failed! Installation interrupted.

ERROR: unhandled exception occurred:
Traceback (most recent call last):
  File "/usr/bin/rhn-proxy-activate", line 41, in ?
    sys.exit(mod.main() or 0)
  File "/usr/share/rhn/installer/rhn_proxy_activate.py", line 527, in main
    chmod_chown_systemid()
  File "/usr/share/rhn/installer/rhn_proxy_activate.py", line 101, in chmod_chown_systemid
    apacheGID = pwd.getpwnam('apache')[3]
KeyError: 'getpwnam(): name not found: apache'

Expected results:
installation succeeds

Additional info:

Comment 1 Miroslav Suchý 2009-04-09 16:42:31 UTC
Commited as 779a210cfaf3220f463b8cbaa33991b1b8765bcf
and b952778145c0b1dbe07f30102b69afb1d103c396
Fixed in spacewalk-proxy-installer-0.6.2-1

Comment 3 Michael Mráka 2009-04-29 15:12:30 UTC
Verified. 
RHN-Tools-5.3.0-RHEL5-re20090424.1

Passed /CoreOS/RHN-Satellite/Installer/Sanity/spacewalk-proxy-installer/Install-proxy in RHTS.
https://rhts.redhat.com/cgi-bin/rhts/jobs.cgi?id=56510

Comment 4 Jan Pazdziora (Red Hat) 2009-09-09 06:40:32 UTC
Stage validated with Satellite 5.3.0 Gold and RHN Proxy Gold, installing the Proxy both on RHEL 4 and RHEL 5. Moving to RELEASE_PENDING.

Comment 5 Brandon Perkins 2009-09-10 14:38:20 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1433.html