Friday, June 10, 2016

[google-cloud-sql-discuss] Re: 2nd gen flexible environment "Lost connection to MySQL server at 'reading initial communication packet'"

I'd suggest the following:

- Check the CloudSQL instance logs.
- Check that all apps in the project are authorized under Access Control -> Authorization in the Cloud Console.
- Try a re-deploy of the application.

On Friday, June 10, 2016 at 8:13:45 AM UTC-4, Vlad Miller 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 with 

Lost 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-development


Socket is available

root@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-development

This is not related to my app's code because 

root@4badd097c0d5:/app# mysql --socket=/cloudsql/xxxxx-test\:us-central1\:xxxxxxx-development
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

Any 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/19438d1d-4e0a-42f7-ba3b-437b153bc640%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment