"The driver has not received any packets from the server" problem

633 views
Skip to first unread message

Mihai Bob

unread,
Jul 5, 2019, 10:14:10 AM7/5/19
to Google Cloud SQL discuss
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 ?

Elliott (Google Cloud Platform Support)

unread,
Jul 10, 2019, 6:15:59 PM7/10/19
to Google Cloud SQL discuss
Hello Mihai,

Please note that Google Groups are reserved for general Google Cloud Platform-end product discussions and not for technical issues, which is why I suggest moving the troubleshooting to Stackoverflow[1] to obtain assistance from our programming community for your question.


Reply all
Reply to author
Forward
0 new messages