Service unavailable

23 days ago

Can't seem to access my app. Nothing has changed in a month and it was working fine, but now has on and off "Service Unavailable" issues. This is the second time this week. No logs show up either.

Attachments

Solved$20 Bounty

Pinned Solution

You need to add a TXT record. I ran nslookup and I got NXDOMAIN.

41 Replies

Status changed to Open Railway 23 days ago


dallas-hall-tl
PRO

23 days ago

We are running int othe same issue. DNS config says to point at 2vla3chn.up.railway.app which is not up.


Status changed to Awaiting Railway Response Railway 23 days ago


You need to add a TXT record. I ran nslookup and I got NXDOMAIN.


dallas-hall-tl

We are running int othe same issue. DNS config says to point at 2vla3chn.up.railway.app which is not up.

Please create your own thread.


0x5b62656e5d

You need to add a TXT record. I ran nslookup and I got NXDOMAIN.

23 days ago

What TXT record are you referring to? And to NameCheap or Cloudflare?


adhdcoder

What TXT record are you referring to? And to NameCheap or Cloudflare?

First question: The _railway-verify record given to you when you added the custom domain in the dashboard.

Second Question: That depends on which DNS provider you’re using.


0x5b62656e5d

First question: The _railway-verify record given to you when you added the custom domain in the dashboard.Second Question: That depends on which DNS provider you’re using.

23 days ago

It has been so long since I set up this custom domain, I don't remember getting a _railway-verify TXT record though. And why is it suddenly not working now if it's been working for months? DNS records haven't changed across both platforms at all. How am I able to get that TXT record if everything is set up with the custom domain and it only shows me the CNAME to add to Cloudflare?


Try removing your domain from Railway then re-adding it.


0x5b62656e5d

Try removing your domain from Railway then re-adding it.

23 days ago

Actually I ended up finding a "Connect to Cloudflare" button and clicking that, and it automatically added the TXT file. Thank you!!


0x5b62656e5d

Try removing your domain from Railway then re-adding it.

23 days ago

So wait, I added that TXT file across 2 out of 3 domains on Cloudflare. I was working on the 3rd one and it's loading just fine without it. Still going to add the TXT file since it worked for the other app, but the app from this original issue is still not loading. I'm not getting NXDOMAIN for the custom domain anymore, but I am still getting it from the generated domain even though I deleted it and re-added it.


I remember Railway changed from needing the autogenerated domain with CNAME for it to work to right now just by having the CNAME should just work without needing the autogenerated domain (ending with up.railway.app)

I have that removed. I also do not have the TXT record and my custom domain is still working up till now

I think for you you can leave it there (I am using Cloudflare btw)


knackwx

I remember Railway changed from needing the autogenerated domain with CNAME for it to work to right now just by having the CNAME should just work without needing the autogenerated domain (ending with up.railway.app)I have that removed. I also do not have the TXT record and my custom domain is still working up till nowI think for you you can leave it there (I am using Cloudflare btw)

23 days ago

I like to have it since my mom's internet blocks my custom domains and unblocking it is a hassle lol I use the generated domain to get to my app when I visit her place.

But either way, the custom domain isn't loading still either. Neither of the two load anything other than "Service Unavailable" at this point.


Do you mind showing your domain because I don't think that is Railway's default unavailable page?


knackwx

Do you mind showing your domain because I don't think that is Railway's default unavailable page?

23 days ago


The autogen domain isn't working your app isn't responding

Also I noticed your domain points to an A record?

Railway only accepts CNAME records and it looks like you are using root domain record (apex record) mycozyfocus.com, you need to use Cloudflare


(Make sure to remove any records that may conflict with the CNAME, such as A or AAAA).


23 days ago

I'm using Cloudflare and there's no A or AAA records


23 days ago

Here's all the records in Cloudflare for mycozyfocus.com

www points to mycozyfocus.com

Attachments


It does seem right, I'm going to guess these are the 1 click setup for Cloudflare DNS?


knackwx

It does seem right, I'm going to guess these are the 1 click setup for Cloudflare DNS?

23 days ago

Well I manually did it a long time ago and then I just did the 1 click setup for Cloudflare to get the railway-verify TXT record in there from this thread.

Even in the 1 click setup, the CNAME stayed the same, it only added the TXT record


Just to eliminate variables can you try testing out on an incognito window so it isn't your browser caching the DNS


knackwx

Just to eliminate variables can you try testing out on an incognito window so it isn't your browser caching the DNS

23 days ago

Yup already tested. Both still don't load in incognito


Wait is your Cloudflare SSL mode on Full at least?


knackwx

Wait is your Cloudflare SSL mode on Full at least?

23 days ago

Yup, it's on Full


Eh it's odd that I cannot access your app using the autogenerated domain

Can you check your app logs to see if it's not crashing or doing something weird


knackwx

Eh it's odd that I cannot access your app using the autogenerated domainCan you check your app logs to see if it's not crashing or doing something weird

23 days ago

No logs show up at all

Attachments


Even in the service itself the deployment logs and any incoming HTTP request seen?


If all else doesn't work force a redeploy /shrug using the Dashboard or just git commit --allow-empty -m "Force Build"


knackwx

If all else doesn't work force a redeploy /shrug using the Dashboard or just git commit --allow-empty -m "Force Build"

23 days ago

Deployment Logs: Nothing since April 17th actually...
HTTP Logs: A lot 502 and 499 errors


The PORT you are listening to is the same port in your app and your service configuration right?

Are you using a reverse proxy like NGINX or smth?

I think this may be getting out my league here sweat_smile emoji


adhdcoder

Deployment Logs: Nothing since April 17th actually...HTTP Logs: A lot 502 and 499 errors

Yeah I have a tab constantly trying to ping. What I'm guessing is there is an issue with your app (502) and my browser just closes the connection after not receiving a response (499)


Update: I saw a Railway application failed to response page and now I'm hit with a 403 Forbidden.

I think something is working here

UPDATE: Your app is live now, I can see it at mycozyfocus.com


knackwx

Update: I saw a Railway application failed to response page and now I'm hit with a 403 Forbidden.I think something is working hereUPDATE: Your app is live now, I can see it at mycozyfocus.com

23 days ago

Yeah I just redeployed lol but I'm seeing some interesting logs

[ActionDispatch::HostAuthorization::DefaultResponseApp] Blocked hosts: my-cozy-focus-production.up.railway.app, my-cozy-focus-production.up.railway.app


Yeah that's me accessing the autogen command I got a 403


knackwx

Yeah that's me accessing the autogen command I got a 403

23 days ago

I'm gonna troubleshoot that later but if the custom domain is working then that's a good sign. I'll remember to force redeploy next time I make a DNS change then sweat_smile emoji


Actually you don't have to do that. The DNS on the service settings interact with Railway's edge network independent of your container

You probably was just sitting in a bad container


knackwx

Actually you don't have to do that. The DNS on the service settings interact with Railway's edge network independent of your containerYou probably was just sitting in a bad container

23 days ago

Ohhh okay. All of this stuff is wayyy out of my league tbh sweat_smile emoji thank you so much pray emoji


But yeah otherwise I do see it. No problems!

Attachments


23 days ago

Can two people get bounties? lol both the TXT record + redeploy solved this thread laughing emoji


Haha I'm not sure. Actually this is my 1st time actually solving something in this whole bounties program rofl emoji


knackwx

Haha I'm not sure. Actually this is my 1st time actually solving something in this whole bounties program

23 days ago

You were very thorough laughing emoji you deserve a bounty too!! But I clicked on the previous solution when it worked for my other app before realizing this app still wasn't loading sweat_smile emoji


Ah I'm not sure how OP works for approving solutions. I guess only time will tell smile emoji


Status changed to Solved brody 23 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...