We have a UCS 5.0.2 server in operation. We had installed and then reinstalled Keycloak on a test basis.
Now we wanted to install Keycloak again and get the following errors when running /usr/lib/univention-install/50keycloak.inst:
Waiting for activation of the extension object 67keycloak: OK
Could not chdir to home directory /dev/null: Not a directory
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
Adding A record “ucs-sso-ng 10.40.32.9” to zone ****.**…
done
Restarting keycloak …
estarting keycloak … done
Container is healthy, configuring Keycloak
Using bind-dn:
Traceback (most recent call last):
File “/usr/sbin/univention-keycloak”, line 1356, in
exit(main())
File “/usr/sbin/univention-keycloak”, line 1352, in main
return opt.func(opt) or 0
File “/usr/sbin/univention-keycloak”, line 1143, in init_keycloak_ucs
kc_admin = KeycloakAdmin(server_url=opt.keycloak_url, username=opt.binduser, password=opt.bindpwd, realm_name=opt.realm, user_realm_name=DEFAULT_REALM, verify=opt.no_ssl_verify)
File “/usr/lib/python3/dist-packages/keycloak/keycloak_admin.py”, line 96, in init
self.get_token()
File “/usr/lib/python3/dist-packages/keycloak/keycloak_admin.py”, line 1786, in get_token
self._token = self.keycloak_openid.token(self.username, self.password, grant_type=grant_type)
File “/usr/lib/python3/dist-packages/keycloak/keycloak_openid.py”, line 201, in token
return raise_error_from_response(data_raw, KeycloakGetError)
File “/usr/lib/python3/dist-packages/keycloak/exceptions.py”, line 108, in raise_error_from_response
response_body=response.content)
keycloak.exceptions.KeycloakGetError: 404: b’\n\n404 Not Found\n\n
Not Found
\nThe requested URL was not found on this server.
\n\nApache/2.4.38 (Univention) Server at ucs-sso-ng.hkn.eu Port 443\n\n’
/usr/lib/univention-install/50keycloak.inst: FATAL:
On a test system I was able to recreate the error. Here is the way to the error.
- install Keycloak
2.remove Keycloak
3.install Keycloak again
The Apache conf is also not written. Does anyone have any idea what this could be due to?
All keycloak remnants were removed before reinstalling. (UCR,LDAP,POSTGRES)
How can I proceed now?
Kind Regards
Dominik