dial tcp: lookup db timeout #4514
|
Hi, I use this compose file Miniflux Installation with Docker. [db] |
[db] | PostgreSQL Database directory appears to contain a database; Skipping initialization
[db] |
[db] | 2026-08-22 08:38:04.378 UTC [1] LOG: starting PostgreSQL 18.6 (Debian 18.6-1.pgdg13+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit
[db] | 2026-08-22 08:38:04.380 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
[db] | 2026-08-22 08:38:04.380 UTC [1] LOG: listening on IPv6 address "::", port 5432
[db] | 2026-08-22 08:38:04.382 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
[db] | 2026-08-22 08:38:04.400 UTC [29] LOG: database system was shut down at 2026-08-22 08:37:56 UTC
[db] | 2026-08-22 08:38:04.406 UTC [30] FATAL: the database system is starting up
[db] | 2026-08-22 08:38:04.416 UTC [1] LOG: database system is ready to accept connections
[miniflux] | dial tcp: lookup db on 10.89.6.1:53: read udp 10.89.6.3:59598->10.89.6.1:53: i/o timeoutservices:
miniflux:
image: docker.io/miniflux/miniflux:latest
ports:
- "8083:8080"
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
- RUN_MIGRATIONS=1
- CREATE_ADMIN=1
- ADMIN_USERNAME=gandalf
- ADMIN_PASSWORD=test123
db:
image: docker.io/library/postgres:18
environment:
- POSTGRES_USER=miniflux
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=miniflux
volumes:
# You may have to adjust the volume path depending on the version of Postgres
# Postgres 18 uses /var/lib/postgresql
# Postgres 17 and below uses /var/lib/postgresql/data
# See https://hub.docker.com/_/postgres#pgdata
- miniflux-db:/var/lib/postgresql
healthcheck:
test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 10s
start_period: 30s
volumes:
miniflux-db:docker.io/miniflux/miniflux latest 0df8845b97b6 4 weeks ago 34.3 MBThank for miniflux! |
Replies: 1 comment 1 reply
|
That's Podman rather than Docker, right? The 10.89.x.x subnet with the DNS server sitting on the gateway is the giveaway, and the fully qualified If so, your compose file isn't the problem. Two usual causes. Either aardvark-dns isn't installed, in which case netavark brings the network up happily and there's simply nothing listening on that address, or a host firewall is dropping UDP 53 on the bridge. ufw and firewalld both do this, and firewalld does it again on every reload because the reload wipes netavark's rules. From the host: and from inside the container: If One more thing worth checking. You mentioned other self hosted stacks work fine on the same host. Those are probably sitting on the default |
That's Podman rather than Docker, right? The 10.89.x.x subnet with the DNS server sitting on the gateway is the giveaway, and the fully qualified
docker.io/...image names point the same way.If so, your compose file isn't the problem.
i/o timeoutmeans nothing answered on port 53 at all. A wrong service name would come back as an immediate NXDOMAIN, not a timeout, sodbis resolving fine as far as compose is concerned and aardvark-dns just isn't replying.Two usual causes. Either aardvark-dns isn't installed, in which case netavark brings the network up happily and there's simply nothing listening on that address, or a host firewall is dropping UDP 53 on the bridge. ufw and firewalld bot…