cannot use bin/newlist to create a new list from the command line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Systers-mailman |
Confirmed
|
Undecided
|
Jennifer Redman |
Bug Description
After pulling and installing the systers stable branch, I created a new list from the command line with bin/newlist but if you try to subscribe to a list created via the command line it throws an error (logs attached).
http://
[Note: if you login via the admin interface you can see the email id is stored in the members DB. But it does not accept the Name of the subscriber, nor does it email them a subscription confirmation message].
From the error logs (see below) we can see that /usr/local/
admin(32655): File "/usr/local/
149, in __getattr__
admin(32655): raise AttributeError, name
admin(32655): AttributeError: fullname_required
....and MailList.py imposes a specific name resolution order::
def __getattr__(self, name):
# Because we're using delegation, we want to be sure that attribute
# access to a delegated member function gets passed to the
# sub-objects. This of course imposes a specific name resolution
# order.
try:
return getattr(
except AttributeError:
for guicomponent in self._gui:
else:
Currently, lists can be *only* created using the CGI, which is the list "testing", http://
To create a list via the command line, the Mailman developers suggested to either use bin/withlist to define a fullname_required attribute for these lists or replace the patched module(s) with unpatched ones.
ERROR LOGS
============
Error message when you try to subscribe: Bug in Mailman version 2.1.10
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.
</error message>
The /usr/local/
svaksha@
May 20 21:33:19 2010 (20367) No such list "systers-admin":
May 25 21:23:57 2010 mailmanctl(22168): Site list is missing: dev.systers.org
May 25 21:23:57 2010 (22168) Site list is missing: dev.systers.org
May 25 21:25:09 2010 mailmanctl(25721): Site list is missing: dev.systers.org
May 25 21:25:09 2010 (25721) Site list is missing: dev.systers.org
May 29 19:53:55 2010 mailmanctl(24505): Site list is missing: systers-admin
May 29 19:53:55 2010 (24505) Site list is missing: systers-admin
May 29 19:57:17 2010 mailmanctl(30218): Site list is missing: systers-admin
May 29 19:57:17 2010 (30218) Site list is missing: systers-admin
May 29 20:13:16 2010 admin(28655): @@@@@@@
admin(28655): [----- Mailman Version: 2.1.10 -----]
admin(28655): [----- Traceback ------]
admin(28655): Traceback (most recent call last):
admin(28655): File "/usr/local/
admin(28655): main()
admin(28655): File "/usr/local/
line 95, in main
admin(28655): process_form(mlist, doc, cgidata, language)
admin(28655): File "/usr/local/
line 124, in process_form
admin(28655): if mlist.fullname_
admin(28655): File "/usr/local/
149, in __getattr__
admin(28655): raise AttributeError, name
admin(28655): AttributeError: fullname_required
admin(28655): [----- Python Information -----]
admin(28655): sys.version = 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
admin(28655): sys.executable = /usr/bin/python
admin(28655): sys.prefix = /usr
admin(28655): sys.exec_prefix = /usr
admin(28655): sys.path = /usr
admin(28655): sys.platform = linux2
admin(28655): [----- Environment Variables -----]
admin(28655): HTTP_REFERER:
http://
admin(28655): SERVER_SOFTWARE: Apache/2.2.8 (Ubuntu)
admin(28655): SCRIPT_NAME: /mailman/subscribe
admin(28655): SERVER_SIGNATURE: <address>
at dev.systers.org Port 80</address>
admin(28655):
admin(28655): REQUEST_METHOD: POST
admin(28655): HTTP_KEEP_ALIVE: 300
admin(28655): SERVER_PROTOCOL: HTTP/1.1
admin(28655): QUERY_STRING:
admin(28655): CONTENT_LENGTH: 111
admin(28655): HTTP_ACCEPT_
admin(28655): HTTP_USER_AGENT: Mozilla/5.0 (X11; U; Linux x86_64;
en-US; rv:1.9.0.19) Gecko/2010040200 Ubuntu/8.04 (hardy)
Firefox/3.0.19
admin(28655): HTTP_CONNECTION: keep-alive
admin(28655): SERVER_NAME: dev.systers.org
admin(28655): REMOTE_ADDR: 95.XX.XX.XX
admin(28655): PATH_TRANSLATED: /var/www/
admin(28655): SERVER_PORT: 80
admin(28655): SERVER_ADDR: 69.XX.XX.XX
admin(28655): DOCUMENT_ROOT: /var/www/
admin(28655): PYTHONPATH: /usr/local/mailman
admin(28655): SCRIPT_FILENAME: /usr/local/
admin(28655): SERVER_ADMIN: webmaster@localhost
admin(28655): HTTP_HOST: dev.systers.org
admin(28655): REQUEST_URI: /mailman/
admin(28655): HTTP_ACCEPT:
text/html,
admin(28655): GATEWAY_INTERFACE: CGI/1.1
admin(28655): REMOTE_PORT: 38090
admin(28655): HTTP_ACCEPT_
admin(28655): CONTENT_TYPE: application/
admin(28655): HTTP_ACCEPT_
admin(28655): PATH_INFO: /systers-admin
May 29 20:15:19 2010 admin(32655): @@@@@@@
admin(32655): [----- Mailman Version: 2.1.10 -----]
admin(32655): [----- Traceback ------]
admin(32655): Traceback (most recent call last):
admin(32655): File "/usr/local/
admin(32655): main()
admin(32655): File "/usr/local/
line 95, in main
admin(32655): process_form(mlist, doc, cgidata, language)
admin(32655): File "/usr/local/
line 124, in process_form
admin(32655): if mlist.fullname_
admin(32655): File "/usr/local/
149, in __getattr__
admin(32655): raise AttributeError, name
admin(32655): AttributeError: fullname_required
admin(32655): [----- Python Information -----]
admin(32655): sys.version = 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
admin(32655): sys.executable = /usr/bin/python
admin(32655): sys.prefix = /usr
admin(32655): sys.exec_prefix = /usr
admin(32655): sys.path = /usr
admin(32655): sys.platform = linux2
admin(32655): [----- Environment Variables -----]
admin(32655): HTTP_REFERER:
http://
admin(32655): SERVER_SOFTWARE: Apache/2.2.8 (Ubuntu)
admin(32655): SCRIPT_NAME: /mailman/subscribe
admin(32655): SERVER_SIGNATURE: <address>
at dev.systers.org Port 80</address>
admin(32655):
admin(32655): REQUEST_METHOD: POST
admin(32655): HTTP_KEEP_ALIVE: 300
admin(32655): SERVER_PROTOCOL: HTTP/1.1
admin(32655): QUERY_STRING:
admin(32655): CONTENT_LENGTH: 111
admin(32655): HTTP_ACCEPT_
admin(32655): HTTP_USER_AGENT: Mozilla/5.0 (X11; U; Linux x86_64;
en-US; rv:1.9.0.19) Gecko/2010040200 Ubuntu/8.04 (hardy)
Firefox/3.0.19
admin(32655): HTTP_CONNECTION: keep-alive
admin(32655): SERVER_NAME: dev.systers.org
admin(32655): REMOTE_ADDR: 95.XX.XX.XX
admin(32655): PATH_TRANSLATED: /var/www/
admin(32655): SERVER_PORT: 80
admin(32655): SERVER_ADDR: 69.XX.XX.XX
admin(32655): DOCUMENT_ROOT: /var/www/
admin(32655): PYTHONPATH: /usr/local/mailman
admin(32655): SCRIPT_FILENAME: /usr/local/
admin(32655): SERVER_ADMIN: webmaster@localhost
admin(32655): HTTP_HOST: dev.systers.org
admin(32655): REQUEST_URI: /mailman/
admin(32655): HTTP_ACCEPT:
text/html,
admin(32655): GATEWAY_INTERFACE: CGI/1.1
admin(32655): REMOTE_PORT: 38091
admin(32655): HTTP_ACCEPT_
admin(32655): CONTENT_TYPE: application/
admin(32655): HTTP_ACCEPT_
admin(32655): PATH_INFO: /systers-admin
May 29 20:17:15 2010 admin(3239): @@@@@@@
admin(3239): [----- Mailman Version: 2.1.10 -----]
admin(3239): [----- Traceback ------]
admin(3239): Traceback (most recent call last):
admin(3239): File "/usr/local/
admin(3239): main()
admin(3239): File "/usr/local/
line 95, in main
admin(3239): process_form(mlist, doc, cgidata, language)
admin(3239): File "/usr/local/
line 124, in process_form
admin(3239): if mlist.fullname_
admin(3239): File "/usr/local/
149, in __getattr__
admin(3239): raise AttributeError, name
admin(3239): AttributeError: fullname_required
admin(3239): [----- Python Information -----]
admin(3239): sys.version = 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]
admin(3239): sys.executable = /usr/bin/python
admin(3239): sys.prefix = /usr
admin(3239): sys.exec_prefix = /usr
admin(3239): sys.path = /usr
admin(3239): sys.platform = linux2
admin(3239): [----- Environment Variables -----]
admin(3239): HTTP_REFERER:
http://
admin(3239): SERVER_SOFTWARE: Apache/2.2.8 (Ubuntu)
admin(3239): SCRIPT_NAME: /mailman/subscribe
admin(3239): SERVER_SIGNATURE: <address>
at dev.systers.org Port 80</address>
admin(3239):
admin(3239): REQUEST_METHOD: POST
admin(3239): HTTP_KEEP_ALIVE: 300
admin(3239): SERVER_PROTOCOL: HTTP/1.1
admin(3239): QUERY_STRING:
admin(3239): CONTENT_LENGTH: 126
admin(3239): HTTP_ACCEPT_
admin(3239): HTTP_USER_AGENT: Mozilla/5.0 (X11; U; Linux x86_64;
en-US; rv:1.9.0.19) Gecko/2010040200 Ubuntu/8.04 (hardy)
Firefox/3.0.19
admin(3239): HTTP_CONNECTION: keep-alive
admin(3239): SERVER_NAME: dev.systers.org
admin(3239): REMOTE_ADDR: 95.XX.XX.XX
admin(3239): PATH_TRANSLATED: /var/www/
admin(3239): SERVER_PORT: 80
admin(3239): SERVER_ADDR: 69.XX.XX.XX
admin(3239): DOCUMENT_ROOT: /var/www/
admin(3239): PYTHONPATH: /usr/local/mailman
admin(3239): SCRIPT_FILENAME: /usr/local/
admin(3239): SERVER_ADMIN: webmaster@localhost
admin(3239): HTTP_HOST: dev.systers.org
admin(3239): REQUEST_URI: /mailman/
admin(3239): HTTP_ACCEPT:
text/html,
admin(3239): GATEWAY_INTERFACE: CGI/1.1
admin(3239): REMOTE_PORT: 38092
admin(3239): HTTP_ACCEPT_
admin(3239): CONTENT_TYPE: application/
admin(3239): HTTP_ACCEPT_
admin(3239): PATH_INFO: /systers-admin
</error log>
Changed in systers: | |
assignee: | nobody → Anna (anna-granudd) |
description: | updated |
Changed in systers: | |
assignee: | Anna (anna-granudd) → Jennifer Redman (jenred) |
Changed in systers: | |
status: | New → Confirmed |
I'm not quite sure why I'm assigned to this bug as I'm working with Mailman 3.0 for the new UI.
When we create a new list with the Systers' code a number of attributes are set that were not present in the original Mailman code. These include, among others, fullname required, dlist enabled and essay enabled.
The script to create a new list is from Mailman and probably hasn't been updated for a while (if at all) by us, hence the bug. I always used the UI to create and modify lists so I never thought of updating the script, in fact I never reflected there might even be one even though it of course makes sense to have one (for testing purposes etc.).