Bug 53199 - univention-portal-server not running after upgrade; missing file: 'portals.json'
univention-portal-server not running after upgrade; missing file: 'portals.json'
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Portal
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Dirk Wiesenthal
Max Pohle
: interim-5
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-30 10:37 CEST by Max Pohle
Modified: 2021-05-25 15:58 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
syslog: first seen (1.12 MB, text/plain)
2021-04-30 10:37 CEST, Max Pohle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Pohle univentionstaff 2021-04-30 10:37:53 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'
Comment 1 Dirk Wiesenthal univentionstaff 2021-05-11 10:13:30 CEST
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.
Comment 2 Max Pohle univentionstaff 2021-05-11 15:46:04 CEST
I can confirm, that it works now in the exact same machine I was testing it in before.
Comment 3 Florian Best univentionstaff 2021-05-25 15:58:40 CEST
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".