Bug 89695 - Mailman fails to start when using service mailman start
Summary: Mailman fails to start when using service mailman start
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mailman
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John Dennis
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-04-26 00:36 UTC by Mike Chambers
Modified: 2007-04-18 16:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-04-28 14:31:19 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2003:179 0 normal SHIPPED_LIVE Mailman RPM does not properly handle package installation and upgrade. 2003-09-24 04:00:00 UTC

Description Mike Chambers 2003-04-26 00:36:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030401

Description of problem:
Upon a fresh install of Shrike, and fresh install of httpd and mailman, when
starting mailman via service mailman start, get traceback errors.

Version-Release number of selected component (if applicable):
mailman-2.1-8

How reproducible:
Always

Steps to Reproduce:
1.Install mailman
2.Install httpd
3.service mailman start
    

Actual Results:  [root@bart root]# service mailman start
Traceback (most recent call last):
  File "/var/mailman/bin/mailmanctl", line 524, in ?
    main()
  File "/var/mailman/bin/mailmanctl", line 319, in main
    check_privs()
  File "/var/mailman/bin/mailmanctl", line 274, in check_privs
    gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2]
KeyError: getgrnam(): name not found


Expected Results:  Mailman should start with no errors

Additional info:

I used to run mailman until a few months ago (no lists to run at the moment). 
But someone else got this error, so thought I would try it out to see what the
problem was.  I don't recall ever having to *start* mailman, as it just worked
after install.

Comment 1 Mike Chambers 2003-04-26 12:03:01 UTC
In /var/mailman/Mailman/mm_cfg.py file, this looks to be the part that is failing..

#    Here's where we override shipped defaults with settings #
#    suitable for the RPM package.                           #
MAILMAN_UID = pwd.getpwnam('mailman')[2]
MAILMAN_GID = grp.getgrnam('mailman')[2]

Someone posted that this is what they did to get that working..

I ran into this problem also. I believe I worked around it by setting 

MAILMAN_USER = 'mailman'
MAILMAN_GROUP = 'mailman'

in my /var/mailman/Mailman/mm_cfg.py file. (There were other values
I needed to customize in this file anyway.) The defaults in
/var/mailman/Mailman/Defaults.py should probably be changed from

MAILMAN_USER = ''
MAILMAN_GROUP = ''

to the values above.

Does this help any?

Comment 2 John Dennis 2003-04-28 14:31:19 UTC
These problems have been fixed in the current rpm, mailman-2.1.1-3

Comment 3 John Dennis 2003-05-01 18:49:04 UTC
*** Bug 90052 has been marked as a duplicate of this bug. ***

Comment 4 John Dennis 2003-09-24 19:18:40 UTC
An errata 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 the 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/RHBA-2003-179.html



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