R
Railway6mo 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
Percy6mo ago
Project ID: e353ad81-5750-4680-83db-c659cdacff54
Michael
Michael6mo ago
e353ad81-5750-4680-83db-c659cdacff54 lmk if u need db id or nah same group tho
Brody
Brody6mo ago
@jr
Solution
jr
jr6mo ago
the database is successfully online and migrated. Can you please try adding a sleep 3 before your start command
Michael
Michael6mo ago
under deploy custom start command? Okay thanks that worked
jr
jr6mo ago
awesome. very much not the optimal solution. But unfortunatley needed at the moment. Hopefully not for much longer
Michael
Michael6mo ago
alr