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