R
Railway9mo ago
SMT

Wildcard domain stuck issuing TLS

I have an app that uses a wildcard domain (multi-tenant), but I've been unable to get things working in Railway. Root domain works great, but even with multiple retries (removing the wildcard domain and DNS records, re-adding, etc.) things seem stuck in the provisioning TLS certificate stage. Any help is greatly appreciated - we are trying to move our app off of Vercel for many reasons, and this is the final stage to build the proof of concept and make a decision. Thanks!
79 Replies
Percy
Percy9mo ago
Project ID: 77a7cdf4-e635-4e13-aba1-aaca47f04c14
SMT
SMTOP9mo ago
77a7cdf4-e635-4e13-aba1-aaca47f04c14
Brody
Brody9mo ago
who's your DNS provider?
SMT
SMTOP9mo ago
Cloudflare! i have turned off proxy for both cname records
SMT
SMTOP9mo ago
No description
SMT
SMTOP9mo ago
app. is working perfectly. Seems to be an issue with wildcard. I've tried removing it and re-adding it - is there a way to manually provision things?
Brody
Brody9mo ago
show me a screenshot of the railway domains please
SMT
SMTOP9mo ago
No description
Brody
Brody9mo ago
what happens if you remove the wildcard domain from railway, and then add it back? (without touching dns in cloudflare)
SMT
SMTOP9mo ago
No description
SMT
SMTOP9mo ago
^ So it's seeing the correct values in cloudflare
Brody
Brody9mo ago
it technically shouldn't matter, those are random values and only serve as a means to resolve the correct ip
SMT
SMTOP9mo ago
Got it. Yeah it seems this part is fine, but it gets firmly stuck on TLS issuing Shall I update these values on Cloudflare and see what happens?
Brody
Brody9mo ago
you may have hit the cert issuing limit
SMT
SMTOP9mo ago
What's that? And is there a way around it? Or a way to resolve or debug?
Brody
Brody9mo ago
i would have to flag the team
SMT
SMTOP9mo ago
Ok! If you're able to help with this it would be hugely appreciated. We very ready to move our whole team over, but need to validate that this works as expected before we make the jump. And it's a bit urgent for us because of performance issues on Vercel 😭 Thank you so much for your help!
Duchess
Duchess9mo ago
Thread has been flagged to Railway team by @Brody.
Brody
Brody9mo ago
may i ask if you are pro?
SMT
SMTOP9mo ago
I am not yet, but as soon as we have this resolved we will migrate there If moving to pro helps unblock, happy to do ti now
Brody
Brody9mo ago
haha no thats not why i was asking, im not gonna ask you to upgrade while you are having issues. just wanted to make sure you had the right discord badges is all 🙂
SMT
SMTOP9mo ago
❤️ hahaha fair that would be a solid sales+support move 😂 But yes, we will be doing this shortly and moving the whole team over. Plz free us from Vercel! Step change in performance already in our main app moving to Railway
Brody
Brody9mo ago
glad to hear it, we welcome you to railway, and the community! did you try end up trying this?
SMT
SMTOP9mo ago
Yep! That's what lead to the above screenshot (I haven't changed anything since then)
Brody
Brody9mo ago
okay thanks for confirming
SMT
SMTOP9mo ago
np!
Ray
Ray9mo ago
Hey! https://help.railway.app/questions/wildcard-domain-stuck-issuing-tls-93093f7e was this you? It's been flagged to our infra eng - appears to be an issue on our end. It's the start of the day in North America so it'll get looked at pretty soon, apologies for the delay
Railway Help Station
Wildcard domain stuck issuing TLS
I have an app that uses a wildcard domain (multi-tenant), but I've been unable to get things working in Railway. Root domain works great, but even with multiple retries (removing the wildcard domain and DNS records, re-adding, etc.) things seem stuck in the provisioning TLS certificate stage. Any help is greatly appreciated - we are trying to ...
SMT
SMTOP9mo ago
That's me too! yes! Thanks so much @Ray ! And all good. Things have been so awesome otherwise. And good morning 🙂
JustJake
JustJake9mo ago
Hi! You around I'd love to help you fix this
JustJake
JustJake9mo ago
I'm not able to pull dns records for it
No description
Brody
Brody9mo ago
I can dig it and get the correct results back
JustJake
JustJake9mo ago
What's correct result in this case?
Brody
Brody9mo ago
these
JustJake
JustJake9mo ago
Both these look incorrect... I'm getting Required value: g7t2czuh.authorize.railwaydns.net (And, BTW the job to obtain it expired) For some reason it only goes for 5 minutes @SMT If you can retry issuing it super quickly that would be great
Brody
Brody9mo ago
i think they r&r'd the domain in railway and didnt update the dns in cloudflare, but updating the cname in cloudflare shouldn’t be absolutely necessary since they are just random cnames, right? that would explain all the "stuck issuing tls" help threads ive always seen
JustJake
JustJake9mo ago
Yea
SMT
SMTOP9mo ago
Hi! I'm back again What did you want me to check?
SMT
SMTOP9mo ago
Current DNS:
No description
SMT
SMTOP9mo ago
Based on the latest values given in Railway, but it's still stuck. Let me know if there's anything I can try
JustJake
JustJake9mo ago
Can you delete the wildcard for me? And retry
SMT
SMTOP9mo ago
From where? In Cloudflare?
JustJake
JustJake9mo ago
Both
SMT
SMTOP9mo ago
Yep. Doing it now
JustJake
JustJake9mo ago
Basically retry issuing it from scratch as if you'd never done it So delete it in Cloudflare and Railway Then, let DNS purge Then, hit create in Railway I'll walk alongside you and figure out wtf is wrong
SMT
SMTOP9mo ago
Ok - back to this:
No description
SMT
SMTOP9mo ago
Ran a dig on both and the records are gone
JustJake
JustJake9mo ago
Slick! Okay, remove it on Railway (Please)
SMT
SMTOP9mo ago
Yep, done. Then re-added it in Railway, and just added records to cloudflare dig now shows both entries
SMT
SMTOP9mo ago
And we're back to this:
No description
SMT
SMTOP9mo ago
No description
JustJake
JustJake9mo ago
Okay! Lemme validate this...
SMT
SMTOP9mo ago
No description
SMT
SMTOP9mo ago
No description
JustJake
JustJake9mo ago
Trying to pull the info sec I see two txt records solving challenge: *.onorder.xyz: [*.onorder.xyz] authorization failed: HTTP 403 urn:ietf:params:acme:error:unauthorized - Incorrect TXT record \"7-glVtTwZT9qY9qVnOolZMaO8V9iv0pqqEmrnoFBeho\" (and 1 more) found at _acme-challenge.onorder.xyz Can you delete the TXT records? Oh, cause you have an app.onorder.xyz + a *.onorder.xyz @SMT Sorry for tag it's time sensitive cause the workflow will retry Can you tell me why your'e trying to do both here?
SMT
SMTOP9mo ago
No description
SMT
SMTOP9mo ago
I wanted to get app. working since that's where we host our main app and wildcard wasn't working Should I remove that?
JustJake
JustJake9mo ago
I think so ye I think it's messing with the DNS but not 100% certain
SMT
SMTOP9mo ago
Ok, done! I think the issue existed before that, but no harm in trying!
JustJake
JustJake9mo ago
Dunno where these guys are coming from
No description
JustJake
JustJake9mo ago
That's super weird
SMT
SMTOP9mo ago
Yeah. Reading that thread to see if we can do anything
SMT
SMTOP9mo ago
No description
SMT
SMTOP9mo ago
Ohhhh cloudflare has universal SSL verified by TXT
JustJake
JustJake9mo ago
Ah Yea you'll have to turn that off
SMT
SMTOP9mo ago
Try again? This would be a great one to add to docs - I didn't turn this on, maybe new cloudflare default
JustJake
JustJake9mo ago
If that's the issue defs I'll try and dig the record (The thing retries on a set schedule. Next one is in 8 minutes)
SMT
SMTOP9mo ago
No description
SMT
SMTOP9mo ago
Looks better!
JustJake
JustJake9mo ago
Ha
No description
JustJake
JustJake9mo ago
Beat me to it !remind me to check back in 8 minutes
Duchess
Duchess9mo ago
Got it, I will remind you to check back at Tue, 27 Feb 2024 20:24:34 GMT
SMT
SMTOP9mo ago
haha awesome. Will check back shortly. Thanks
JustJake
JustJake9mo ago
Marked as successful on our end! Can you give it a poke and check on yours?
SMT
SMTOP9mo ago
Oh damn!!! it worked! Thanks! Great one to add to any docs and notes about cloudflare 🙂 But all makes sense! Thank you so much!
Brody
Brody9mo ago
super helpfull for me too, now i know where to look when a similar issue with wildcards happen, thanks cooper! wow he's good https://github.com/railwayapp/docs/pull/449#issuecomment-1967540615
SMT
SMTOP9mo ago
Just a real 👏 support experience all around GIVE THESE PEOPLE A RAISE! Hahah thanks so much. Team is taking a final look and we'll migrate everything over. Everything is working great.
Want results from more Discord servers?
Add your server