second connect to postgres fails
gibsfinancedev
PROOP

a year ago

after a container is deployed (after the initial deployment) this error occurs when trying to connect to it via DATABASE_URL

40 |     res = resolve

41 |     rej = reject

42 |   }).catch((err) => {

43 |     // replace the stack trace that leads to `TCP.onStreamRead` with one that leads back to the

44 |     // application that created the query

45 |     Error.captureStackTrace(err)

^

ECONNREFUSED: Failed to connect

errno: 103

syscall: "connect"

at /app/node_modules/pg-pool/index.js:45:11

Bun v1.1.34 (Linux x64 baseline)

error: script "sponsor" exited with code 1
Solved

9 Replies

gibsfinancedev
PROOP

a year ago

17ebdb2c-d451-4fe9-997a-dd53742e883a


gibsfinancedev
PROOP

a year ago

i am able to connect to the db from the public url, i am able to see the previous deployment's migrations as well


gibsfinancedev
PROOP

a year ago

if i delete the database and recreate it, the first deployment / connection to it works, then i redeploy a service and it can no longer be connected to


brody
EMPLOYEE

a year ago

we cant help without a project, can you provide an id for a new project?


gibsfinancedev
PROOP

a year ago

i decided to try to reconstruct it. tearing it down and rebuilding it in the same config did the job. i also noticed that i was unable to change the port. maybe a state from the project being so old? anyway, issue is gone now


brody
EMPLOYEE

a year ago

we have never allowed you to change the proxy port, it is random


gibsfinancedev
PROOP

a year ago

ah, no, the port going out to the generated url


gibsfinancedev
PROOP

a year ago

in the service that was connecting


gibsfinancedev
PROOP

a year ago

no worries. it seems to be fixed after destroying it and recreating it. it was an old project


Status changed to Solved brody about 1 year ago


Loading...