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(sensor-proxy): add timeouts to pmxcfs operations in installer
rcourtmanafad679ffd43
diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.shindex 631688bea0..829e4f9c3b 100755--- a/scripts/install-sensor-proxy.sh+++ b/scripts/install-sensor-proxy.sh@@ -3212,16 +3212,17 @@ if [[ "$STANDALONE" == false && "$CONTAINER_ON_THIS_NODE" == true ]]; thenmkdir -p "$HOST_SOCKET_SOURCE"# Back up container config before modifying+ # Use timeout since /etc/pve is a FUSE filesystem that can hangLXC_CONFIG_BACKUP=$(mktemp)- cp "$LXC_CONFIG" "$LXC_CONFIG_BACKUP" 2>/dev/null || {- print_warn "Could not back up container config (may not exist yet)"+ if ! timeout 10 cp "$LXC_CONFIG" "$LXC_CONFIG_BACKUP" 2>/dev/null; then+ print_warn "Could not back up container config (may not exist yet or pmxcfs slow)"LXC_CONFIG_BACKUP=""- }+ fiMOUNT_UPDATED=falseCT_RUNNING=falseSKIP_CONTAINER_POST_STEPS=false- if pct status "$CTID" 2>/dev/null | grep -q "running"; then+ if timeout 5 pct status "$CTID" 2>/dev/null | grep -q "running"; thenCT_RUNNING=truefi@@ -3288,11 +3289,11 @@ if [[ "$STANDALONE" == false && "$CONTAINER_ON_THIS_NODE" == true ]]; thenfirm -f "$TEMP_CONFIG"- if ! pct config "$CTID" | grep -qxF "$LOCAL_MOUNT_ENTRY"; then+ if ! timeout 10 pct config "$CTID" 2>/dev/null | grep -qxF "$LOCAL_MOUNT_ENTRY"; thenprint_error "Failed to persist migration-safe socket mount in container config"if [ -n "$LXC_CONFIG_BACKUP" ] && [ -f "$LXC_CONFIG_BACKUP" ]; thenprint_warn "Rolling back container configuration changes..."- cp "$LXC_CONFIG_BACKUP" "$LXC_CONFIG"+ timeout 10 cp "$LXC_CONFIG_BACKUP" "$LXC_CONFIG" 2>/dev/null || truerm -f "$LXC_CONFIG_BACKUP"fiexit 1