From 348bf39517c42271fa480f7d16dbc4e1a72b728d Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 8 Aug 2026 07:32:05 +0000 Subject: [PATCH] fix: kill stale tap proxy on port before starting new debug --- sources/python/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sources/python/main.py b/sources/python/main.py index 26aa249..d4fff3e 100644 --- a/sources/python/main.py +++ b/sources/python/main.py @@ -404,6 +404,9 @@ def start_debug(): tap_script = f"{BASE}/app/tap-proxy.py" + # Kill any stale tap proxy on this port + run(f"kill -9 $(ss -tlnp 'sport = :{port}' | grep -oP 'pid=\\K[0-9]+') 2>/dev/null", timeout=5) + # Stop container, start tap print(f"\nStopping wallarm-{n['name']}...") run(f"docker stop wallarm-{n['name']} 2>/dev/null", timeout=10)