Per your request I’m starting a thread because the univention-app-appliance package seems to be incompatible:
python_ucr_template_compatibility:
The following UCR templates are not compatible with Python 3:
/etc/univention/templates/files/usr/share/univention-web/js/umc/hooks/appliance.json (package: univention-app-appliance)
OK, I deployed another server and compared the new appliance.json file with the one on the server where the upgrade is failing.
OLD appliance.json file:
@!@
import json
def get_ucr_entry(ucrKey, key=None, defaultValue=None):
if key is None:
key = ucrKey
return (key, configRegistry.get(ucrKey, defaultValue))
ucr_vars = [
(‘umc/web/appliance/name’, ‘appliance_name’),
(‘umc/web/appliance/close_first_steps’, ‘close_first_steps’),
]
data = dict([get_ucr_entry(*i) for i in ucr_vars])
print json.dumps(data, indent=2)
@!@
NEW appliance.json file:
@!@
import json
def get_ucr_entry(ucrKey, key=None, defaultValue=None):
if key is None:
key = ucrKey
return (key, configRegistry.get(ucrKey, defaultValue))
ucr_vars = [
(‘umc/web/appliance/name’, ‘appliance_name’),
(‘umc/web/appliance/close_first_steps’, ‘close_first_steps’),
]
data = dict([get_ucr_entry(*i) for i in ucr_vars])
print(json.dumps(data, indent=2))
@!@
I haven’t yet retried to upgrade the old server, but if that’s the reason, it’s just unbelievable.