R
Railway•13mo ago
lanford33

Error: P1001: Can't reach database server at xxxx, Please make sure your database server ...

I'm using PostgreSQL Basically, every time I deploy my application (a simple express app using Prisma), this error is triggered. Sometimes it takes two to three minutes to successfully connect, and other times it continues until the application crashes. I've already switched databases once, but the issue remains the same. It's incredibly frustrating. (I'm writing this post now because half an hour has passed, and I still haven't successfully deployed.) I have several applications deployed on Railway, but this is the first time I've encountered this problem. Previously, I had a Developer plan account, but now it has been changed to Hobby. I'm not sure if that is related to the issue. Here is my ServiceID: b5e0ccd6-5868-4f37-aefa-01fa0a8dda6b.
16 Replies
Percy
Percy•13mo ago
Project ID: b5e0ccd6-5868-4f37-aefa-01fa0a8dda6b
Faraz
Faraz•13mo ago
Looks like it has connected successfully now?
lanford33
lanford33•13mo ago
Yeah, finally. But the point is, each time when I deploy the application, I'll suffer this error... I'm not sure when it will be deployed successfully. maybe you can check how many times I restarted😂
Faraz
Faraz•13mo ago
Wanna deploy again for me? I want to see the error while it happens. Because I don't think it's from our side as your DB seems fine.
lanford33
lanford33•13mo ago
Okay, redeploying
Faraz
Faraz•13mo ago
So I see the error in your logs but the database is fine.
Faraz
Faraz•13mo ago
You can validate this yourself by connecting directly to the DB.
lanford33
lanford33•13mo ago
So the problem is why Can't reach database server, because of the network between the application server and the database?
Faraz
Faraz•13mo ago
I am not sure, I'd imagine it's an application issue.
lanford33
lanford33•13mo ago
Okay, I'll take a look... I hope it is an application issue so that I can solve it by myself Btw, how can I change my plan? I can only cancel my plan in 'Manage Plan'
Faraz
Faraz•13mo ago
What do you want to change it to? You're already on the Hobby plan.
lanford33
lanford33•13mo ago
Pro. Once the regions feature goes live
Faraz
Faraz•13mo ago
We're working on improving that flow this month. For now though, you can create a new team and sign up for the pro plan. If you click on your avatar on the top right, you'll see the "Create a Team" option.
Ayush
Ayush•10mo ago
@lanford33 did you figure out the fix? im having the exact same issue fix here: https://discord.com/channels/713503345364697088/1159975463389761638
T4P4N
T4P4N•10mo ago
Having the same here from yesterday! I've tried multiple times, even migrations ran successfully and i was able to connect the Db when running the web server locally. Is everything OK from railway side? Project ID: 091bd9c2-1eea-4e89-a6a6-a71528d9ca60
Brody
Brody•9mo ago
Is everything OK from railway side?
nope