Private networking issue
montiplanet
PROOP

2 years ago

My app could not connect to DB using the private networking but everything is good with the public networking. My project id is 3e60ecef-0377-406d-8995-dcdadd820852

I created Postgres db using the button New and chose Database/Postgres

9 Replies

brody
EMPLOYEE

2 years ago

please provide specific error messages


montiplanet
PROOP

2 years ago

Error: P1001: Can't reach database server at postgres.railway.internal:5432
Please make sure your database server is running at postgres.railway.internal:5432.
npm WARN config production Use --omit=dev instead.


brody
EMPLOYEE

2 years ago

try to add a 3 second sleep to the beginning of your start script


montiplanet
PROOP

2 years ago

Should it help? My app tries to connect about 4 minutes


brody
EMPLOYEE

2 years ago

I'd still add it as a good measure, do you use alpine?


montiplanet
PROOP

2 years ago

I tried to use nginx alpine to add basic auth but now I get rid of this way and have tried to launch step by step. I've added 5 seconds prior to building and prior to starting and it helped.



montiplanet
PROOP

2 years ago

Yes, I had added this flag to all my services with no results.


brody
EMPLOYEE

2 years ago

im not sure what nginx has to do with postgres?


Loading...