Univention OX join script | object has no attribute 'ox_mail_folder_name'

Hi all!

After updating my OX-Server to the latest version I am not able to run the ‘65univention-ox’ join script. The error is as follows:

univention-join-hooks: looking for hook type “join/pre-joinscripts” on ox.palmfriendly.at
Traceback (most recent call last):
File “/usr/share/univention-join/univention-join-hooks”, line 170, in
main()
File “/usr/share/univention-join/univention-join-hooks”, line 113, in main
udm_modules.update()
File “/usr/lib/python2.7/dist-packages/univention/admin/modules.py”, line 123, in update
_walk(root, w_root, w_files)
File “/usr/lib/python2.7/dist-packages/univention/admin/modules.py”, line 110, in _walk
m = importlib.import_module(‘univention.admin.handlers.%s’ % (modulepackage,)) # type: Any
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/usr/lib/python2.7/dist-packages/univention/admin/handlers/oxmail/oxfolder.py”, line 64, in
syntax=univention.admin.syntax.ox_mail_folder_name,
AttributeError: ‘module’ object has no attribute ‘ox_mail_folder_name’


  • Running join scripts failed! *

  • Message: join/pre-joinscripts failed, see /var/log/univention/join.log

Someone knows that problem and a solution??

Kind regards
Harald

1 Like

We are having similar error while upgrading our UCS. I have even filed a bug report to Forge but no response yet.

Starting univention-upgrade. Current UCS version is 4.4-8 errata1111

Checking for local repository:                          none
Checking for package updates:                           none
Checking for app updates:                               found

The following apps can be upgraded:

Let's Encrypt: Version 1.2.2-8 can be upgraded to 1.2.2-20
Starting univention-app upgrade at Sun Nov 28 19:51:49 2021...
Most of the output for App upgrades goes to /var/log/univention/appcenter.log

Starting app upgrade                                   Traceback in univention-upgrade:
Traceback (most recent call last):
  File "/usr/sbin/univention-upgrade", line 445, in do_update
    update_available = performUpdate(options, checkForUpdates=options.check, silent=False)
  File "/usr/sbin/univention-upgrade", line 141, in performUpdate
    if func(options, checkForUpdates, silent):
  File "/usr/sbin/univention-upgrade", line 315, in do_app_updates
    pwdfile=options.pwdfile,
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 212, in call_safe
    return cls.call(**kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 220, in call
    return obj.call_with_namespace(namespace)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/__init__.py", line 226, in call_with_namespace
    result = self.main(namespace)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/upgrade.py", line 81, in main
    return self.do_it(args)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/install_base.py", line 124, in do_it
    errors, warnings = app.check(action)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/app.py", line 1647, in check
    result = requirement.test(self, function, package_manager)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/app.py", line 93, in test
    return method(**kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/app.py", line 1505, in must_have_no_unmet_dependencies
    apps_info = domain.to_dict(apps)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/domain.py", line 98, in to_dict
    hosts = self.get_appcenter_hosts(lo, pos)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/actions/domain.py", line 80, in get_appcenter_hosts
    objs = search_objects('computers/%s' % role, lo, pos)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/udm.py", line 120, in search_objects
    module = _get_module(_module, _lo, _pos)
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/udm.py", line 66, in _get_module
    _update_modules()
  File "/usr/lib/python2.7/dist-packages/univention/appcenter/udm.py", line 62, in _update_modules
    udm_modules.update()
  File "/usr/lib/python2.7/dist-packages/univention/admin/modules.py", line 123, in update
    _walk(root, w_root, w_files)
  File "/usr/lib/python2.7/dist-packages/univention/admin/modules.py", line 110, in _walk
    m = importlib.import_module('univention.admin.handlers.%s' % (modulepackage,))  # type: Any
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/oxmail/oxfolder.py", line 64, in <module>
    syntax=univention.admin.syntax.ox_mail_folder_name,
AttributeError: 'module' object has no attribute 'ox_mail_folder_name'
Mastodon