One service is unable to connect to Postgres container, while the other connects fine
Hi, I have two typescript services and a postgres service in a project. One of the typescript services is able to connect to the postgres service totally fine while the second one can't.
24 Replies
Project ID:
c7f62dd5-665b-4f22-9f49-a2a9e9b19231
c7f62dd5-665b-4f22-9f49-a2a9e9b19231
can you show me a screenshot of the service variables for the service that can't connect?
they are the same on both services ( i copy pasted from the one that can connect to the one that can't)
![No description](https://cdn.answeroverflow.com/1147355942040637470/image.png)
you shouldn't copy paste the database variables, please delete that database variable and setup a variable reference like that popup wants you to
okay, set up a variable reference, but still same error
can I see another screenshot, just as a sanity check
'
![No description](https://cdn.answeroverflow.com/1147356874459598858/image.png)
perfect
side note, your other service should be using a variable reference if it's not already, don't worry about it stopping working, we will get to the bottom of this
so now please show me the error you get
![No description](https://cdn.answeroverflow.com/1147357201065848872/image.png)
the service isn't using a variable reference right now cause for production i'm planning on moving to neon.tech for my postgres deploy, and use railway for just the services
gotcha
are you utilizing the private network at all?
nope
wanna go ahead and disable it?
disabled
redeploying