mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 10:35:51 +00:00
0b9385f2f2
The agent installer (scripts/install.sh) had no free-space preflight, so on RAM-rooted appliances (QNAP QTS, Unraid) it ran all the way to the download before dying with an unhelpful ENOSPC. Lift the server installer's disk headroom check into the agent installer: verify temp and install-dir space (including the shared-filesystem case) before downloading and in --preflight-only mode, with a TMPDIR hint in the failure message. The QNAP and Unraid watchdog loops also shell-appended agent stdout to /var/log/pulse-agent.log with no rotation, which could fill the RAM root on its own. Pass --log-file so the agent's rotating writer engages (QNAP: data volume state dir; Unraid: /var/log/pulse-agent with size-capped rotation), discard the now-duplicate stdout mirror, and keep the watchdogs' own messages in a small self-trimming log. Document the TMPDIR override for constrained roots in docs/UNIFIED_AGENT.md. Fixes #1617 (space half; CPU half pending reporter diagnostics) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>