Postgresql error in the chirpstack docker

Is this problem solved?
I have the same issue when using the chirpstack docker.
So when running the “docker-compose up”, I encountered the following log and I can not access the application server web page via 8080 port.
What I am wrong?

ping PostgreSQL database error, will retry in 2s" error=“dial tcp: lookup postgresql on 127.0.0.11:53: no such host”

Did you wait for a while? Does it start working after a minute?

I don’t know what’s in your docker-compose file. But the official example describes two errors that may occur in the logs, which should go away after some time.

@sp193
Thank you for your kind reply.

I have found the cause of this problem, so the PostgreSQL was not started properly when running the docker-compose up.
There was a problem in the old Raspberry Pi OS, I used Raspberry Pi OS 10.
After updating it into 11 (bullseye), this problem has been removed itself. :grinning:

Hi,
I am coming across the same issue. I am using chirpstack-docker V3 on macOS Monterey. Here is a snippet of log that I see upon running docker-compose up:

chirpstack-docker-chirpstack-network-server-1      | time="2022-11-17T18:47:12.059519551Z" level=warning msg="storage: ping PostgreSQL database error, will retry in 2s" error="dial tcp: lookup postgresql on 127.0.0.11:53: no such host"
chirpstack-docker-chirpstack-application-server-1  | time="2022-11-17T18:47:12.39113189Z" level=warning msg="storage: ping PostgreSQL database error, will retry in 2s" error="dial tcp: lookup postgresql on 127.0.0.11:53: no such host"
chirpstack-docker-chirpstack-gateway-bridge-1      | time="2022-11-17T18:47:13.451191906Z" level=info msg="integration/mqtt: publishing event" event=up qos=0 topic=gateway/647fdafffe008193/event/up uplink_id=910af5d2-7096-4ffd-bd73-8783a735cc3c
chirpstack-docker-chirpstack-network-server-1      | time="2022-11-17T18:47:14.048965667Z" level=warning msg="storage: ping PostgreSQL database error, will retry in 2s" error="dial tcp: lookup postgresql on 127.0.0.11:53: no such host"
chirpstack-docker-chirpstack-application-server-1  | time="2022-11-17T18:47:14.378294871Z" level=warning msg="storage: ping PostgreSQL database error, will retry in 2s" error="dial tcp: lookup postgresql on 127.0.0.11:53: no such host"
chirpstack-docker-chirpstack-network-server-1      | time="2022-11-17T18:47:16.059553812Z" level=warning msg="storage: ping PostgreSQL database error, will retry in 2s" error="dial tcp: lookup postgresql on 127.0.0.11:53: no such host"
chirpstack-docker-chirpstack-gateway-bridge-1      | time="2022-11-17T18:47:16.120262115Z" level=info msg="integration/mqtt: publishing event" event=up qos=0 topic=gateway/647fdafffe008193/event/up uplink_id=d522cafd-8cdc-49b9-8a48-6bba0043c57d
chirpstack-docker-chirpstack-application-server-1  | time="2022-11-17T18:47:16.388843062Z" level=warning msg="storage: ping PostgreSQL database error, will retry in 2s" error="dial tcp: lookup postgresql on 127.0.0.11:53: no such host"
chirpstack-docker-chirpstack-gateway-bridge-1      | time="2022-11-17T18:47:16.786109225Z" level=info msg="integration/mqtt: publishing event" event=up qos=0 topic=gateway/647fdafffe008193/event/up uplink_id=05aaa57b-f204-4adc-91a5-2b7ef3c77ffc
c

Also, in my docker desktop. I see that 4 out of 6 containers are running i.e. redis-1 and postgresql-1 show the status as exited.

The problem is resolved by following suggestions in