For troubleshooting, you can also look at the Cloud SQL Proxy logs that may contain more information about the problem.
-- On the VM that is having the issue, run "docker ps", find the entry for the Cloud SQL Proxy and note down the Container ID.
Then run "docker logs <CONTAINER ID>" to see the logs from the proxy.
On Fri, Jun 10, 2016 at 5:13 AM Vlad Miller <vladm@2pventures.com> wrote:
Hello,--I am unable to connect to 2nd gen google cloud sql instance from google app engine instance. When I try to connect it simply fails withLost connection to MySQL server at 'reading initial communication packet'The weird thing is that I have another GAE service in the same project which successfully connects to this sql instance via socket. Here is the piece of configuration
beta_settings:
cloud_sql_instances: xxxxx-test:us-central1:xxxxx-developmentSocket is availableroot@4badd097c0d5:/app# ls -lA /cloudsql/xxxxx-test\:us-central1\:xxxxxxx-development srwxrwxrwx 1 root root 0 Jun 10 11:51 /cloudsql/xxxxx-test:us-central1:xxxxxxxx-developmentThis is not related to my app's code becauseroot@4badd097c0d5:/app# mysql --socket=/cloudsql/xxxxx-test\:us-central1\:xxxxxxx-developmentERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0Any advice how to proceed here?
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/1c2b3b75-9090-40ef-9b34-aa2a62143cf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/CABDU3p06K1nN9e2vG2yjyWw82W1AnifQX87r%2Bd1fUOq92YdoKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment