Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix: add timeout to pmxcfs operations in install-sensor-proxy.sh
rcourtmanb3b80814266c
diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.shindex 8afa8e7e70..28509766b1 100755--- a/scripts/install-sensor-proxy.sh+++ b/scripts/install-sensor-proxy.sh@@ -3215,7 +3215,14 @@ if [[ "$STANDALONE" == false && "$CONTAINER_ON_THIS_NODE" == true ]]; then# Must use temp file and copy back to trigger cluster sync# Also, config file contains snapshots sections - only modify main section (before first [)TEMP_CONFIG=$(mktemp)- cp "$LXC_CONFIG" "$TEMP_CONFIG"+ print_info "Reading container config from $LXC_CONFIG..."+ if ! timeout 10 cp "$LXC_CONFIG" "$TEMP_CONFIG" 2>/dev/null; then+ print_error "Timed out or failed reading container config from $LXC_CONFIG"+ print_error "The Proxmox cluster filesystem (pmxcfs) may be slow or unresponsive."+ print_error "Try: pvecm status # to check cluster health"+ rm -f "$TEMP_CONFIG"+ exit 1+ fi# Extract line number where snapshots start (first line starting with [)SNAPSHOT_START=$(grep -n '^\[' "$TEMP_CONFIG" | head -1 | cut -d: -f1)@@ -3256,7 +3263,13 @@ if [[ "$STANDALONE" == false && "$CONTAINER_ON_THIS_NODE" == true ]]; then# Copy back to trigger pmxcfs syncif [[ "$MOUNT_UPDATED" = true ]]; then- cp "$TEMP_CONFIG" "$LXC_CONFIG"+ print_info "Writing updated config to $LXC_CONFIG..."+ if ! timeout 10 cp "$TEMP_CONFIG" "$LXC_CONFIG" 2>/dev/null; then+ print_error "Timed out or failed writing container config to $LXC_CONFIG"+ print_error "The Proxmox cluster filesystem (pmxcfs) may be slow or unresponsive."+ rm -f "$TEMP_CONFIG"+ exit 1+ fifirm -f "$TEMP_CONFIG"