R
Railwayβ€’10mo ago
spidertwin2

Postgres Connection Error

My app is unable to connect with railway's postgres service. Also, when I used DATABASE_URL dbgate error is - 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) Please help πŸ™
No description
No description
28 Replies
Percy
Percyβ€’10mo ago
Project ID: 6df8fc82-10e0-4b56-ab0b-b2ce2d7e52b5
spidertwin2
spidertwin2β€’10mo ago
6df8fc82-10e0-4b56-ab0b-b2ce2d7e52b5
Brody
Brodyβ€’10mo ago
can you try restarting the database?
spidertwin2
spidertwin2β€’10mo ago
did restart, still same error in console and dbgate
No description
spidertwin2
spidertwin2β€’10mo ago
Also, I cannot find a railway link xxxx-xxx-production.up.railway.app to my deployed app even after I do railway up..is it because my db is unable to connect?
Brody
Brodyβ€’10mo ago
restart the database, not your app if you don't have a domain yet, go to the service settings and generate one
spidertwin2
spidertwin2β€’10mo ago
this is probably very basic - how should I restart my db?
Brody
Brodyβ€’10mo ago
depends on if you have a legacy database or a database service. does your database have a volume?
spidertwin2
spidertwin2β€’10mo ago
Yes, my db has a volume
Brody
Brodyβ€’10mo ago
then you restart it the same way you restart a deployment
spidertwin2
spidertwin2β€’10mo ago
As I did here?
Brody
Brodyβ€’10mo ago
yes but restart the database, not your app
spidertwin2
spidertwin2β€’10mo ago
This is probably too much handholding, but please can you send me screenshots of steps β€” sorry for trouble
Brody
Brodyβ€’10mo ago
open the database and click this highlighted button in the 3 dot menu
No description
spidertwin2
spidertwin2β€’10mo ago
Already did, same error
Want results from more Discord servers?
Add your server