a year 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..
a year ago
can you send me a full browser screenshot
a year 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.
a year ago
refresh, and show me another screenshot please
a year ago
yes, lets debug so that you can help save people in your situation
a year ago
can you open that project in incognito?
a year ago
is that the same browser?
a year 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

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

a year ago
is the button missing right now?
a year ago
are you in incognito still?
a year ago
we haven't changed anything
a year ago
so im at a loss here
a year ago
enable ad block again and reload?
This is weird, would you like me to restart my PC to start over trouble shooting?
a year ago
whatever it takes, if you can figure out the clear reproducible root cause ill give you a bounty of $20 in railway credits
a year ago
well that was fast
a year ago
i'll verify this on our side, and if its reproducible, you will have yourself $20 in credits
a year ago
do you need to be logged into the proton extension for it to erase the button?
a year 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..
a year ago
can you send the link to that extention?
a year ago
oh wow that really messes up the ui
a year ago
in so many ways
a year 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 =}
a year 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
a year ago
not a bug on our side, but I'm a man of my word
a year 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..
a year ago
who's YouTube if you don't mind me asking?
a year ago
no worries if you don't know off the top of your head
a year 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..
a year 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 …
a year ago
we hope you stick around!
a year ago
!s
Status changed to Solved brody • 11 months ago






















