Railway nightmare today

a year ago

My project industrious-analysis has been experiencing Redis timeouts ever since the earlier outage, and despite trying to redeploy all services after the outage was declared resolved, I am still experiencing the issue. I don't know what else to try at this point since I haven't changed anything on my end since last night.

Solved

162 Replies

a year ago

Does the Redis service show any logs?


a year ago

nothing that seems notable. I am not sure the request is even making it there


a year ago

I suspect a network issue


a year ago

Are you using the private service URL to connect to it?


a year ago

yes


a year ago

What exactly are the error messages you're getting?


a year ago

timeouts


a year ago

Could you send the exact error message?


a year ago

well that was weird. it's working now despite me not doing anything??


a year ago

hmm it is likely to time out again though


a year ago

it worked once in prod and now it's taking forever in dev


a year ago

BTW the outage broke both my environments


a year ago

@name:"api-gateway" AND @err.message:"failed with status code 500" AND @err.stack:"Error: failed with status code 500\n    at onResFinished (/app/node_modules/.pnpm/pino-http@11.0.0/node_modules/pino-http/logger.js:115:39)\n    at ServerResponse.onResponseComplete (/app/node_modules/.pnpm/pino-http@11.0.0/node_modules/pino-http/logger.js:178:14)\n    at ServerResponse.emit (node:events:531:35)\n    at onFinish (node:_http_outgoing:1082:10)\n    at callback (node:internal/streams/writable:766:21)\n    at afterWrite (node:internal/streams/writable:710:5)\n    at afterWriteTick (node:internal/streams/writable:696:10)\n    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)" AND @err.type:"Error" 

a year ago

@req.id:3 AND @req.method:"POST" AND @req.remoteAddress:"fd12:59bf:c23a:0:a000:75:159b:3779" AND @req.remotePort:38392 AND @req.url:"/ai/generate?wait=true" AND @req.query.wait:"true" AND @req.headers.accept:"*/*" AND @req.headers.accept-encoding:"gzip, deflate" AND @req.headers.accept-language:"*" AND @req.headers.connection:"keep-alive" AND @req.headers.content-length:"56045" AND @req.headers.content-type:"application/json" AND @req.headers.host:"api-gateway.railway.internal:3000" AND @req.headers.sec-fetch-mode:"cors" AND @req.headers.user-agent:"node" 

a year ago

I can't find redis failures anymore after all the redeployments


a year ago

I hate doing this from my phone


a year ago

I haven't been home all day


a year ago

lol only one message made it through. we're back to timeouts


a year ago

1433603819232563331


a year ago

it's still broken. ugh


a year ago

I was hoping it would be a transient thing that would self heal but nope it's been hoooours


a year ago

stopped working a bit after lunchtime


a year ago

I'll work on adding better logging in the meantime


a year ago

Railway nightmare today


a year ago

grrr now my production Postgres is hanging and the redeploy is too

today has been a bad day

it finally deployed but I still can't connect to it. wtf

doesn't even work on the website


a year ago

about the Postgres service, do you see any kind of error logs?


a year ago

I redeployed it like twice. it says active but nothing shows up here

1433653643403591743


a year ago

can't even connect via the website

1433653764111204412


a year ago

can you remove your current deployment and then try a fresh deployment by hitting CTRL + K and then deploy latest commit


a year ago

Can I get a link to that service?



a year ago

it doesn't give me that option but I did deploy source image or whatever


a year ago

That option doesnt exist on a postgres image. It's alright


a year ago

waiting for it to come online and looking at it


a year ago

Thats indeed odd, I'll wait for the team response on that, sorry for any issue.


a year ago

it's taking its sweet time


a year ago

this is like, my third attempt at redeploying it


a year ago

The creating containers step randomly might take some time. We are working on a project that will fix that and a few other issues to make things much faster


a year ago

I'm really frustrated that both my dev and prod environments stopped working after lunch today and have been hosed for hours


a year ago

even now the dev bot isn't working


a year ago

the incident earlier broke my app


a year ago

The degraded performance in US-East?


a year ago

yes. everything was fine until that incident


a year ago

afterwards? it has been broken all day


a year ago

tbh it might also be partly a Qdrant issue. my app logs show it hanging a lot. or it's a networking thing idk. AWS has been unreliable lately


a year ago

Is your Qdrant hosted on AWS?


a year ago

I don't see qdrant on this project


a year ago

I hosted it externally because I didn't know any better. does Railway offer hosting for it?


a year ago

it's on qdrant.io


a year ago

and they use us-east-1 for my cluster


a year ago

Railway does! I host my qdrant instances on Railway always


a year ago

hmm then it would be good to just migrate


a year ago

Direct link for it:



a year ago

beat me to it


a year ago

it shows as active but the db connection still isn't working


a year ago

Interesting... Let me check something internally


a year ago

lol it's still unable to be connected to. I'm working on setting up Qdrant on Railway and I hope it actually works


a year ago

Need to bring this up to the right team. You should be good to connect with an external DB viewer like tableplus


a year ago

going to get this fixed though


a year ago

it's not working


a year ago

I use Jetbrains and their DB connectivity stuff


a year ago

I can connect to my DEV postgres but not PROD


a year ago

Fixed (Paulo the goat)

Reload yor web page and it should be good!


a year ago

the web page works but the external connection is still not working


a year ago

tbh I don't like using the web page because it's so limited


a year ago

hard to do any serious database management


a year ago

it's handy when I'm on my phone but that's about it


a year ago

External connections to Postgres are working.


a year ago

my dev one works fine, but prod doesn't


a year ago

I double checked the password and port on the proxy and everything. it was working before today's mess


a year ago

Prod works fine with regard to both private and public connections; we have verified that.


a year ago

1433673275577471036

1433673276042907840


a year ago

as I said, one works, the other fails


a year ago

Make sure that your username credential is correct, from what I remember Railway uses the railway username.


a year ago

they use postgres for the username actually


a year ago

I double checked all the credentials. which didn't change since yesterday, when everything was fine


a year ago

my suspicion is that some networking stuff broke badly during the incident earlier


a year ago

as a separate example, for some reason I can't write to Qdrant.io but I can read. bizarre


a year ago

Any connection issues would be on your end. We have verified that the database is accessible via both private and public connections.


a year ago

the proxy domain might be broken idk


a year ago

I guess I can try generating a new one


a year ago

There could be a firewall on your end blocking the current TCP port that is in use. Generating a new TCP proxy will get you a different port.


a year ago

tried a new domain and same issue


a year ago

again, this was working before the incident. I had zero problems. so it's not my firewall


a year ago

Again, we have verified that the database is accessible via both private and public connections.


a year ago

if it was my firewall I would have trouble accessing both dev and prod. and since nothing changed in my firewall between yesterday and now, it is not the issue


a year ago

basic process of elimination


a year ago

I'm sorry, but I don't know what to tell you at this point. The database is accessible to the public internet without issue.


a year ago

how exactly are you verifying that?


a year ago

I am using the TCP proxy feature


a year ago

We have internal tools that I couldn't disclose, but I can show you Telnet being able to communicate.

1433676415043375155


a year ago

Is that another database? As it differs from her screenshot (the proxy domain)


a year ago

telnet doesn't tell me anything really. a real test would be to connect from outside using the same approach (via the postgres connection)


a year ago

*her screenshot


a year ago

and I changed it already as a debugging step


a year ago

sorry!


a year ago

it's the correct proxy

1433676982893412464


a year ago

I am most certainly outside. I am not anywhere near a Railway data center.


a year ago

When using a database client, I get a "wrong password" error instead of a connection failure like you're experiencing.

1433677389812072572


a year ago

still fails on the new proxy

1433677564475347024


a year ago

I have pasted the password so many times


a year ago

Also, I can see that DBeaver is showing some information about the database (like versions) so I'm guessing the issue here are credentials. I also believe that you're copying the right password.


a year ago

maybe I should regen the password?


a year ago

That would be the best option, but I'm unsure if changing the environment variable would make a difference. You would need to SSH into the container and change it manually.


a year ago

We have a way to regen the password in our UI now.


a year ago

it didn't work lol


a year ago

I tried regen and it didn't make a new password


a year ago

so not even the UI for the password regen is working


a year ago

it worked earlier when I generated a new dev password


a year ago

Do you get any kind of errors when trying it?


a year ago

nope, just doesn't actually update it


a year ago

Maybe the password regeneration feature uses the current credentials to reset it?


a year ago

oh actually it popped up an error that said failed to fetch


a year ago

this time it didn't say "failed to fetch"

1433678919512621208


a year ago

the issue with even regenerating the password may be a hint about what's happening under the hood


a year ago

I was an idiot and accidentally leaked my dev password on Github today and had no issue making a new password for my dev DB via the same UI


shxkm
HOBBY

a year ago

Same happening to me. Website completely down with Redis errors.


shxkm

Same happening to me. Website completely down with Redis errors.

a year ago

Hey, would it be possible to open a help thread about your problem? It helps us organize threads and get you a faster response.


a year ago

I tried again and same issue


passos

Hey, would it be possible to open a help thread about your problem? It helps us organize threads and get you a faster response.

shxkm
HOBBY

a year ago

I did. I replied here so it doesn’t get treated as a misconfiguration or isolated incident.


a year ago

shxkm, please open your own thread.


a year ago

I'm trying to use this in my development environment and I either get refused connections or timeouts (the former for the internal networking, the latter for the public URL). not very promising, unless I'm doing something dumb


a year ago

trying the TCP proxy now I guess


a year ago

proxy works, but it's dumb that I have to use that for internal services talking to each other


brody

shxkm, please open your own thread.

shxkm
HOBBY

a year ago

As I said clearly, I DID open my own thread. But Railway tends to not acknowledge its own bugs and issues so I replied here as a “me too”.

By the way, the thread you told me to open has ZERO replies from Railway employees. My production app has been down for more than 12 hours. Friday is the busiest day for my app. I wish I didn’t move here from Heroku.

https://station.railway.com/questions/redis-ttimeouts-all-over-site-not-respo-e871fa03


shxkm

As I said clearly, I DID open my own thread. But Railway tends to not acknowledge its own bugs and issues so I replied here as a “me too”. By the way, the thread you told me to open has ZERO replies from Railway employees. My production app has been down for more than 12 hours. Friday is the busiest day for my app. I wish I didn’t move here from Heroku. <https://station.railway.com/questions/redis-ttimeouts-all-over-site-not-respo-e871fa03>

a year ago

I'm lucky that my app is just a project for myself and a few friends, but unfortunately for me I rely on it heavily and it really ruined my day to have it down for that many hours.


lbds137

I'm lucky that my app is just a project for myself and a few friends, but unfortunately for me I rely on it heavily and it really ruined my day to have it down for that many hours.

shxkm
HOBBY

a year ago

I have hundreds of customers. Some of them will be issuing refund requests because of this.

I hope you learned your lesson because I surely learned mine.


shxkm

I have hundreds of customers. Some of them will be issuing refund requests because of this. I hope you learned your lesson because I surely learned mine.

a year ago

Unfortunately I don't have a ton of energy to do lots of manual infrastructure provisioning myself, which is why I use Railway. This is the first major problem I've had since starting to use the service a few months ago, but admittedly my application got more complex recently, with multiple interconnected services. It's frustrating because most of it works, but because my app is for an AI use case, RAG is very important to me, and my connection to an external Qdrant provider has been failing repeatedly. I was advised that Railway now offers Qdrant, so I've been trying to sync my stuff to stay in the ecosystem, but even that has been failing badly due to timeouts. I'm really not impressed and hope that this gets resolved soon so I can go back to actually using my app rather than losing sleep over it. I stayed up till like 3:30am and I'm kinda screwed for today because I have an AWS certification exam that I'll be taking on very little sleep.


a year ago

I'll have to check the status of my app when I have a chance but it would be helpful to know if anyone is looking into my issues or if I have to pull teeth and do most of the debugging myself


a year ago

hmm, I was able to regen the password and can connect locally again. thanks to whoever fixed it


a year ago

having issues with creating collections on Railway Qdrant now


a year ago

ugh


a year ago

if it's not one thing it's another


a year ago

nvm it's listing collections that keeps timing out


a year ago

either way


a year ago

and deleting apparently


a year ago

I'm gonna just give up on Qdrant tbh. too much hassle


a year ago

at least my Postgres is working. I can switch to pgvector and call it a day


a year ago

ok new issue - how do I rotate credentials with pgvector?


a year ago

that particular image doesn't give me access to the database tab like a regular Postgres instance


a year ago

that's expected as it isn't a database template made by Railway


a year ago

how do I do it then?

1433973061601988719


a year ago

that popup is wrong because there is no such tab


a year ago

I can't confirm it right now but can't you install the pgvector extensions directly onto the official template?


a year ago

I tried


a year ago

it's not a thing


a year ago

I wouldn't have made a new db if I could have just intalled that


a year ago

you would need to do it via SQL then, that modal is detecting it as an official template when it's not


a year ago

yeah that's what I ended up doing


a year ago

this is a usability problem though


a year ago

that modal is not applicable to this template


a year ago

don't you love it when you're vibe coding and the AI leaks your password 🙃 happened twice now


a year ago

a #🤗|feedback thread about it is more than welcome :)


a year ago

can't you tell your vibe coding tool to ignore .env files?


a year ago

.env is already ignored


a year ago

it committed it to a todo list file 🤦‍♀️


a year ago

the credentials are rotated now. but man that was annoying


a year ago

done: #pgvector template doesn't allow UI-based password rotation


a year ago

alright I'm good to close this thread


a year ago

got my stuff fixed after a very stressful couple of days


a year ago

!s


Status changed to Solved passos • 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...