An update mailman to mailman-2.1.9-8.el5_11 causes Traceback at __getattr__
Environment
- Red Hat Enterprise Linux 5
- mailman-2.1.9-8.el5_11
- The environment which uses upstream mailman before then migrate to the mailman package in RHEL5
Issue
-
An update mailman to mailman-2.1.9-8.el5_11 causes Traceback at getattr
Sample output is
[----- Mailman Version: 2.1.9 -----] [----- Traceback ------] Traceback (most recent call last): File "/usr/lib/mailman/scripts/driver", line 101, in run_main main() File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 197, in main show_results(mlist, doc, category, subcat, cgidata) File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 521, in show_results form.AddItem(show_variables(mlist, category, subcat, cgidata, doc)) File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 570, in show_variables add_options_table_item(mlist, category, subcat, table, item) File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 585, in add_options_table_item val = get_item_gui_value(mlist, category, kind, varname, params, extra) File "/usr/lib/mailman/Mailman/Cgi/admin.py", line 624, in get_item_gui_value value = getattr(mlist, varname) File "/usr/lib/mailman/Mailman/MailList.py", line 146, in __getattr__ raise AttributeError, name AttributeError: from_is_list -
This issue was fixed when the mailman package downgrade to old one.
Resolution
- This is migration issue. Because some of the parameters are not implemented in mailman package provided in RHEL5. The following script might fix this issue.
Root Cause
Red Hat's mailman does not contain "regular_exclude_lists" and "regular_include_lists" keys in config.pak of the broken mailing list.
These keys have been introduced by Mailman upstream as part of this modification and we never had them in RHEL5. The broken mailing lists must have been created by newer Mailman version than the one we have in RHEL5. This is causing the problems during the update.
During the latest update, we had to add new fields into config.pck files. To do that, we had to increase the data_version from 96 to 97 so Mailman would do the config.pck files update.
The problem is that for Mailing lists created by newer Mailman, the data_version has been set to 97 already and therefore these mailing list have not been updated.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
