From 4bd9c3cf69c9fd21d3048c969a5d2d62856345c0 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Mon, 15 Dec 2025 08:39:06 +0000 Subject: [PATCH] fix(sensor-proxy): prevent installer hang on control-plane sync Fixes #819 The installer was hanging at 'Pending control-plane sync detected' because systemctl start ran synchronously, waiting for the selfheal service to complete. If the control-plane sync failed or took a long time (e.g., Proxmox node not configured in Pulse yet), the installer would hang indefinitely. Changed to use 'systemctl start --no-block' to run the selfheal service asynchronously in the background. The sync will still be attempted, but the installer will complete immediately and show the success message. --- scripts/install-sensor-proxy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.sh index 829e4f9..91e0344 100755 --- a/scripts/install-sensor-proxy.sh +++ b/scripts/install-sensor-proxy.sh @@ -3586,9 +3586,10 @@ EOF systemctl enable --now pulse-sensor-proxy-selfheal.timer >/dev/null 2>&1 || true if [[ -f "$PENDING_CONTROL_PLANE_FILE" ]]; then if [[ "$QUIET" != true ]]; then - print_info "Pending control-plane sync detected; triggering immediate retry..." + print_info "Pending control-plane sync detected; will retry in background..." fi - systemctl start pulse-sensor-proxy-selfheal.service >/dev/null 2>&1 || true + # Use --no-block to avoid hanging the installer if sync takes a long time + systemctl start --no-block pulse-sensor-proxy-selfheal.service >/dev/null 2>&1 || true fi fi