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

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

Finaly restart the upgrade to 5.0 and reboot the server

univention-upgrade
reboot

After reboot portal shows never ending loading animation. Delete portal entry container and recreate using udm

udm container/cn remove --dn "cn=entry,cn=portals,cn=univention,$(ucr get ldap/base)"
udm container/cn create --position "cn=portals,cn=univention,$(ucr get ldap/base)" --set name="entry"

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.

2 Likes