[Bug 1386602] [NEW] Mailman web interface fails after upgrade to 2.1.18-1
Public bug reported: Upgraded mailman on Ubuntu 12.04 LTS server from v2.1.14 (I think), to 2.1.18-1 following the instructions here: http://wiki.list.org/pages/viewpage.action?pageId=17891606 Configure, make and install commands all ran OK. Web interface reports the following error with STEALTH_MODE = 0 in scripts/driver: Bug in Mailman version 2.1.18-1 We're sorry, we hit a bug! If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a description of what happened. Thanks! Traceback: Traceback (most recent call last): File "/var/lib/mailman/scripts/driver", line 85, in run_main immediate=1) File "/var/lib/mailman/Mailman/Logging/StampedLogger.py", line 52, in __init__ Logger.__init__(self, category, nofail, immediate) File "/var/lib/mailman/Mailman/Logging/Logger.py", line 50, in __init__ self.__get_f() File "/var/lib/mailman/Mailman/Logging/Logger.py", line 68, in __get_f 1) File "/usr/lib/python2.7/codecs.py", line 881, in open file = __builtin__.open(filename, mode, buffering) IOError: [Errno 13] Permission denied: '/var/lib/mailman/logs/error' Python information: Variable Value sys.version 2.7.3 (default, Feb 27 2014, 20:00:17) [GCC 4.6.3] sys.executable /usr/bin/python sys.prefix /usr sys.exec_prefix /usr sys.path /usr sys.platform linux2 Environment variables: Variable Value HTTP_COOKIE __utma=83584454.2092742145.1350180395.1396266401.1405737127.25; __utmz=83584454.1350180395.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SESS66092fc5dc377f03ded7c51bfd9b9869=dqj5gm2muqn616htqlrrb5kh96 SERVER_SOFTWARE Apache/2.2.22 (Ubuntu) SCRIPT_NAME /cgi-bin/mailman/admin SERVER_SIGNATURE <address>Apache/2.2.22 (Ubuntu) Server at anumc.org.au Port 80</address> REQUEST_METHOD GET PATH_INFO /anumc-comm SERVER_PROTOCOL HTTP/1.1 QUERY_STRING HTTP_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0 HTTP_CONNECTION keep-alive SERVER_NAME anumc.org.au REMOTE_ADDR 122.49.203.186 PATH_TRANSLATED redirect:/index.php SERVER_PORT 80 SERVER_ADDR 106.187.102.76 DOCUMENT_ROOT /web/anumc/drupal5/base PYTHONPATH /var/lib/mailman SCRIPT_FILENAME /usr/lib/cgi-bin/mailman/admin SERVER_ADMIN webmaster@localhost SCRIPT_URI http://anumc.org.au/cgi-bin/mailman/admin/anumc-comm HTTP_HOST anumc.org.au SCRIPT_URL /cgi-bin/mailman/admin/anumc-comm HTTP_CACHE_CONTROL max-age=0 REQUEST_URI /cgi-bin/mailman/admin/anumc-comm HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 GATEWAY_INTERFACE CGI/1.1 REMOTE_PORT 49687 HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5 HTTP_ACCEPT_ENCODING gzip, deflate ** Affects: mailman Importance: Undecided Status: New -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1386602 Title: Mailman web interface fails after upgrade to 2.1.18-1 To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1386602/+subscriptions
Rolled back to 2.1.14 using apt-get install --reinstall mailman to get a working mailman instance back. -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1386602 Title: Mailman web interface fails after upgrade to 2.1.18-1 To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1386602/+subscriptions
This is a permissions error. Your web server does not have permission to create or write /var/lib/mailman/logs/error. Mailman's bin/check_perms -f run as root should fix this. In any case, the /usr/lib/cgi-bin/mailman/admin wrapper and all the others in that directory should be in Mailman's group ('list on Ubuntu) and be SETGID with permissions like -rwxr-sr-x, and the directory /var/lib/mailman and its subordinates should all be group 'list' and have permissions drwxrwsr-x. ** Changed in: mailman Status: New => Invalid ** Changed in: mailman Assignee: (unassigned) => Mark Sapiro (msapiro) -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1386602 Title: Mailman web interface fails after upgrade to 2.1.18-1 To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1386602/+subscriptions
In addition to my comment #2 above, see the last part of the FAQ you reference at http://wiki.list.org/pages/viewpage.action?pageId=17891606 about the missing SETGID bits and the check.py script to fix that. This is almost certainly what caused the problem you encountered. -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1386602 Title: Mailman web interface fails after upgrade to 2.1.18-1 To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1386602/+subscriptions
OK, as always, thanks for the advice and prompt response Mark. Very much appreciate it. -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1386602 Title: Mailman web interface fails after upgrade to 2.1.18-1 To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1386602/+subscriptions
participants (2)
-
Mark Sapiro
-
Nic Fox