Problem: Portal-preview was installed -> how to update to UCS5

Problem

Portal-preview was installed → how to update to UCS5

Environment (optional)

UCS 4.4-x to UCS5 with portal-preview installed

Solution

Caution

The portal is emtpy after that procedure, but system is updated to UCS5 although portal-preview was installed. You must create the portal entries manually.

Step1: Start Upgrade

Your system has to be on 4.4-9 latest errata.

univention-upgrade

Step2: Remove portal_preview from repo

univention-app register univention-portal --undo-it

Step3: Change version on some ldap objects cause of upgrade errors

udm settings/ldapacl modify --dn "cn=62univention-portal,cn=ldapacl,cn=univention,$(ucr get ldap/base)" --set ucsversionstart=4.4-1 --set ucsversionend=5.99-0 ; \
udm settings/udm_syntax modify --dn "cn=univention-portal,cn=udm_syntax,cn=univention,$(ucr get ldap/base)" --set ucsversionstart=4.4-1 --set ucsversionend=5.99-0 ; \
udm settings/udm_module modify --dn "cn=portals/portal,cn=udm_module,cn=univention,$(ucr get ldap/base)" --set ucsversionstart=4.4-1 --set ucsversionend=5.99-0 ; \
udm settings/udm_module modify --dn "cn=portals/category,cn=udm_module,cn=univention,$(ucr get ldap/base)" --set ucsversionstart=4.4-1 --set ucsversionend=5.99-0 ; \
udm settings/udm_module modify --dn "cn=portals/entry,cn=udm_module,cn=univention,$(ucr get ldap/base)" --set ucsversionstart=4.4-1 --set ucsversionend=5.99-0 ; \
udm settings/udm_module modify --dn "cn=portals/folder,cn=udm_module,cn=univention,$(ucr get ldap/base)" --set ucsversionstart=4.4-1 --set ucsversionend=5.99-0 ; \
udm settings/udm_module modify --dn "cn=portals/all,cn=udm_module,cn=univention,$(ucr get ldap/base)" --set ucsversionstart=4.4-1 --set ucsversionend=5.99-0

Step4: Delete portal entry container

udm container/cn remove --dn "cn=portals,cn=univention,$(ucr get ldap/base)"

Finaly restart the upgrade to 5.0 and reboot the server

univention-upgrade
reboot
2 Likes
Mastodon