Hello and happy new year!
I finally started to walk thru the keycloak migration but got stuck at the very beginning. The join script 50keycloak.inst
fails with
Invalid URL 'https:///univention/saml/metadata': No host supplied /usr/lib/univention-install/50keycloak.inst: FATAL: EXITCODE=2
So obviously it’s not one of the issues above. Anyway I checked all the hints from this topic: Locales are fine just de_DE and en_US available and de_DE as default. The postgres cluster upgrade is alreay done (running v11). I tried the manual INIT like described in the documentation, but no luck. UCS has been upgraded to version 5.0-X months ago. I am currently running the latest 5.0-9 errata1195.
univention-run-join-scripts started
Mi 1. Jan 15:37:23 CET 2025
univention-join-hooks: looking for hook type "join/pre-joinscripts" on ucs.ad.MY_DOMAIN.de
Found hooks:
RUNNING 01univention-ldap-server-init.inst
EXITCODE=already_executed
RUNNING 02univention-directory-notifier.inst
EXITCODE=already_executed
RUNNING 03univention-directory-listener.inst
EXITCODE=already_executed
RUNNING 04univention-ldap-client.inst
EXITCODE=already_executed
RUNNING 05univention-bind.inst
EXITCODE=already_executed
RUNNING 08univention-apache.inst
EXITCODE=already_executed
RUNNING 10univention-ldap-server.inst
EXITCODE=already_executed
RUNNING 11univention-heimdal-init.inst
EXITCODE=already_executed
RUNNING 11univention-pam.inst
EXITCODE=already_executed
RUNNING 15univention-directory-notifier-post.inst
EXITCODE=already_executed
RUNNING 15univention-heimdal-kdc.inst
EXITCODE=already_executed
RUNNING 18python-univention-directory-manager.inst
EXITCODE=already_executed
RUNNING 20univention-directory-policy.inst
EXITCODE=already_executed
RUNNING 20univention-join.inst
EXITCODE=already_executed
RUNNING 20univention-ldap-config-master.inst
EXITCODE=already_executed
RUNNING 22univention-directory-manager-rest.inst
EXITCODE=already_executed
RUNNING 25univention-dhcp.inst
EXITCODE=already_executed
RUNNING 26univention-nagios-common.inst
EXITCODE=already_executed
RUNNING 30univention-appcenter.inst
EXITCODE=already_executed
RUNNING 30univention-monitoring-client.inst
EXITCODE=already_executed
RUNNING 30univention-nagios-client.inst
EXITCODE=already_executed
RUNNING 31univention-monitoring-s4-connector.inst
EXITCODE=already_executed
RUNNING 31univention-monitoring-samba.inst
EXITCODE=already_executed
RUNNING 31univention-nagios-s4-connector.inst
EXITCODE=already_executed
RUNNING 31univention-nagios-samba.inst
EXITCODE=already_executed
RUNNING 33univention-portal.inst
EXITCODE=already_executed
RUNNING 34univention-self-service.inst
EXITCODE=already_executed
RUNNING 35univention-appcenter-docker.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-admindiary.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-appcenter.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-diagnostic.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-ipchange.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-join.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-lib.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-quota.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-reboot.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-services.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-setup.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-sysinfo.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-top.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-ucr.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-udm.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-updater.inst
EXITCODE=already_executed
RUNNING 35univention-management-console-module-welcome.inst
EXITCODE=already_executed
RUNNING 35univention-self-service-master.inst
EXITCODE=already_executed
RUNNING 35univention-self-service-passwordreset-umc.inst
EXITCODE=already_executed
RUNNING 35univention-server-overview.inst
EXITCODE=already_executed
RUNNING 36univention-management-console-module-apps.inst
EXITCODE=already_executed
RUNNING 40univention-postgresql.inst
EXITCODE=already_executed
RUNNING 50keycloak.inst
2025-01-01 15:37:26.694127991+01:00 (in joinscript_init)
Create ucs/web/overview/entries/admin/keycloak/description/de
Create ucs/web/overview/entries/admin/keycloak/description
Create ucs/web/overview/entries/admin/keycloak/label
Create ucs/web/overview/entries/admin/keycloak/link
Create ucs/web/overview/entries/admin/keycloak/icon
Create ucs/web/overview/entries/admin/keycloak/link-target
Module: create_portal_entries
No modification: cn=keycloak,cn=entry,cn=portals,cn=univention,dc=ad,dc=MY_DOMAIN,dc=de
WARNING: cannot append cn=Domain Admins,cn=groups,dc=ad,dc=MY_DOMAIN,dc=de to allowedGroups, value exists
Object exists: cn=ldapacl,cn=univention,dc=ad,dc=MY_DOMAIN,dc=de
INFO: No change of core data of object 67keycloak.
No modification: cn=67keycloak,cn=ldapacl,cn=univention,dc=ad,dc=MY_DOMAIN,dc=de
Waiting for activation of the extension object 67keycloak: OK
Object exists: cn=services,cn=univention,dc=ad,dc=MY_DOMAIN,dc=de
Object created: cn=keycloak DB,cn=services,cn=univention,dc=ad,dc=MY_DOMAIN,dc=de
Object modified: cn=ucs,cn=dc,cn=computers,dc=ad,dc=MY_DOMAIN,dc=de
File: /etc/apache2/sites-available/univention-keycloak.conf
File: /etc/apache2/sites-available/univention-keycloak.conf
Site univention-keycloak already enabled
Multifile: /etc/postgresql/11/main/pg_hba.conf
Multifile: /etc/postgresql/11/main/pg_hba.conf
Warning: The file '/etc/postgresql/15/main/pg_hba.conf' is not registered as an UCR template.
Adding A record "ucs-sso-ng 192.168.50.8" to zone ad.MY_DOMAIN.de...
done
01.01.25 15:37:33.577 DEBUG_INIT
01.01.25 15:37:33.580 DEBUG_EXIT
waiting for ucs-sso-ng.ad.MY_DOMAIN.de ...
waiting for ucs-sso-ng.ad.MY_DOMAIN.de ...
waiting for ucs-sso-ng.ad.MY_DOMAIN.de ...
waiting for ucs-sso-ng.ad.MY_DOMAIN.de ...
waiting for ucs-sso-ng.ad.MY_DOMAIN.de ...
['master']
Restarting keycloak ...
estarting keycloak ... done
['master']
Using bind-dn:
Check if init is needed: yes, continuing init
CREATING KEYCLOAK SAML CLIENT.....
Traceback (most recent call last):
File "/usr/sbin/univention-keycloak", line 3221, in <module>
sys.exit(main())
File "/usr/sbin/univention-keycloak", line 3217, in main
return opt.func(opt) or 0
File "/usr/sbin/univention-keycloak", line 2981, in init_keycloak_ucs
create_SAML_client(opt)
File "/usr/sbin/univention-keycloak", line 1000, in create_SAML_client
update_saml_metadata_from_xml(opt, client_id, client_payload_saml, opt.metadata_file, opt.no_ssl_verify, opt.umc_uid_mapper)
File "/usr/sbin/univention-keycloak", line 434, in update_saml_metadata_from_xml
xml_content = requests.get(metadata_url, verify=no_ssl_verify).content
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 521, in request
prep = self.prepare_request(req)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 464, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/usr/lib/python3/dist-packages/requests/models.py", line 313, in prepare
self.prepare_url(url, params)
File "/usr/lib/python3/dist-packages/requests/models.py", line 390, in prepare_url
raise InvalidURL("Invalid URL %r: No host supplied" % url)
requests.exceptions.InvalidURL: Invalid URL 'https:///univention/saml/metadata': No host supplied
/usr/lib/univention-install/50keycloak.inst: FATAL:
EXITCODE=2
e6c4371a-9435-455e-8831-a6a0f7efa136
RUNNING 50openid-connect-provider.inst
EXITCODE=already_executed
RUNNING 60univention-admin-diary-backend.inst
EXITCODE=already_executed
RUNNING 80univention-radius.inst
EXITCODE=already_executed
RUNNING 81univention-nfs-server.inst
EXITCODE=already_executed
RUNNING 90univention-bind-post.inst
EXITCODE=already_executed
RUNNING 91univention-saml.inst
EXITCODE=already_executed
RUNNING 92univention-fetchmail-schema.inst
EXITCODE=already_executed
RUNNING 92univention-management-console-web-server.inst
EXITCODE=already_executed
RUNNING 96univention-samba4.inst
EXITCODE=already_executed
RUNNING 97univention-s4-connector.inst
EXITCODE=already_executed
RUNNING 98univention-pkgdb-tools.inst
EXITCODE=already_executed
RUNNING 98univention-samba4-dns.inst
EXITCODE=already_executed
RUNNING 98univention-samba4-saml-kerberos.inst
EXITCODE=already_executed
univention-join-hooks: looking for hook type "join/post-joinscripts" on ucs.ad.MY_DOMAIN.de
Found hooks:
any ideas?