Hi everybody,
I have this problem and i don’t know how to fix it.
postgrest_1 | [HPM] Proxy created: / -> http://127.0.0.1:3000
postgrest_1 | 03/Feb/2025:14:04:50 +0000: Failed listening for notifications on the "pgrst" channel. Just "connection to server at \"db.mydomain.local\" (172.18.0.9), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n"
postgrest_1 | 03/Feb/2025:14:04:50 +0000: Failed listening for notifications on the "pgrst" channel. ExitFailure 1
postgrest_1 | 03/Feb/2025:14:04:50 +0000: Retrying listening for notifications in 2 seconds...
postgrest_1 | 03/Feb/2025:14:04:50 +0000: Attempting to reconnect to the database in 1 seconds...
postgrest_1 | 03/Feb/2025:14:04:50 +0000: Failed to query the PostgreSQL version. {"code":"PGRST000","details":"connection to server at \"db.mydomain.local\" (172.18.0.9), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n","hint":null,"message":"Database connection error. Retrying the connection."}
postgrest_1 | 03/Feb/2025:14:04:50 +0000: Failed to query database settings for the config parameters.{"code":"PGRST000","details":"connection to server at \"db.mydomain.local\" (172.18.0.9), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n","hint":null,"message":"Database connection error. Retrying the connection."}
postgrest_1 | 03/Feb/2025:14:04:50 +0000: Failed to query the role settings. {"code":"PGRST000","details":"connection to server at \"db.mydomain.local\" (172.18.0.9), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n","hint":null,"message":"Database connection error. Retrying the connection."}
postgrest_1 | 03/Feb/2025:14:04:50 +0000: Config reloaded
postgrest_1 | 03/Feb/2025:14:04:50 +0000: Failed to load the schema cache. {"code":"PGRST000","details":"connection to server at \"db.mydomain.local\" (172.18.0.9), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n","hint":null,"message":"Database connection error. Retrying the connection."}
I think the issue is related to the resolution of db.mydomain.local
mapping to 172.18.0.9
, but I couldn’t find this IP address anywhere, nor any configuration related to db.mydomain.local
.
Below is my current Docker container network setup:
------------------------------------------------------
NETWORK | SUBNET IPv4 | GATEWAY IPv4
---- | ---- | ----
bridge | "172.17.0.0/16" | "172.17.0.1"
host | null | null
none | null | null
open-balena_default | "172.18.0.0/16" | "172.18.0.1"
------------------------------------------------------
CONTAINER | IP | Gateway | PORTS | Network
---- | ---- | ---- | ---- | ----
openbalena-admin_ui_1 | | | | open-balena_default
openbalena-admin_postgrest_1 | | | | open-balena_default
openbalena-admin_remote_1 | | | | open-balena_default
open-balena-sut-1 | | | | open-balena_default
open-balena-tag-sidecar-1 | | | | open-balena_default
open-balena-dut-1 | | | | open-balena_default
open-balena-haproxy-1 | 172.18.0.9 | 172.18.0.1 | 80 443 1936 | open-balena_default
open-balena-cert-manager-1 | 172.18.0.7 | 172.18.0.1 | | open-balena_default
open-balena-haproxy-sidecar-1 | 172.18.0.12 | 172.18.0.1 | | open-balena_default
open-balena-vpn-1 | 172.18.0.8 | 172.18.0.1 | | open-balena_default
open-balena-registry-1 | 172.18.0.3 | 172.18.0.1 | | open-balena_default
open-balena-api-1 | 172.18.0.6 | 172.18.0.1 | | open-balena_default
open-balena-balena-ca-1 | 172.18.0.4 | 172.18.0.1 | | open-balena_default
open-balena-db-1 | 172.18.0.11 | 172.18.0.1 | | open-balena_default
open-balena-docker-1 | 172.18.0.5 | 172.18.0.1 | | open-balena_default
open-balena-s3-1 | 172.18.0.10 | 172.18.0.1 | | open-balena_default
open-balena-redis-1 | 172.18.0.2 | 172.18.0.1 | | open-balena_default
------------------------------------------------------
I installed OpenBalena a few weeks ago, and while reading the manual page of open-balena-admin GitHub - dcaputo-harmoni/open-balena-admin: Open Balena Admin I noticed that I couldn’t execute some indicated steps, for example:
source open-balena/config/activate ; source open-balena/compose/versions
because those files do not exist.
I also noticed that the Docker network was named open-balena_default
instead of openbalena_default
, which was referenced in open-balena-admin/compose/services.yml
, so I changed it.
Now, I must have done something wrong, but I can’t figure out the correct way to fix this issue.
Any help would be greatly appreciated!
Thank you in advance,
Andrea