R
Railway13mo ago
R

pg_isready over internal network

Hi, I'm new to railway, so sorry if this q has an easy answer I somehow can't find. I have a postgres db on railway and another process that is trying to call pg_dbisready --dbname=<DB_PRIVATE_URL>. The log says "postgres.railway.internal:5432 - no response". This makes me think something about my db config is wrong and it's rejecting connections over the internal network. It works with the standard (viaduct.proxy.rlwy.net) url, but I think this means I pay for data transfer?
Solution:
try to add a 3 second sleep before starting your app/pg_isready
Jump to solution
11 Replies
Percy
Percy13mo ago
Project ID: 5bcf11b0-2e3b-4e09-8ca6-5f10085d0b1c
R
ROP13mo ago
5bcf11b0-2e3b-4e09-8ca6-5f10085d0b1c Project ID: 5bcf11b0-2e3b-4e09-8ca6-5f10085d0b1c
Brody
Brody13mo ago
do you mean pg_isready?
R
ROP13mo ago
yes, sorry, typo
Brody
Brody13mo ago
are you building your app with nixpacks?
R
ROP13mo ago
I've tried one with nixpacks and another simpler jsnode docker jsnode to simply call pg_isready
Brody
Brody13mo ago
at what point in your apps lifecycle are you running the command with either nixpacks or a dockerfile
R
ROP13mo ago
shortly after startup. DB was deployed and active the whole time
Solution
Brody
Brody13mo ago
try to add a 3 second sleep before starting your app/pg_isready
R
ROP13mo ago
this works. thanks
Brody
Brody13mo ago
no problem! oh and
the standard (viaduct.proxy.rlwy.net) url, but I think this means I pay for data transfer?
yes you would be subject to egrees fees when using the public tcp proxy, in contrast there is indeed no egress fees when using the private network to communicate with the database
Want results from more Discord servers?
Add your server