hapostgres / pg_auto_failover

Postgres extension and service for automated failover and high-availability
Other
1.1k stars 115 forks source link

Question) Failed to find IP #1037

Open farmboy-dev opened 3 months ago

farmboy-dev commented 3 months ago

Hello pg_auto_failover team,

I'm trying to set up it, but when I set the hostname, it doesn't work occurring error: failed to find IP.

I'm using docker container and I added dns info to the container, but it seems pg_autoctl ignores it, so I set hostname to my host's hostname, but it didn't work, then I set hostname to my host's IP, but it showed the same error: failed to find IP...

container side, it can resolve hostname, so I can curl hostname and IP both. how to resolve it?

Thank you!

farmboy-dev commented 3 months ago

info postgres 16.2 pg_auto_failover 2.1 network can't access 8.8.8.8 (private network)