Update to UCS 4.4 Erratum 348: No module name mailquota

Hi,

after updating to UCS 4.4 Erratum 348 there are errors in several UMC modules. The following output is from the UVMM module:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/protocol/modserver.py", line 103, in _load_module
    self.__module = __import__(file_, [], [], modname)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/uvmm/__init__.py", line 45, in <module>
    from univention.management.console.modules.uvmm.profiles import Profiles
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/uvmm/profiles.py", line 46, in <module>
    univention.admin.modules.update()
  File "/usr/lib/python2.7/dist-packages/univention/admin/modules.py", line 123, 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/python2.7/dist-packages/univention/admin/modules.py", line 108, in _walk
    m = __import__(mod, globals(), locals(), name)
ImportError: No module named mailquota

Cheers,
SirTux

EDIT: the S4-connector and maybe other services are also affected.

How did you update your server? Via UMC or command line? Was your UMC-Server process restarted after the updates were applied?

I’ve updated via univention-upgrade and I’ve rebooted the system afterwards.

Thanks, the mailquota module was part of univention-mail-cyrus, which was removed in UCS 4.3-0. Lets find out if there are remnants from that package on your system. Could you do a ls -l /usr/lib/pymodules/python2.7/univention/admin/handlers/policies/ to see if there are any dangling symlinks?

We are trying to reproduce your issue in our office right now.

1 Like
# ls -l /usr/lib/pymodules/python2.7/univention/admin/handlers/policies/
insgesamt 32
lrwxrwxrwx 1 root root      66 Nov 13 16:49 __init__.py -> /usr/share/pyshared/univention/admin/handlers/policies/__init__.py
-rw-r--r-- 1 root root     813 Nov 13 16:49 __init__.pyc
-rw-r--r-- 1 root nogroup  813 Mai 22 21:33 __init__.pyo
lrwxrwxrwx 1 root nogroup   67 Nov 29  2015 mailquota.py -> /usr/share/pyshared/univention/admin/handlers/policies/mailquota.py
-rw-r--r-- 1 root nogroup 5712 Nov 29  2015 mailquota.pyc
-rw-r--r-- 1 root nogroup 5712 Nov 29  2015 mailquota.pyo

EDIT: The output is the same on other system there cyrus was never installed

It works again after renaming the link:

mv /usr/lib/pymodules/python2.7/univention/admin/handlers/policies/mailquota.py /usr/lib/pymodules/python2.7/univention/admin/handlers/policies/mailquota.py.bak

We are preparing an update at this bug: https://forge.univention.org/bugzilla/show_bug.cgi?id=50493
Thank you very much for your timely report and helping us to find the issue.

1 Like

UCS 4.4-2 Erratum 349 has been released: http://errata.software-univention.de/ucs/4.4/349.html

1 Like

Many thanks for the fast fix, this issue seems to be solved :slight_smile:

Mastodon