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