New Cloud SQL instance not connecting...

66 views
Skip to first unread message

Dave Stone

unread,
Dec 25, 2021, 10:10:31 AM12/25/21
to Google App Engine
Hi all; I've racked my brains & read much docs but still nada.. so hoping for any pointers.

Want another DB in parallel to upgrade things (PG 12, to 14). PG12 works fine, App Engine (flex, Node 16), Cloud Functions (Node 16; Python 3) and local proxy all zero issues.

Update deploy script to new PG version, and run. Lovely new DB. Local proxy connects, grand. Redeploy Cloud Functions to pickup env vars, connects, grand (both Node & Python connect & run). Redeploy App Engine with new beta_settings name & env vars... and nope.

```
connect ENOTDIR /cloudsql/foobar:us-central1:foobar/.s.PGSQL.5432"
```

As-if the unix socket isn't there? Everything seems to look similar, instance, IAM, etc. Rename env vars & beta_settings back to old, works fine. Rename back to new, nope..

What am I missing? Thanks in advance for ANY ideas, as I'm out :S


babdelrahman

unread,
Jan 6, 2022, 5:13:37 PM1/6/22
to Google App Engine
The issue requires to be investigated further, for now please find the following documentation to follow:
  • Postgres best practices [1]

  • Creating instances [2]

  • Release notes [3]

  • Connecting to Cloud SQL - connection with Unix sockets [4]



[1] https://cloud.google.com/sql/docs/postgres/best-practices

[2] https://cloud.google.com/sql/docs/postgres/create-instance


Reply all
Reply to author
Forward
0 new messages