Repository navigation
Embeded Keycloak giving me "Failed to Connect to Database" #14982
Unanswered
jocko-angi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm building a Java Spring Boot application with Keycloak 18.0.0 embedded in it.
Running locally I'm able to successfully connect to my local PostGres server and everything works well.
When I attempt to attach to our Dev environment server through changes to the application.properties and the
springboot.datasourceconfiguration the application boots, and initial Spring Boot connections to the database are established but then I get this error just before the RestEasy configuration:But that's all I get. There is 0 description as to why this is happening or which configuration is failing. I have set breakpoints and walked through the code and it appears to be occurring in the
org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactorywhich is loading configurations from thekeycloak-server.jsonconfiguration file.Here is what the default conectionJpa section of my file looks like -- I am not convinced this is correct, and I know for a fact that what appears to be templated values are only ever generating the default values:
So my questions are:
Thanks in advance for your responses.
All reactions