Pulse/scripts
rcourtman fbe4ab83a4 fix: comprehensive temperature proxy setup improvements
Addresses multiple issues that prevented successful temperature monitoring setup:

1. **Missing log directory (install-sensor-proxy.sh)**
   - Added LogsDirectory=pulse/sensor-proxy to both systemd service templates
   - Fixes crash: "open /var/log/pulse/sensor-proxy/audit.log: read-only file system"
   - Uses systemd's LogsDirectory directive for proper permissions

2. **Invalid pct restart command (install-sensor-proxy.sh:822)**
   - Changed from `pct restart` (doesn't exist) to `pct stop && sleep 2 && pct start`
   - Fixes container restart failures during proxy setup

3. **Version compatibility check (config_handlers.go)**
   - Added const minProxyReadyVersion = "4.24.0"
   - Setup script now queries /api/version endpoint
   - Blocks proxy setup on Pulse < v4.24.0 with clear upgrade message
   - Prevents users from attempting proxy setup on incompatible versions

4. **Proxy service health validation (config_handlers.go)**
   - Verifies pulse-sensor-proxy service is actually running
   - Checks socket exists at /run/pulse-sensor-proxy/pulse-sensor-proxy.sock
   - Shows journalctl command for troubleshooting on failure
   - Sets TEMP_MONITORING_AVAILABLE=false to skip remaining steps

5. **Interactive LXC restart prompt (config_handlers.go)**
   - Replaced passive "please restart" message with interactive prompt
   - Default action is "yes" for easy acceptance
   - Actually executes pct stop/start on confirmation
   - Handles non-interactive environments gracefully

6. **Post-restart socket verification (config_handlers.go)**
   - Validates socket is accessible inside container after restart
   - Provides clear error if mount didn't work
   - Prevents claiming success when setup is incomplete

All changes tested with fresh LXC installation. Temperature monitoring now
works end-to-end with proper error handling and user guidance.

Fixes temperature proxy setup flow for v4.24.0+
2025-10-20 18:00:21 +00:00
..
dev feat: add OIDC single sign-on 2025-09-29 10:22:27 +00:00
lib feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
systemd feat: add automatic SSH key cleanup when nodes are removed 2025-10-18 07:03:05 +00:00
tests feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
.go-version feat: unify styling and improve cluster detection 2025-09-28 18:46:52 +00:00
build-release.sh Add Helm chart tooling, CI, and release packaging 2025-10-18 11:50:57 +00:00
bundle.manifest feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
bundle.sh feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
clean-mock-alerts.sh Add guest agent caching and update doc hints (refs #560) 2025-10-16 08:15:49 +00:00
create-sensor-user.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
dev-hot.sh Align dev ports and improve auto-register UX 2025-09-29 15:05:59 +00:00
docker-build.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
harden-sensor-proxy.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
hot-dev.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
install-docker-agent-v2.sh feat: add shared script library system and refactor docker-agent installer 2025-10-20 15:13:38 +00:00
install-docker-agent.sh feat: add docker agent command handling 2025-10-15 19:27:19 +00:00
install-docker.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
install-go-toolchain.sh feat: unify styling and improve cluster detection 2025-09-28 18:46:52 +00:00
install-sensor-proxy.sh fix: comprehensive temperature proxy setup improvements 2025-10-20 18:00:21 +00:00
package-helm-chart.sh Add Helm chart tooling, CI, and release packaging 2025-10-18 11:50:57 +00:00
pulse-auto-update.sh fix: add missing auto-update script 2025-08-29 20:34:22 +00:00
pulse-proxy-rotate-keys.sh refactor: Rename pulse-temp-proxy to pulse-sensor-proxy 2025-10-13 13:17:05 +00:00
pulse-sensor-cleanup.sh fix: gracefully handle standalone node cleanup limitation 2025-10-18 07:34:18 +00:00
pulse-sensor-proxy.service refactor: Rename pulse-temp-proxy to pulse-sensor-proxy 2025-10-13 13:17:05 +00:00
run-tests-mock.sh Adopt multi-token auth across docs, UI, and tooling 2025-10-14 15:47:49 +00:00
secure-sensor-files.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
setup-log-forwarding.sh security: complete Phase 1 sensor proxy hardening 2025-10-20 15:13:37 +00:00
sync-production-config.sh Improve powered-off alerts toggle layout and fix dev config sync 2025-10-05 20:17:47 +00:00
take-all-screenshots.js fix: regenerate all screenshots in dark mode 2025-08-04 21:33:39 +00:00
take-screenshots.js perf: optimize mock mode state retrieval and JSON encoding 2025-10-01 13:35:49 +00:00
test-vm-disk.sh Update Proxmox guest agent permissions docs and tooling (refs #548) 2025-10-14 10:21:52 +00:00
toggle-mock-pure.sh fix: replace old PVENodeTable with NodeSummaryTable for correct column ordering 2025-08-29 13:55:53 +00:00
toggle-mock.sh feat: capture Proxmox memory snapshots in diagnostics 2025-10-12 10:25:43 +00:00