I\'m trying to deploy my Node.js app on Google App Engine and it deployed fine, but it can\'t connect to Google Cloud SQL for some reason. Here\'s what it throws:
make sure you have added following setting in app.yaml
beta_settings:
# The connection name of your instance, available by using
# 'gcloud beta sql instances describe [INSTANCE_NAME]' or from
# the Instance details page in the Google Cloud Platform Console.
cloud_sql_instances: YOUR_INSTANCE_CONNECTION_NAME
ref:https://cloud.google.com/appengine/docs/flexible/nodejs/using-cloud-sql-postgres
Apparently the order you do things matters...
When I did deploy -> create databases -> enable sql ipi
I got the ENOENT error
Check your logs for any errors during startup using:
the following cmd gcloud app logs tail -s default
or,
with the log viewer https://console.cloud.google.com/logs/viewer
Chances are that you have not enabled the Cloud SQL API for your project: https://console.developers.google.com/apis/api/sqladmin/overview