So I use keycloak(
https://www.keycloak.org/) and a personal application that I developed. I have docker images of them, at some poit they were running in google cloud Kubernetes Engine, everything was fine. I had to stop them for like half of month and now I need to put them back on.
So same docker images, same SQL instance(second generation), but I allways get the error:
Caused by: org.hibernate.exception.JDBCConnectionException: Unable to open JDBC Connection for DDL execution
Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
I created again the database user, then I created again the sqlproxy service account(with role Cloud SQL Client)
I use the command:
"command": [
"/cloud_sql_proxy",
"--dir=/cloudsql",
"-instances=abc:europe-west4:instName=tcp:3306",
"-credential_file=/secrets/cloudsql/credentials.json"
]
Again, I did not change anything here, yet I stll get these errors, and now I am out of ideas.
Can somebody give me a hint on what I am doing wrong ?