Unable to start Keycloak¶
Symptom¶
MySQL is ready without any errors. After installing Global Management, Keycloak fails to start (more than 10 times).
Checklist¶
-
If the database is MySQL, check if the Keycloak database encoding is UTF8.
-
Check the network from Keycloak to the database and ensure that the database resources are sufficient, including but not limited to resource limits, storage space, and physical machine resources.
Solution¶
- Check if MySQL resource usage has reached the limit.
- Check if the number of tables in the Keycloak database in MySQL is 92.
- Delete and recreate the Keycloak database, using CREATE DATABASE IF NOT EXISTS keycloak CHARACTER SET utf8 .
- Restart the Keycloak Pod to resolve the issue.