Urgent for Freelance Client!: On Railway, Custom Domain Not Connecting since 3 Days Now from Nameche
Hi everyone, I have taken all steps in the documentation and on Google and StackOverflow to connect a custom domain I bought on Namecheap.com. The domain does not seem to connect since 3 days now. Meanwhile, I have been using the "Generated Domain" from Railway. Kindly help me urgently, as I am at the verge of losing a client and my hard-earned money. Thanks.
200 Replies
Project ID:
N/A
N/A
Hey there, when you say the domain “does not seem to connect”, what do you mean?
Does the Railway-generated domain work correctly?
Please send any SSL settings on namecheap
Railway generated domain works correctly
But the custom domain won't come up
And just an hour ago, the custom domain have disappeared
But when I try to re-add it, Railway tells me the custom domain is not available. Which means, Railway is somehow hiding it and won't let me change it
Again, please explain what you mean by “won’t come up.” Do you mean it doesn’t show in the UI? Does it work when you access it?
I cannot access it on the UI
I asked for SSL, please send the SSL page
Sorry, which is the SSL page. I am ignorant of this.
?
This is from Railway
Ok. Thank you. A moment. I creenshgot it.
There you go
also, is this is correct? should he be adding that to name servers?
I don’t believe so, I’m not familiar with namecheap.
yes this is very incorrect, please switch those nameservers back to the default
That was how I added them. I do not know if I am doing something wrong. But that is how I have been doing it with hostsailor.com hosting and namecheap
namecheap works fine, when used correctly
have you added that same domain to other services?
No, I have not. Only this.
Please, enlighten me as I really need to get this working
see this message please
Switched back to default
What should I do next?
screenshot that again for me please
OK
cool, what do you have on the advanced dns
Nothing
There are no settings
..yet
well theres your problem, or at least one of them
Exactly
Because there is no connection
So, how do I connect Railway from here?
one step at a time
OK
add your given cnames
doesnt matter what one you use for
@
or www
screenshot of that when youre done pleaseOK
OK
bruh, no
Done
please stop touching those settings
put that back to the defaults, you need to add the given cnames to the advnaced dns section
Please, where is the advanced dns
Sorry to ask
its in your screenshot at the top, we have even talked about it just now
Ah ok
Seen it
Here
But the second one is in red
because you didnt put cname for the second one
Still in red
Thats not what I meant by cname. You need to change the first drop down to be cname
OK
keep sending screenshots, pictures are worth 1000 words
OK
Like this, I believe?
I am trying to rush everything so that you do not leave me
And also so I can get this done quickly
yes that is correct
So, am I right now?
OK. Good
Even with the 30 minutes, clause?
as for the domain not showing up in railway, are you sure thats the correct service?
...on TTL
Yes, I am venry sure.
very*
have you put the nameservers back to their defaults?
I've refreshed the page a thousand times, but those domains won't still show up
Yes
Is the 30min ok?
was 30 mins the default?
Or should I make it "automatic'?
Yes
the default is fine
It was 30min by default
OK
Done
Those domains have come up on Railway
But they're still not working
screenshots please
There
And I have an additional Railway-generated domain
What's the www. url doing there?
That should not be there
OK
What should I put there?
I saw it on the docs
why cant they have www???
And on Stackoverflow
Because they already set up a redirect from www to no www in namecheap
^
Do not forget that the www. generated one of those keys I put on Namecheap
You can, it's just redundant atm
they should not do that in namecheap
fair enough
Not much of a difference
There
namecheap does not support these redirects with https, it will cause issues, sorry i missed this, but please remove that redirect
The www.?
please look at the screenshot i am replying to
OK
that was not the screenshot i was replying to
again, please remove the redirect here
thank you
It got removed already after the Advanced DNS setting
ill check back in 30 mins
OK
Thank you for your effort
I am available
already working in here, might not work for you for a few minutes due to caching issues
weird that railway didnt detect it yet, but anyway, the waiting game
I too am getting the correct DNS results back, need to wait for railway and the rest of the world to see that though
Ah ok
OK
Not yet working here. Even on a new browser.
keep an eye at this, if it turns green and still not working, come back
Just to be sure, I hope we are looking good with this screenshot?
new browser isn't applicable, we are now waiting for DNS propagation
Disappeared once more
OK
I can see them again
green?
Not yet
screenshots!!
Reloaded the page to see if it turns green. But they disappear entirely.
try full refresh "shift + f5" just to make sure
in my browser there's already something working
SSL issue appeared, but I guess it's just cache
OK
Good
please disable dnssec in namecheap
So, how do I fix this?
OK
Disabled
please dont forget the screenshots
OK
A moment
There you go
I have a thousand browsers on my laptop
Wouldn't show yet. Guess it's still the propagating thing
?
And the SSL, saw that Railway offers free.
this is just a waiting game, please be patient
OK
Or has the DNSSEC removal solved this?
yes railway does offer free ssl certs
please be patient
OK
How do I access this?
access what
The SSL
its automatic, you dont need to do anything
OK
weird, shouldn't be done by now? @Brody
still getting SSL issues
Not yet up
I was replying to the client
Not yet up
I hope I do not lose you both
we here
are the domains showing in the service settings right now?
Not anymore
Change seen
the www. has a loading icon
what browser are you using?
ive glanced over it until now, but that stuff should not be just disappearing randomly
Chrome, Chrome Dev, Edge, Firefox, Palemooon, Brave
It is disappearig on Chrome
I am using Chrome for the Railway dashboard
maybe you have some extensions interfering, can you try opening the same page in a guest user?
The faansy.com?
I have tried Incognito
no, i talking about the issue of the domains disappearing from the service settings
OK
They are here now
remove the root domain from railway, then add it right back, do not touch namecheap
OK
do this in the guest browser
Fresh CName generated
kmkfdemh.up.railway.app
do not touch namecheap, ignore that
Should I place it on Namecheap?
OK
whats the status in railway now
Let me show you
It is up
A moment
Green
But the faansy.com is yet to be accessed
My client says his friend can see it
It is now from my end
i can access it without any isssues at all, cert is valid
Caching
OK. Good.
do you want/need a www subdomain?
Yes
okay then remove it from railway and add it back, dont touch namecheap
Let me show you
So you can point at it
I do not want to make any mistakes
Which should I remove from this?
the www subdomain, remove it from railway and add it back, dont touch namecheap
And please, an example of how I should add the subdomain
OK
no examples needed, remove it and add it right back
no overthinking
Removed and added back
OK
My client says they can now see the https
From the dashboard, the www. is still loading
This happened
And then swiftly, the next happened
So, I believe everything is fine and I should no longer worry, right?
can you access your app from both those domains?
Not yet. I am in Mauritius. But my client in the US can.
Proximity, I believe. Or caching
Whichever
okay yeah then just a little more waiting needed
I see it is hosted in Oregon
but if it works for them, it will work for you in time
Yes, I know
So, how about emails?
yeah but that has nothing to do with dns
If I may ask?
what about emails?
And thank yoy very much for this
When I used to host with hostsailor, they gave me email settings
like mail.faansy.com
And we had a cpanel interface for managing it
with webmail
railway does not offer anything email related at all, so instead I highly recommend zoho
OK
side question, may I ask if you're pro?
Cloud, NO
Coding, I believe so
I'm talking about railway pro plan
Oh no
I am using the cheapest plan
that will run out soon enough, and you are also hosting a site for a client, that is a pro usecase, so please make sure you upgrade to the pro plan at your earliest convenience
OK
I will
thank you for understanding
I really appreciate the time you put into this
happy to help
Many thanks, once more
any other questions?
None for now
sounds good!
Hi
If you're still there
I would like to run some commands on my backend
How do I go about this?
railway does not provide ssh access, but there is alternatives depending on what you need, please tell me what commands
the storage:link
for php
php nartsan storage:link
for Laravel
So my images can show up
you would need to run that as part of the build or install command
Hmm
Ok
i forget what one would be most applicable
Thought of that too, but wasn't sure
is there even a build command being run? check the build table at the top of the build logs
OK
A moment
On the build logs, ther is quite a long list
I do not know if to paste them here. It is very long
The route link I used for it, won't work on production
I made it into a route, so I run it in development. And hoped I could run same in production
But it is not giving me the access
show me the build table at the top of the build logs please
OK
That it?
so what is the exact command you need to run?
php artisan storage:link
The route method worked for me on hostsailor.com
in the service settings set the build command to
php artisan storage:link && npm run build
ok
Resolved. Thank you
no problem!