I was trying to get a cloud sql instance working inside of a container 
running on App Engine Flexible Environment, and hit a few issues:

First, I couldn't find /cloudsql directory containing unix sockets at all. 
I'm not sure if this is in custom containers by default?
https://cloud.google.com/appengine/docs/python/cloud-sql/

I managed to get something working by finding a beta_settings key in 
app.yaml and set it to:

beta_settings:                                                              
                                          │

  cloud_sql_instances: <project-id>:<region-id>:<database-id>


This led to the /cloudsql directory existing, but the contents didn't match 
what I expected, I expected /cloudsql/<app-id>:<database-id>, but it had 
<region-id> in the middle.


After all that, it still failed to connect, giving me errors that the 
remote mysql had gone away (even though the app was definitely in the 
authorized list).


I ended up connecting via IP as a workaround, but I'd like to get this 
working with the socket. Is Cloud SQL supported in the Flexible Environment?


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3338afe7-86e7-414d-8fd0-9d0fad9a6a92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine] C... Prashant V
    • [google-appengi... 'Nick (Cloud Platform Support)' via Google App Engine
      • [google-app... Prashant V
        • [google... Prashant V
          • [go... 'Nick (Cloud Platform Support)' via Google App Engine
            • ... Prashant V
              • ... 'Nick (Cloud Platform Support)' via Google App Engine
                • ... Prashant Varanasi
                • ... 'Nick (Cloud Platform Support)' via Google App Engine
                • ... 'Nick (Cloud Platform Support)' via Google App Engine
                • ... 'Les Vogel' via Google App Engine

Reply via email to