Connection issues (fixed) and slow deploys (not fixed)
I've been having problems for the last 30 minutes, I tried to restart the DB and flush the data now I tried spinning up a new DB with de facto connection code I use in all my other projects with the new DB and I'm still having problems. Project: https://railway.app/project/bccd1ccf-de59-4a09-89aa-9e9a4f75a3cc/service/eb00af5c-4703-4644-a9e0-4bff24fa92d7?id=5ac95b9d-b0bc-48b8-bcd4-43820c1f236e
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
97 Replies
Project ID:
bccd1ccf-de59-4a09-89aa-9e9a4f75a3cc,eb00af5c-4703-4644-a9e0-4bff24fa92d7,5ac95b9d-b0bc-48b8-bcd4-43820c1f236e
can you connect to it locally?
Yes it seems to work more often if I run my app locally
Deploying seems to be consistently broken
I would use the internal identifier for the URL but then I can't reuse it for locally running my app
but it doesnt work at all when you deploy to railway?
Yes I keep seeing the timeout issue I posted
I am connecting to a new Redis instance, clean and confirmed the connection string is right
I'll try again soon
let me know how that goes, if its still failing i will ping in somebody
Kk
@Brody No luck
It works locally, times out on Railway
I don't have any conditional code
This https://railway.app/project/bccd1ccf-de59-4a09-89aa-9e9a4f75a3cc/service/eb00af5c-4703-4644-a9e0-4bff24fa92d7/settings is trying to consume this resource https://railway.app/project/bccd1ccf-de59-4a09-89aa-9e9a4f75a3cc/service/272f7332-ac63-41b5-b0c9-90872d441ee8
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
It's just a junk Redis DB I created a few hours ago, nothing special about it
@matt - potential network outage, im not too sure, needs investigating
@Brody I'll try with the internal URL see if that helps
good thinking, though you might just get a different error
@Brody Like that?
youd need to specify the port and credentials, but yes
side note, thats is some crazy font you have there, i like small font myself, but how do you read that without getting a head ache?
Hahahaha
It looks like this, I usually use the Mac zoom in feature
But because of AI I have so much code I just need the font to be small so I can manage all of it
Before AI my font size was like 25% bigger
thats the opposite of monospace lol
@Brody Not luck with internal URL when deploying to Railway
There's no sensitive data there
can you do a dial on the redis host and port?
What do you mean? Is there a command you want me to run?
in your go code, net.dial i think it is?
just as a debugging step
Sure sec
OK I think I fixed it
I believe it's panicing on this
if err := rdb.Ping(context.Background()).Err(); err != nil {
panic(err)
}
If I remove that everything seems to work normally
It's interacting with the Redis DB not just connecting to it
The weird thing is I am using the same version of Go redis in other projects with ping and it works fine
what redis client and what version are you using
I'll try to replicate this when I have time
I tried to replicate it just now lmao and I can't
Works as a standalone deploy
So in the simple example everything works
In th original deploy I am still having problems
There's something really weird going on
is your working test deploying into the same service?
Same project different service
I am wondering if Redis like blacklisted my original service or something
One guess is the failure policy (e.g. restarting 10 times quickly) caused Redis (possibly) to blacklist the IP or something, far out guess
nah redis isnt going to do that
I'm having no issues here doing the same thing https://railway.app/project/bccd1ccf-de59-4a09-89aa-9e9a4f75a3cc/service/05f5b6b8-854c-477a-9afb-42c284aaf1dd?id=4126273a-58c2-452e-a414-fee36eae5004
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
just use the new service then lol
btw these links dont do anything for me, i dont work for railway
What? Lmao
What do you do this for then?
to help people
I see
Well yeah the service is somehow the problem
Connection logic is identical
TCP is fine btw I tried the dialing thing
yeah thats why i tagged in matt, there could be a network issue with a single host in their fleet
This worked fine
If I change the URL of the service it still doesn't work
I've also tried restarting and redeploying it
The service is somehow bugged
but the new service you made, works just fine?
Yeah I tried to create a minimal repro with the same connection logic in a new service, works fine
I am now deploying a new service with exactly the same code to concur it's a service problem
keep me posted
Something weird is going on
That is a brand new service
can you try adding a
time.Sleep(3 * time.Second)
before you attempt to connect to the databaseYeah before pinging it?
That's a good idea
before pinging or connecting whatever comes first
Lmao yeah that fixed it
Ughhhhh
awesome
Great thanks lmao
no problem, the io timeout threw me for a loop, it's usually a DNS lookup failures
It's a weird one, makes sense why it worked locally now
Because the round trip was long enough
But when it's side by side in Railway it probably takes a millisecond or less
I'll just remember to always pause a second before pinging Redis
nope, it takes around 2 seconds
2 seconds for what?
for networking to start working properly
Ohhhhhhh
but it's usually a dns error, not an io error
I see
OK wild
Thanks so much I was losing my sanity
it will not always be required, railway is hands on keyboard to eliminate this network initialisation delay to what I heard will be instantaneous
Do you know if there's anyway to make deploys faster?
It takes like 30 seconds to a minute just to see the build logs then another minute for the app to finally deploy
It's the least productive aspect when I develop
I have not experienced that myself with my go apps
Contrast to Netlify, I just type make deploy and 5 seconds later it's live
I am deploying from the CLI
I do too
So railway up --service=... --detach
Which plan are you on?
hobby
Me too
How long does it take you to deploy a hello world?
I do my
railway up
and I can see build logs right after the upload is doneI did a test this is like 60-90 seconds to print hello world
Worst aspect of Railway imo
Am I doing something wrong? It lose my focus it takes so long
okay well now there an issue
That's why debugging the Redis thing took so long
Every attempt took like 2-4 minutes to validate
yeah no this is a clear issue
Who do we tag?
well since i was given permission to tag him for platform issues - @Cooper - build and deploy logs slow to come in
To summarize for Jake, first Brody helped me diagnose a network issue. I was calling Ping on a Redis client too quicky (immediately after connecting) but it turns out I needed to wait some 2 seconds for networking to work -- once I added a delay everything started working, I didn't even realize this was an issue and has never come up for me previously)
But the whole time I've been having incredibly slow deploys, as showcased in the video attached above. It takes a minute if not more to see the build logs (same delay in terminal and on web), so I'm used to waiting maybe 1-2 minutes on average for every single deploy
What's your CLI version?
zaydek@Zaydeks-MacBook-Pro experimental-hello-world % railway --version
railwayapp 3.4.0
i can replicate the slow logs, i did a test deploy of a hello-world http server and the server became active before any build or deploy logs came through
I tried upgrading the CLI to 3.5.2 but same issue
no worries, if I can reproduce it then it's not an issue with how you are doing things
i can still reproduce this today, baffled as to why no one else has reported it yet
Could you link me to your project for this please?
Build/deploy logs may not be showing up for some users - Incident d...
Build/deploy logs may not be showing up for some users - Incident details - Railway Status
This incident has been resolved, apologies for any inconvenience caused!
https://status.railway.app/clr6l0hql353667bfn5vsnpqyam