Updating Keycloak¶
Requirements¶
- internet access for downloading the zip file from the SEAL Systems delivery platform
Updating from Version 1.0.1¶
Hint - internal data structure changes
Due to Keycloak internal data structure changes you have to export the configuration before updating, then delete the existing configuration and reimport the exported configuration afterwards.
-
In a browser, log on to the SEAL Systems delivery platform with your logon data:
https://delivery.sealsystems.de
Hint - logon data
You receive the logon data from your Technical Project Manager at SEAL Systems.
-
Download the Keycloak - 15.0.0.18 - msi folder. It is saved as
Keycloak - 15.0.0.18 - msi.zip
. -
Export the Keycloak configuration:
For details on the exporting, see Keycloak documentation.
-
In a PowerShell (Administrator), stop the service:
service-stop seal-keycloak
-
Remove the content of the
%ProgramData%\SEAL Systems\data\seal-keycloak\
directory:Remove-Item "%ProgramData%\SEAL Systems\data\seal-keycloak\*" -Force -Recurse
-
Change to the download directory and start installing the package:
install.ps1
-
In the
%ProgramData%\SEAL Systems\data\seal-keycloak\configuration\standalone.xml
file, remove all lines referring toSmallRye
modules, particularly the following lines:<extension module="org.wildfly.extension.microprofile.config-smallrye"/> <extension module="org.wildfly.extension.microprofile.health-smallrye"/> <extension module="org.wildfly.extension.microprofile.metrics-smallrye"/> <subsystem xmlns="urn:wildfly:microprofile-config-smallrye:1.0"/> <subsystem xmlns="urn:wildfly:microprofile-health-smallrye:2.0" security-enabled="false" empty-liveness-checks-status="${env.MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS:UP}" empty-readiness-checks-status="${env.MP_HEALTH_EMPTY_READINESS_CHECKS_STATUS:UP}"/> <subsystem xmlns="urn:wildfly:microprofile-metrics-smallrye:2.0" security-enabled="false" exposed-subsystems="*" prefix="${wildfly.metrics.prefix:wildfly}"/>
For details on the migration, see Keycloak upgrading guide.
-
Import the previously exported Keycloak configuration:
For details on the importing, see Keycloak documentation.
-
Restart the service:
service-start seal-keycloak
Updating from Version 6.0.1.99¶
Hint - changed data directory
With version 6.0.1.99 the data directory changes to C:\ProgramData\SEAL Systems\data\seal-keycloak
. Therefore the update requires different steps depending on your current version of Keycloak:
-
In a browser, log on to the SEAL Systems delivery platform with your logon data:
https://delivery.sealsystems.de
Hint - logon data
You receive the logon data from your Technical Project Manager at SEAL Systems.
-
Download the Keycloak - 15.0.0.18 - msi folder. It is saved as
Keycloak - 15.0.0.18 - msi.zip
. -
In a PowerShell (Administrator), change to the download directory and start installing the package:
install.ps1
-
Stop the service:
service-stop seal-keycloak
-
In the
%ProgramData%\SEAL Systems\data\seal-keycloak\configuration\standalone.xml
file, remove all lines referring toSmallRye
modules, particularly the following lines:<extension module="org.wildfly.extension.microprofile.config-smallrye"/> <extension module="org.wildfly.extension.microprofile.health-smallrye"/> <extension module="org.wildfly.extension.microprofile.metrics-smallrye"/> <subsystem xmlns="urn:wildfly:microprofile-config-smallrye:1.0"/> <subsystem xmlns="urn:wildfly:microprofile-health-smallrye:2.0" security-enabled="false" empty-liveness-checks-status="${env.MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS:UP}" empty-readiness-checks-status="${env.MP_HEALTH_EMPTY_READINESS_CHECKS_STATUS:UP}"/> <subsystem xmlns="urn:wildfly:microprofile-metrics-smallrye:2.0" security-enabled="false" exposed-subsystems="*" prefix="${wildfly.metrics.prefix:wildfly}"/>
For details on the migration, see Keycloak upgrading guide.
-
Restart the service:
service-start seal-keycloak
Updating from Previous Versions¶
-
In a browser, log on to the SEAL Systems delivery platform with your logon data:
https://delivery.sealsystems.de
Hint - logon data
You receive the logon data from your Technical Project Manager at SEAL Systems.
-
Download the Keycloak - 15.0.0.18 - msi folder. It is saved as
Keycloak - 15.0.0.18 - msi.zip
. -
Open a Command Prompt (Adminstrator).
-
Stop the service:
net stop seal-keycloak
-
Move the seal-keycloak data directory with the following command:
robocopy "%ProgramData%\SEAL Systems\data\seal-keycloak" "%ProgramData%\SEAL Systems\data\seal-keycloak" * /e /b /copyall /move /fp /ns /nc /np /nfl /ndl
-
Uninstall the old version.
-
Change to the download directory and start installing the package:
install.ps1
-
After the installation is finished, start the service:
service-start seal-keycloak