Problems when updating from USC 4.8 to version 5 due to leftovers of OX apps

When trying to update a server UCS 4.8 to 5.0, remnants of an old OX appsuite installation cause the update to abort, see the log below:

27.12.21 11:36:04.350 DEBUG_INIT
**** Starting univention-updater with parameter=[’/usr/share/univention-updater/univention-updater’, ‘net’, ‘–updateto’, ‘5.0-1’, ‘–ignoressh’, ‘–ignoreterm’]
Version=4.4
Patchlevel=8
starting net mode
—>DBG:update_available(mode=net, cdrom_mount_point=/media/cdrom, iso=None)
Checking network repository
Update to = 5.0-0
**** Downloading scripts at Mon Dec 27 11:36:05 2021
**** Starting actual update at Mon Dec 27 11:36:08 2021

Starting /tmp/tmpqnVvKi/preuprNdFxU.sh (Mo 27. Dez 11:36:08 CET 2021):

HINT:
Please check the release notes carefully BEFORE updating to UCS 5.0-0:
English version: UCS 5.0 Release Notes
German version: UCS 5.0 Release Notes

Please also consider documents of following release updates and
3rd party components.

Do you want to continue [Y/n]?
Custom preupdate script /var/lib/local-preup.sh not found
Checking adc_mapping … OK
Checking adc_multiinstance_mapping … OK
Checking architecture … OK
Checking blocking_apps … Unable to cache apps
Unable to cache apps
OK
Checking default_master_packages … OK
Checking disk_space … OK
Checking failed_ldif … OK
Checking for_postgresql94 … OK
Checking hold_packages … OK
Checking kernel … OK
Checking kolab_schema … OK
Checking ldap_connection … OK
Checking ldap_schema … 61c99721 UNKNOWN attributeDescription “OXDRIVE” inserted.
61c99721 UNKNOWN attributeDescription “OXUSERQUOTA” inserted.
61c99721 UNKNOWN attributeDescription “OXDISPLAYNAME” inserted.
61c99721 UNKNOWN attributeDescription “OXIMAPSERVER” inserted.
61c99721 UNKNOWN attributeDescription “OXCONTEXTNAME” inserted.
61c99721 UNKNOWN attributeDescription “OXQUOTA” inserted.
61c99721 UNKNOWN attributeDescription “OXHOMESERVER” inserted.
61c99721 UNKNOWN attributeDescription “OXCONTEXTIDNUM” inserted.
61c99721 UNKNOWN attributeDescription “OXDBSERVER” inserted.
61c99721 UNKNOWN attributeDescription “OXINTEGRATIONVERSION” inserted.
61c99721 UNKNOWN attributeDescription “OXTIMEZONE” inserted.
61c99721 UNKNOWN attributeDescription “OXLANGUAGE” inserted.
61c99721 UNKNOWN attributeDescription “ISOXUSER” inserted.
61c99721 UNKNOWN attributeDescription “OXACCESS” inserted.
61c99721 UNKNOWN attributeDescription “ISOXGROUP” inserted.

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Administrator,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Admin,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: cn=open-xchange groupware account,cn=templates,cn=univention,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxContext’

dn: cn=context10,cn=open-xchange,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=oxadmin,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Andre,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Helfer1,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Kasse1,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Kasse2,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Martin,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Norbert,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Nikola,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Olaf,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Projektion,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=shop,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Thomas,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=Helfer,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=Fnanzbearbeiter,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=GIS,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=Kasse,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=Personalbearbeiter,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=Sachbarbeiter,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=Systemverwalter,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=Wissenschaften-Projekte,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Teamkuh,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=Rind,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxGroup’

dn: cn=shopgruppe,cn=groups,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Kopierer,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Sevke,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Jana,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Anna,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Simin,cn=users,dc=nabu-wallnau19,dc=intranet

(65) Object class violation: unrecognized objectClass ‘oxUserObject’

dn: uid=Buchhaltung,cn=users,dc=nabu-wallnau19,dc=intranet

OK
Checking legacy_objects … OK
Checking master_version … OK
Checking md5_signature_is_used … OK
Checking min_version … OK
Checking minimum_ucs_version_of_all_systems_in_domain … FAIL
Checking old_packages … OK
Checking overwritten_umc_templates … OK
Checking ox_schema … OK
Checking package_status … OK
Checking python_ucr_template_compatibility … OK
Checking python_ucsschool_hooks_compatibility … OK
Checking role_package_removed … OK
Checking samba_server_schannel … OK
Checking samba_tdb_size … OK
Checking slapd_on_member … OK
Checking ssh … OK
Checking system_date_too_old … OK
Checking system_role … OK
Checking term … OK
Checking tls_public_key_size … OK
Checking tls_public_key_size_ucs-sso … OK
Checking ucsschool_computerroom_compatibility … OK
Checking usr_mountpoint … OK
Checking valid_machine_credentials … OK

The system can not be updated to UCS 5.0 due to the following reasons:

minimum_ucs_version_of_all_systems_in_domain:
The following extensions are incompatible with UCS 5.0:
cn=66oxforucs,cn=ldapacl,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=50_ox,cn=udm_syntax,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxAccess,cn=udm_hook,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxContextRW,cn=udm_hook,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxGroupHook,cn=udm_hook,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxUserDefaults,cn=udm_hook,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxmail/oxcontext,cn=udm_module,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxmail/oxdomain,cn=udm_module,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxmail/oxfetchmailmulti,cn=udm_module,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxmail/oxfetchmailsingle,cn=udm_module,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxmail/oxfolder,cn=udm_module,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxmail/oxlists,cn=udm_module,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxmail/oxmail,cn=udm_module,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)
cn=oxresources/oxresources,cn=udm_module,cn=univention,dc=nabu-wallnau19,dc=intranet: [unspecified…unspecified)

Error: Update aborted by pre-update script of release 5.0-0

How can I remove these remnants, probably broken or orphaned LDAP entries, so that the update goes through.

With kind regards
Mirko Blinn

I had the same issue. In fact OX Mail and OX Resources still appear in the web gui under Domain. Ugh.

For your issue, you can use ldapdelete to get rid of those leftovers. It worked for me. The comand format for you would be:

ldapdelete -x -D "cn=admin,$(ucr get ldap/base)" -y /etc/ldap.secret "cn=66oxforucs,cn=ldapacl,cn=univention,dc=nabu-wallnau19,dc=intranet"

Do it for each cn line listed above.

Gerald