Service unavailable from the internal DNS
eljoe182
HOBBYOP

19 days ago

Project: Rock And Rolls Fit (ID: 384d701b-1bfa-4cd7-9928-e3546d961baf)

Environment: production (ID: fe99116d-d34c-429c-b4ff-76178c474741)

Issue:

  • The “rrf-api-reports” service is not accessible from other services using the internal DNS (rrf-api-reports.railway.internal)
  • Error: “queryA ENOTFOUND rrf-api-reports.railway.internal”
  • The service is online and responds to the health check
  • Other services in the same region (us-east4-eqdc4a) cannot connect

Steps to reproduce:

  1. Create a function that attempts to connect to http://rrf-api-reports.railway.internal:3000/health-check/
  2. You will see the error: “Unable to connect. Is the computer able to access the URL?”

24 Replies

I assume the other services are in the same environment?


eljoe182
HOBBYOP

19 days ago

Yes


eljoe182
HOBBYOP

19 days ago

I have a bff service and the configuration is same to another services


What's a "bff service"?


eljoe182
HOBBYOP

19 days ago

rrf-bff-api


eljoe182
HOBBYOP

19 days ago

If i add the public DNS, it works


What do you mean by "adding the public DNS"? Using public instead of private nwroking?


Sanity check, but rrf-api-reports.railway.internal is the URL shown as the private networking URL in the service settings right?


eljoe182
HOBBYOP

19 days ago

Public Networking, with a domain public


eljoe182
HOBBYOP

19 days ago

The bff service connect with others services via private network, it works. But, only rrf-api-reports not work it


eljoe182
HOBBYOP

19 days ago

I used the agent to resolve it and the agent created a function to check the endpoint /health-check/, same error


eljoe182
HOBBYOP

19 days ago

Yes


You're trying to access private networking through a function right?


You added a port as well when trying to access the URL right? (eg, rrf-api-reports.railway.internal:8080)


eljoe182
HOBBYOP

18 days ago

Yes, i added the port 3000


eljoe182
HOBBYOP

18 days ago


eljoe182
HOBBYOP

18 days ago

The service rrf-api-reports is running with this port

image.png

Attachments


eljoe182
HOBBYOP

18 days ago

Attachments


eljoe182
HOBBYOP

18 days ago

If change the network to public, works it!

image.png

Attachments


ayush-lal
HOBBY

18 days ago

I am having issues, both private/public connections to my postgres instance is not working.


ayush-lal
HOBBY

18 days ago

after a redeploy its working


drcalebl
HOBBY

18 days ago

same problem. Claude told me to change to public network to fix. But shouldn't railway fix the private?


mikeyliow
PRO

18 days ago

i am also facing the same issue, my service can't connect via private network all of the sudden, and i'm unable to deploy my service right now


drcalebl
HOBBY

18 days ago

fixed by redeploying the postgres database


Welcome!

Sign in to your Railway account to join the conversation.

Loading...