I have tried at least 100 different things but can’t seem to connect my Forest Admin server running on Google App Engine to the Google Cloud SQL database in the same project. I have followed the instruction in here to a tee.
I just wanted to put it out there in case someone else also ran into this issue.
Happy to hear any ideas tbh
It should connect
It doesn’t connect
A 2020-08-05T01:35:38.784280Z e[31m[forest] Unexpected error: connect ECONNREFUSED 127.0.0.1:5432e[39m
A 2020-08-05T01:35:38.784305Z e[31mSequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:5432e[39m
A 2020-08-05T01:35:38.784317Z e[31m at connection.connect.err (/srv/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:170:24)e[39m
A 2020-08-05T01:35:38.784326Z e[31m at Connection.connectingErrorHandler (/srv/node_modules/pg/lib/client.js:213:14)e[39m
A 2020-08-05T01:35:38.784335Z e[31m at Connection.emit (events.js:198:13)e[39m
A 2020-08-05T01:35:38.784342Z e[31m at Socket.reportStreamError (/srv/node_modules/pg/lib/connection.js:57:10)e[39m
A 2020-08-05T01:35:38.784350Z e[31m at Socket.emit (events.js:198:13)e[39m
A 2020-08-05T01:35:38.784358Z e[31m at emitErrorNT (internal/streams/destroy.js:91:8)e[39m
A 2020-08-05T01:35:38.784367Z e[31m at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)e[39m
A 2020-08-05T01:35:38.784375Z e[31m at process._tickCallback (internal/process/next_tick.js:63:19)e[39m
Please provide any relevant information about your setup.
- Package Version:
- Express Version:
- Sequelize Version:
- Database Dialect:
- Database Version:
- Project Name:
UPDATE: It seems like an issue with how sequelize library connects via unix socket, given it successfully connects if used knex library.