Univention Bugzilla – Bug 54166
Unable to upgrade due to error 'module' object has no attribute 'ox_mail_folder_name'
Last modified: 2021-12-17 11:59:43 CET
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'
Hello, Any idea on how we can fix this up? Thanks!
(In reply to Arun from comment #1) > Hello, > Any idea on how we can fix this up? > Thanks! First it would be great you also post problems in our forum. This is a bugtracker for product improvement and not a communication platform. But, maybe you can check if 50_ox.py is in /usr/lib/python2.7/dist-packages/univention/admin/syntax.d/ If not try to copy it: cp /usr/share/univention-ox/udm/syntax/50_ox.py /usr/lib/python2.7/dist-packages/univention/admin/syntax.d/ Does udm works at all?