Issue connecting to pg db after migration

After i migrated to the newer docker image db, my go services seem to be connecting to new private url fine, but my rust service is having some trouble. I'm not sure if I've just done something wrong but any help would be appreciated
No description
14 Replies
Percy
Percy7mo ago
Project ID: N/A
ionlytakeLs
ionlytakeLs7mo ago
0a60e333-aaf7-444b-bb0c-4d3a3e9ac57d
Brody
Brody7mo ago
are you using nixpacks to build the rust app?
ionlytakeLs
ionlytakeLs7mo ago
Yes
Brody
Brody7mo ago
can you add a 3 second sleep to the beginning of the start command?
ionlytakeLs
ionlytakeLs7mo ago
yea one sec lemme do that Hey sorry i had to step out for a few, but i tried putting in the sleep, using the public and private url and neither seem to be working
Brody
Brody7mo ago
how did you go about adding the sleep?
ionlytakeLs
ionlytakeLs7mo ago
i just added it to the start command like you said
Brody
Brody7mo ago
can you show me what you currently have for a start command?
ionlytakeLs
ionlytakeLs7mo ago
Yea this is what i have: sleep 3 && ./bin/auth-service
Brody
Brody7mo ago
try adding this service variable ENABLE_ALPINE_PRIVATE_NETWORKING=true
ionlytakeLs
ionlytakeLs7mo ago
ok its redeploying rn im rly not sure which worked bc in the same redeploy i just added an sslmode disable to the connection in the codebase but its working now!
ionlytakeLs
ionlytakeLs7mo ago
!!
No description
Brody
Brody7mo ago
awesome!!