Hello everyone,
I’m currently struggling with an issue that appears with no regular pattern whatsoever.
I’m deploying Keycloak to a server via Ansible, and later in the playbook I create a new
client using its dedicated module. The problem is that the first time everything’s fine,
but when I call the playbook again to make some modifications, it sometimes gets stuck
when using admin-cli to add the client: if that happens, the server returns with a 500
error and everything stops. By looking at the logs, it looks like that Keycloak for some
reason loses connection to the MariaDB server, and it won’t make it again until I restart
Keycloak manually, because every subsequent database connection will fail.
I’ll leave down here the link to a gist with the server logs, the standalone.xml
configuration file, and MariaDB and its JDBC version.
https://gist.github.com/ndido98/971e19ba2b071f34d37055d973234e7e
Thank you in advance for your help.
Greetings,
Nicolò