From 088910ee19740e34839ff4f5b0516c6118311f19 Mon Sep 17 00:00:00 2001 From: Debian Date: Sun, 2 Aug 2026 20:58:22 +0200 Subject: [PATCH] =?UTF-8?q?fix(scheduler):=20WG-Client-Tunnel-Check=20nutz?= =?UTF-8?q?t=20korrekten=20Tabellennamen=20=E2=80=94=20v1.3.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit runWGClientTunnelCheck fragte `wg_interfaces` ab — die Tabelle heißt überall sonst `wireguard_interfaces`. Der Query-Fehler wurde verschluckt (if err return), sodass der Check bei JEDEM 5-min-Lauf still no-opte (WG-Client-Tunnel-Monitoring faktisch tot) und PostgreSQL alle 5 min `relation "wg_interfaces" does not exist` ins Log schrieb (auf beiden Nodes). Fix: korrekter Tabellenname. Co-Authored-By: Claude Opus 4.8 --- VERSION | 2 +- cmd/edgeguard-scheduler/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 7c2791e..7169d35 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.10 \ No newline at end of file +1.3.11 \ No newline at end of file diff --git a/cmd/edgeguard-scheduler/main.go b/cmd/edgeguard-scheduler/main.go index 28d9927..9a0fb16 100644 --- a/cmd/edgeguard-scheduler/main.go +++ b/cmd/edgeguard-scheduler/main.go @@ -622,7 +622,7 @@ func runWGClientTunnelCheck(ctx context.Context, pool *pgxpool.Pool, a *alerts.S // Alle aktiven Client-Interfaces aus DB laden. type wgIface struct{ name string } rows, err := pool.Query(ctx, - `SELECT name FROM wg_interfaces WHERE mode = 'client' AND active = true ORDER BY name`) + `SELECT name FROM wireguard_interfaces WHERE mode = 'client' AND active = true ORDER BY name`) if err != nil { return }