From ac51e6da016037c99ed53d5917b7263313cdc196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Paredes?= Date: Sat, 5 Sep 2026 10:20:07 -0300 Subject: [PATCH] fix(signoz): prevent ClickHouse broken-pipe errors in the healthcheck The ClickHouse healthcheck uses `wget --spider`. The `--spider` option closes the connection before it reads the response body. ClickHouse then fails to write the `/ping` response. It records the failure as an `Error` with a full stack trace. The healthcheck runs every 30 seconds, and each failure writes two error lines. This adds approximately 5700 stack traces each day. The container stays healthy, because the check still exits 0, so the noise is not obvious. The noise hides real ClickHouse errors. This change replaces `--spider` with `-O-`, which reads the response body. Measured on clickhouse-server 25.5.6-alpine, the image this template pins, with 25 requests for each command: wget --spider -q 0.0.0.0:8123/ping 22/25 errors wget -q -O- 0.0.0.0:8123/ping 0/25 errors The signoz healthcheck keeps `--spider`. It uses a Go server, which closes the connection correctly. Do not change the host to `localhost` to solve this problem. In the ClickHouse image, `localhost` resolves to `::1` first. If the host disables IPv6, the connection is refused and the healthcheck fails. --- templates/compose/signoz.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose/signoz.yaml b/templates/compose/signoz.yaml index 45380e88a0..2a7da26675 100644 --- a/templates/compose/signoz.yaml +++ b/templates/compose/signoz.yaml @@ -63,8 +63,8 @@ services: test: - CMD - wget - - --spider - -q + - -O- - 0.0.0.0:8123/ping interval: 30s timeout: 5s