Bug 48020 - Traceback: AttributeError: 'module' object has no attribute 'mailinglist_name'
Traceback: AttributeError: 'module' object has no attribute 'mailinglist_name'
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-2-errata
Assigned To: Daniel Tröder
Dirk Wiesenthal
:
Depends on:
Blocks: 48026
  Show dependency treegraph
 
Reported: 2018-10-19 09:59 CEST by Nico Gulden
Modified: 2018-10-19 15:48 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.137
Enterprise Customer affected?:
School Customer affected?:
ISV affected?: Yes
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Appliance
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Gulden univentionstaff 2018-10-19 09:59:00 CEST
With commit d52919fb7c0 a separate syntax class for mailing list names has been introduced in the context to solve Bug #47861.

This leads to the following traceback in the listener.log: https://pastebin.knut.univention.de/pP4GNmjN#listener.log

Multifile: /etc/ldap/slapd.conf
Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/ldap_extension.py", line 97, in postrun
    handler_object.mark_active()
  File "/usr/lib/pymodules/python2.7/univention/lib/ldap_extension.py", line 354, in mark_active
    udm_modules.update()
  File "/usr/lib/pymodules/python2.7/univention/admin/modules.py", line 93, in update
    os.path.walk(dir, _walk, p)
  File "/usr/lib/python2.7/posixpath.py", line 239, in walk
    walk(name, func, arg)
  File "/usr/lib/python2.7/posixpath.py", line 231, in walk
    func(arg, top, names)
  File "/usr/lib/pymodules/python2.7/univention/admin/modules.py", line 78, in _walk
    m = __import__(mod, globals(), locals(), name)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/mail/lists.py", line 60, in <module>
    syntax=univention.admin.syntax.mailinglist_name,
AttributeError: 'module' object has no attribute 'mailinglist_name'

The traceback occured during an automatic app appliance test for the master mode with the ONLYOFFICE + Nextcloud Appliance and was caused during the installation of Nextcloud. The result is a missing Nextcloud. The traceback could be reproduced with a manual setup of this appliance. 

UCS version is UCS: 4.3-2 errata285
Comment 1 Nico Gulden univentionstaff 2018-10-19 10:41:46 CEST
Just checked a usual UCS appliance, updated to errata 285 and installed Nextcloud and ownCloud. Both installations were successful. Therefore, only the app appliances seem to be affected.

I'll test the ownCloud and Nextcloud appliance, as well and let them update to the latest errata before the apps are installed..
Comment 2 Daniel Tröder univentionstaff 2018-10-19 12:29:33 CEST
A running Python process does not reload a modified syntax.py.
→ The (re)loading of syntax classes has been modified to also reload syntax.py.
→ The syntax class for mailing list names was moved to a separate module.

[4.3-2] 1faba855d5 Bug #47861: reload syntax.py itself, move syntax class to separate module
[4.3-2] 2957402d2a Bug #47861: advisory

univention-directory-manager-modules 13.0.25-5
Comment 3 Nico Gulden univentionstaff 2018-10-19 14:04:02 CEST
A new build of the appliance this morning did not show the error anymore. I assume that the update to the errata update after the appliance setup cause somehow the problem. The new build already includes the errata update and this allows Nextcloud to be installed successfully.

Therefore, no issue anymore for the recent build.

Nevertheless, the problem should be fixed, which is already on the way.

Thanks for the quick response, Daniel.
Comment 4 Dirk Wiesenthal univentionstaff 2018-10-19 14:47:09 CEST
Ok, works
Comment 5 Philipp Hahn univentionstaff 2018-10-19 15:22:58 CEST
<http://errata.software-univention.de/ucs/4.3/286.html>