R
Railway11mo ago
Michael

Failure to connect to database after migrating (postgres)

I can see there were other threads made on this but I was told to make another thread. Anyway I migrated to the new DB and I can't connect to it on railway, but I can on my computer. According to other threads this is a known incident but it also appeared it was announced patched, but it still doesn't work. Whole error: PrismaClientInitializationError: Can't reach database server at roundhouse.proxy.rlwy.net:29970 Please make sure your database server is running at roundhouse.proxy.rlwy.net:29970. at startFn (/app/node_modules/@prisma/client/runtime/index.js:27188:17) { clientVersion: '4.5.0', errorCode: 'P1001' }
Solution:
the database is successfully online and migrated. Can you please try adding a sleep 3 before your start command
Jump to solution
7 Replies
Percy
Percy11mo ago
Project ID: e353ad81-5750-4680-83db-c659cdacff54
Michael
Michael11mo ago
e353ad81-5750-4680-83db-c659cdacff54 lmk if u need db id or nah same group tho
Brody
Brody11mo ago
@jr
Solution
jr
jr11mo ago
the database is successfully online and migrated. Can you please try adding a sleep 3 before your start command
Michael
Michael11mo ago
under deploy custom start command? Okay thanks that worked
jr
jr11mo ago
awesome. very much not the optimal solution. But unfortunatley needed at the moment. Hopefully not for much longer
Michael
Michael11mo ago
alr
Want results from more Discord servers?
Add your server