spidertwin2
Explore posts from serversPostgres Connection Error
ok, so I realized my app needs two services --- one postgres for db, another empty service to deploy my app. I was using db service for deployment as well which created trouble. Now with
railway up
I am deploying to the second service (not db). This way, I am able to deploy my app and also get a railway provided url.35 replies
Postgres Connection Error
so, I deleted the service and created a new one...seemed to work fine then, I was able to execute
yarn prisma db push
to update db. I was even able to connect with dbgate. But when I did railway up
from my local environment, the same error surfaced - database connection failed, dbgate connection failed.35 replies
Postgres Connection Error
Error: Connection terminated unexpectedly
at e.exports.<anonymous> (/Applications/DbGate.app/Contents/Resources/app.asar/packages/plugins/dbgate-plugin-postgres/dist/backend.js:17:175293)
at Object.onceWrapper (node:events:509:28)
at e.exports.emit (node:events:390:28)
at Socket.<anonymous> (/Applications/DbGate.app/Contents/Resources/app.asar/packages/plugins/dbgate-plugin-postgres/dist/backend.js:9:141124)
at Socket.emit (node:events:402:35)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Error JSON: {}
Connection: {
"server": "***",
"engine": "postgres@dbgate-plugin-postgres",
"useDatabaseUrl": "***",
"sshMode": "userPassword",
"sshKeyfile": "***",
"databaseUrl": "***"
}
Platform: darwin
35 replies