Unhealthy app #3

Open
opened 2026-03-02 21:56:21 +00:00 by jeppebundsgaard · 0 comments

I have tried all the ways I could think of. But I keep getting an unhealthy system. The problem is in the app, I think. Here is an example of the logs.

planer_mydomain_dk_web: 2026-03-02T21:24:57.252491157Z 2026/03/02 21:24:57 [emerg] 1#1: host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4
planer_mydomain_dk_web: <90>2026-03-02T21:24:57.252510935Z nginx: [emerg] host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4
planer_mydomain_dk_db: 52026-03-02T21:24:54.757054514Z sh: locale: not found
planer_mydomain_dk_db: n2026-03-02T21:24:54.757826785Z 2026-03-02 21:24:54.757 UTC [33] WARNING: no usable system locales were found
planer_mydomain_dk_db: f2026-03-02T21:24:55.476681862Z initdb: warning: enabling "trust" authentication for local connections
planer_mydomain_dk_db: 2026-03-02T21:24:55.476687022Z initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
planer_mydomain_dk_db: 2026-03-02T21:24:55.971128938Z 2026-03-02 21:24:55.970 UTC [1] LOG: starting PostgreSQL 15.17 on x86_64-pc-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit
planer_mydomain_dk_db: t2026-03-02T21:24:55.971339803Z 2026-03-02 21:24:55.971 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
planer_mydomain_dk_db: o2026-03-02T21:24:55.971349782Z 2026-03-02 21:24:55.971 UTC [1] LOG: listening on IPv6 address "::", port 5432
planer_mydomain_dk_db: <82>2026-03-02T21:24:55.974706287Z 2026-03-02 21:24:55.974 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
planer_mydomain_dk_db: ^?2026-03-02T21:24:55.981499439Z 2026-03-02 21:24:55.981 UTC [55] LOG: database system was shut down at 2026-03-02 21:24:55 UTC
planer_mydomain_dk_db: t2026-03-02T21:24:55.993646847Z 2026-03-02 21:24:55.991 UTC [1] LOG: database system is ready to accept connections
planer_mydomain_dk_app: 2026-03-02T21:24:51.587927104Z thread 'main' panicked at 'Error connecting to postgres://lemmy:stamina%2Dunhearing%2Dneuron%2Djuicy%2Dgoliath%2Dtalon@db:5432/lemmy: could not translate host n
ame "db" to address: Name does not resolve
planer_mydomain_dk_app: G2026-03-02T21:24:51.587981177Z ', crates/db_schema/src/utils.rs:217:56
planer_mydomain_dk_app: m2026-03-02T21:24:51.587986527Z note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
planer_mydomain_dk_web: 2026-03-02T21:25:03.726761871Z 2026/03/02 21:25:03 [emerg] 1#1: host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4
planer_mydomain_dk_web: <90>2026-03-02T21:25:03.726788503Z nginx: [emerg] host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4
planer_mydomain_dk_web: 2026-03-02T21:25:09.656810447Z 2026/03/02 21:25:09 [emerg] 1#1: host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4
planer_mydomain_dk_web: <90>2026-03-02T21:25:09.656823360Z nginx: [emerg] host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4

Any suggestions?

I have tried all the ways I could think of. But I keep getting an unhealthy system. The problem is in the app, I think. Here is an example of the logs. > planer_mydomain_dk_web: <A2>2026-03-02T21:24:57.252491157Z 2026/03/02 21:24:57 [emerg] 1#1: host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4 > planer_mydomain_dk_web: <90>2026-03-02T21:24:57.252510935Z nginx: [emerg] host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4 > planer_mydomain_dk_db: 52026-03-02T21:24:54.757054514Z sh: locale: not found > planer_mydomain_dk_db: n2026-03-02T21:24:54.757826785Z 2026-03-02 21:24:54.757 UTC [33] WARNING: no usable system locales were found > planer_mydomain_dk_db: f2026-03-02T21:24:55.476681862Z initdb: warning: enabling "trust" authentication for local connections > planer_mydomain_dk_db: <AF>2026-03-02T21:24:55.476687022Z initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. > planer_mydomain_dk_db: <A7>2026-03-02T21:24:55.971128938Z 2026-03-02 21:24:55.970 UTC [1] LOG: starting PostgreSQL 15.17 on x86_64-pc-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit > planer_mydomain_dk_db: t2026-03-02T21:24:55.971339803Z 2026-03-02 21:24:55.971 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 > planer_mydomain_dk_db: o2026-03-02T21:24:55.971349782Z 2026-03-02 21:24:55.971 UTC [1] LOG: listening on IPv6 address "::", port 5432 > planer_mydomain_dk_db: <82>2026-03-02T21:24:55.974706287Z 2026-03-02 21:24:55.974 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" > planer_mydomain_dk_db: ^?2026-03-02T21:24:55.981499439Z 2026-03-02 21:24:55.981 UTC [55] LOG: database system was shut down at 2026-03-02 21:24:55 UTC > planer_mydomain_dk_db: t2026-03-02T21:24:55.993646847Z 2026-03-02 21:24:55.991 UTC [1] LOG: database system is ready to accept connections > planer_mydomain_dk_app: <EA>2026-03-02T21:24:51.587927104Z thread 'main' panicked at 'Error connecting to postgres://lemmy:stamina%2Dunhearing%2Dneuron%2Djuicy%2Dgoliath%2Dtalon@db:5432/lemmy: could not translate host n > ame "db" to address: Name does not resolve > planer_mydomain_dk_app: G2026-03-02T21:24:51.587981177Z ', crates/db_schema/src/utils.rs:217:56 > planer_mydomain_dk_app: m2026-03-02T21:24:51.587986527Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace > planer_mydomain_dk_web: <A2>2026-03-02T21:25:03.726761871Z 2026/03/02 21:25:03 [emerg] 1#1: host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4 > planer_mydomain_dk_web: <90>2026-03-02T21:25:03.726788503Z nginx: [emerg] host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4 > planer_mydomain_dk_web: <A2>2026-03-02T21:25:09.656810447Z 2026/03/02 21:25:09 [emerg] 1#1: host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4 > planer_mydomain_dk_web: <90>2026-03-02T21:25:09.656823360Z nginx: [emerg] host not found in upstream "planer_mydomain_dk_app:8536" in /etc/nginx/conf.d/default.conf:4 Any suggestions?
Sign in to join this conversation.
No description provided.