R
Railway•13mo ago
Spacemandev

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
Percy
Percy•13mo ago
Project ID: c7f62dd5-665b-4f22-9f49-a2a9e9b19231
Spacemandev
Spacemandev•13mo ago
c7f62dd5-665b-4f22-9f49-a2a9e9b19231
Brody
Brody•13mo ago
can you show me a screenshot of the service variables for the service that can't connect?
Spacemandev
Spacemandev•13mo ago
they are the same on both services ( i copy pasted from the one that can connect to the one that can't)
No description
Brody
Brody•13mo ago
you shouldn't copy paste the database variables, please delete that database variable and setup a variable reference like that popup wants you to
Spacemandev
Spacemandev•13mo ago
okay, set up a variable reference, but still same error
Brody
Brody•13mo ago
can I see another screenshot, just as a sanity check
Spacemandev
Spacemandev•13mo ago
'
No description
Brody
Brody•13mo ago
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
Spacemandev
Spacemandev•13mo ago
No description
Spacemandev
Spacemandev•13mo ago
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
Brody
Brody•13mo ago
gotcha are you utilizing the private network at all?
Spacemandev
Spacemandev•13mo ago
nope
Brody
Brody•13mo ago
wanna go ahead and disable it?
Spacemandev
Spacemandev•13mo ago
disabled redeploying
Want results from more Discord servers?
Add your server