Bug in Mailman version 2.1.12

Bug #397866 reported by Daniel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Incomplete
Undecided
Unassigned
cherokee
New
Undecided
Unassigned

Bug Description

Hello,

because this is my first bug report on launchpad i want to introduce myself:
My name is Daniel, located in germany.

I'm running Cherokee webserver on Ubuntu Linux 9.04 and getting this error page:
---
Bug in Mailman version 2.1.12

We're sorry, we hit a bug!

Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs.
---

Please tell me where to find the error logs, so i can post them here.

Revision history for this message
Daniel (dlenz-lenzcom) wrote :
Revision history for this message
Mark Sapiro (msapiro) wrote :

The Mailman logs could be anywhere. The default location if you installed from source is /usr/local/mailman/logs/. Try "locate mailman" to find your Mailman installation. Please post the complete error information from Mailman's error log. Without that, we don't have a clue.

Revision history for this message
Daniel (dlenz-lenzcom) wrote :

okay. i'll post it on monday.

Revision history for this message
Shyam (shyam-kukreja) wrote :
Download full text (3.2 KiB)

Hi Team,

I have configured mailman (Mailman Version: 2.1.12) on Redhat 6 and facing the same issue when i create a new mailing-list through web-portal.

Kindly find the logs here:

======================

Jun 27 23:15:16 2012 admin(13925): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
admin(13925): [----- Mailman Version: 2.1.12 -----]
admin(13925): [----- Traceback ------]
admin(13925): Traceback (most recent call last):
admin(13925): File "/usr/lib/mailman/scripts/driver", line 112, in run_main
admin(13925): main()
admin(13925): File "/usr/lib/mailman/Mailman/Cgi/create.py", line 56, in main
admin(13925): process_request(doc, cgidata)
admin(13925): File "/usr/lib/mailman/Mailman/Cgi/create.py", line 238, in process_request
admin(13925): sys.modules[modname].create(mlist, cgi=1)
admin(13925): File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 232, in create
admin(13925): _update_maps()
admin(13925): File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 53, in _update_maps
admin(13925): raise RuntimeError, msg % (acmd, status, errstr)
admin(13925): RuntimeError: command failed: /usr/sbin/postalias /etc/mailman/aliases (status: 1, Operation not permitted)
admin(13925): [----- Python Information -----]
admin(13925): sys.version = 2.6.5 (r265:79063, Jul 14 2010, 11:36:05)
[GCC 4.4.4 20100630 (Red Hat 4.4.4-10)]
admin(13925): sys.executable = /usr/bin/python
admin(13925): sys.prefix = /usr
admin(13925): sys.exec_prefix = /usr
admin(13925): sys.path = /usr
admin(13925): sys.platform = linux2
admin(13925): [----- Environment Variables -----]
admin(13925): HTTP_COOKIE: mailman+admin=2802000000692017ea4f732800000037386230613036666266363065303835373230666330653537376638626538646564363535353636
admin(13925): SERVER_SOFTWARE: Apache/2.2.15 (Red Hat)
admin(13925): SCRIPT_NAME: /mailman/create
admin(13925): SERVER_SIGNATURE: <address>Apache/2.2.15 (Red Hat) Server at 172.20.227.222 Port 80</address>
admin(13925):
admin(13925): REQUEST_METHOD: POST
admin(13925): SERVER_PROTOCOL: HTTP/1.1
admin(13925): QUERY_STRING:
admin(13925): CONTENT_LENGTH: 155
admin(13925): HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
admin(13925): HTTP_CONNECTION: Keep-Alive
admin(13925): HTTP_REFERER: http://(private ip)/mailman/create
admin(13925): SERVER_NAME: (private ip)
admin(13925): REMOTE_ADDR: (private ip)
admin(13925): SERVER_PORT: 80
admin(13925): SERVER_ADDR: (private ip)
admin(13925): DOCUMENT_ROOT: /var/www/html
admin(13925): PYTHONPATH: /usr/lib/mailman
admin(13925): SCRIPT_FILENAME: /usr/lib/mailman/cgi-bin/create
admin(13925): SERVER_ADMIN: <email address hidden>
admin(13925): HTTP_HOST: (private ip)
admin(13925): HTTP_CACHE_CONTROL: no-cache
admin(13925): REQUEST_URI: /mailman/create

===========================================

" RuntimeError: command failed: /usr/sbin/postalias /etc/mailman/aliases (status: 1, Operation not permitted)"
in the logs seems to be the culprit but need you...

Read more...

Revision history for this message
Mark Sapiro (msapiro) wrote :

The issue in comment #4 could be due to several things.

The /usr/lib/mailman/cgi-bin/create wrapper should be Mailman's group and SETGID. Is this true? If so, the process runs as the web server user with the Mailman group as it's effective group, and this process can't do "/usr/sbin/postalias /etc/mailman/aliases". This could be a permissions issue or a SELinux issue.

Can you run the command manually as the Mailman user?

Also, please see the FAQ at <http://wiki.list.org/x/OIDD>.

Changed in mailman:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.