NodeJS AppEngine App error connecting to Google Cloud SQL

45 views
Skip to first unread message

cristian....@gmail.com

unread,
Apr 22, 2019, 10:32:48 PM4/22/19
to Google App Engine

Hi,
     I'm trying to connect a simple NodeJS App (A REST API) deployed into AppEngine to a Google Cloud SQL instance.
     Every time I deploy the app using a flex environment, it works perfectly, but when I try to deploy it in a Standard environment it does not work.
     To isolate the problem I've created a repo with a simple nodeJS app which proves my scenarios. 
     Is it by design? I mean, the filter in ports blocking the connection from Standard AppEngine to Google Cloud SQL instances?
     I've tried the same code using Cloud Run and it is not working too.    

Regards
Cristian

Jason Collins

unread,
Apr 23, 2019, 4:11:18 PM4/23/19
to Google App Engine
Can you post your repro?

Cristian Bullokles

unread,
Apr 23, 2019, 4:13:19 PM4/23/19
to google-a...@googlegroups.com

--
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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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/54fd5bf0-fef5-416f-bd21-4bcd3a4407b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

cristian....@gmail.com

unread,
Apr 23, 2019, 4:14:25 PM4/23/19
to Google App Engine

Jason Collins

unread,
Apr 23, 2019, 4:40:39 PM4/23/19
to Google App Engine

Cristian Bullokles

unread,
Apr 23, 2019, 4:49:43 PM4/23/19
to google-a...@googlegroups.com
What do you mean by doesn't look right to me?

I deploy exactly the same code in Standard and it does not work, but if I deploy it using Flex, it does work.




On Tue, Apr 23, 2019 at 5:40 PM Jason Collins <jason.a...@gmail.com> wrote:
--
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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.

Jason Collins

unread,
Apr 23, 2019, 5:36:06 PM4/23/19
to Google App Engine
The connection technique is different in Standard I believe.

In particular, note the "config.socketPath" in the link I sent.




Mahesh Kumar

unread,
Apr 24, 2019, 9:18:30 AM4/24/19
to Google App Engine
The connection string cannot have IP address in App Engine Standard. It should you Instance Connection Name.
https://www.youtube.com/watch?v=T0P6qsTuh1s will explain basics of App Engine Standard. 

If you want to using IP address then Serverless VPC https://cloud.google.com/vpc/docs/configure-serverless-vpc-access

Thank
Mahesh
Reply all
Reply to author
Forward
0 new messages