Univention Bugzilla – Bug 53199
univention-portal-server not running after upgrade; missing file: 'portals.json'
Last modified: 2021-05-25 15:58:40 CEST
Created attachment 10712 [details] syslog: first seen # Steps to reproduce Upgrade a managed node to UCS 5. This will mostly work, but the final redirect to the portal fails. # Caused by univention-portal-server.service is not running and system log has a traceback with > Started Univention Portal server. > univention-portal-server: Traceback (most recent call last): > univention-portal-server: File "/usr/sbin/univention-portal-server", line 135, in <module> > univention-portal-server: app = make_app() > univention-portal-server: File "/usr/sbin/univention-portal-server", line 124, in make_app > univention-portal-server: portals = get_portals() > univention-portal-server: File "/usr/sbin/univention-portal-server", line 115, in get_portals > univention-portal-server: with open("/usr/share/univention-portal/portals.json") as fd: > univention-portal-server: FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/univention-portal/portals.json'
I have updated a couple of systems to UCS 5-Managed nodes now and this error is not reproducible. The core issue were join scripts that were not executed after the update (namely univention-portal). Another issue of a fallback UMC portal was fixed a while ago.
I can confirm, that it works now in the exact same machine I was testing it in before.
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".