7 months ago
Hi Railway Support,
I am currently facing an issue with my backend deployment. I’ve successfully configured both PostgreSQL and Redis to be accessed via Railway’s private network, but my backend continues to fail to connect to both services, even though I have followed all the configuration steps carefully.
Error Details:
PostgreSQL: The backend connects to PostgreSQL initially, but fails to establish a stable connection.
Redis: The backend is unable to connect to Redis, showing the error
ENOTFOUND undefined, indicating the hostname cannot be resolved.
Configurations:
I am using the internal network addresses (
postgres.railway.internalfor PostgreSQL andredis.railway.internalfor Redis), but the connection attempts are not resolving correctly.The
.envfile is correctly set up with the connection strings, and I am using the appropriate environment variables in my code.
What I’ve Tried:
I have updated the
.envto include both PostgreSQL and Redis details (private network URLs).I have tried switching the Redis connection to use dual-stack lookup (
family=0in the URL).I have ensured that both the backend and database services are within the same Railway project and environment.
Despite all efforts, I keep receiving the following errors in the logs:
PostgreSQL Error:
Error connecting to PostgreSQL: getaddrinfo ENOTFOUND postgres.railway.internalRedis Error:
Error connecting to Redis: getaddrinfo ENOTFOUND undefined
Request for Assistance:
Could you please assist me in resolving these connection issues? Specifically, I’m looking for guidance on ensuring that the backend correctly resolves and connects to the PostgreSQL and Redis services using Railway’s private network.
I am using the latest versions of the required packages (pg, ioredis, and dotenv), and I’ve set the backend to use ES modules as required.
0 Replies
I'm terrible at this<:kekw:788259314607325204> I have been trying and trying.. just nothing..
7 months ago
can you send me a full browser screenshot
7 months ago
can you disable ad block
I have been looking like for hours trying to fix this, I guess I am just really stuck at this point.
7 months ago
refresh, and show me another screenshot please
7 months ago
yes, lets debug so that you can help save people in your situation
7 months ago
can you open that project in incognito?
7 months ago
is that the same browser?
7 months ago
you can now see the missing deploy button right?
Yeah look at this after I clicked that "deploy button" button.. it made 2 changes

7 months ago
well i also undid a bunch of things you shouldnt have done
7 months ago
you just tried setting so many things in your effort to get it working
7 months ago
not important though
7 months ago
but you can understand your original issue, you did not see the deploy button when you wernt in incognito
7 months ago
missing deploy button was the issue
7 months ago
no, we would like to fix this
7 months ago
to fix this we would need to reproduce your setup so that we can also see a missing deploy button on our machines
7 months ago
so switch back to your regular browser user and start disableing extentions one by one until the button comes back
7 months ago
whenever there is a change you can apply, yes
7 months ago
like right now

7 months ago
is the button missing right now?
7 months ago
are you in incognito still?
7 months ago
we haven't changed anything
7 months ago
so im at a loss here
7 months ago
enable ad block again and reload?
This is weird, would you like me to restart my PC to start over trouble shooting?
7 months ago
whatever it takes, if you can figure out the clear reproducible root cause ill give you a bounty of $20 in railway credits
7 months ago
well that was fast
7 months ago
i'll verify this on our side, and if its reproducible, you will have yourself $20 in credits
7 months ago
do you need to be logged into the proton extension for it to erase the button?
7 months ago
so that dark mode thing is the issue
The extension not even being used but turned on, is already making the button dissapear. Dark Mode reader once clicked makes websites turn into dark mode..
7 months ago
can you send the link to that extention?
7 months ago
oh wow that really messes up the ui
7 months ago
in so many ways
7 months ago
we can't fix that on our side, you would need to not use it while on railway
Yeah no worries, I will keep it disabled. Railway has a cool UI already compared to all these flashy websites =}
7 months ago
either way, credits have been awarded
And if this is not a bug, I don't expect any reward. I am already very glad having my back-end configured the way it should be lol
7 months ago
not a bug on our side, but I'm a man of my word
7 months ago
I'm happy you're happy, and if I may ask, where did you move from?
I started with Heroku long time ago, eventually moved on to render. But in this whole time I was looking for something more centralised and user friendly compared to all these paywalls and nothing being unified. That sort of when I found out about Railway on youtube..
7 months ago
who's YouTube if you don't mind me asking?
7 months ago
no worries if you don't know off the top of your head
7 months ago
I only hope that you used their referral code 😉
Oh I must have missed that lol, It was about a video related to "Best hosting platforms" or something and since watching that I didn't hestitate trying out Railway until couple weeks ago..
7 months ago
that's awesome, I'm glad we caught your eye
Anyways thank you very much, and truly see potential of how driven the community is here compared to …
7 months ago
we hope you stick around!
7 months ago
!s
Status changed to Solved brody • 7 months ago






















