mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-09 16:00:59 +00:00
Refs #1515 When an upgraded or restored Pulse server no longer recognises an agent's API token, the report endpoint returns 401. The agent buffered and retried that report forever with only a generic warning, and the server kept the node green at its last known agent version because a Proxmox node stays online via the PVE API poll even after its agent dies. - Agent: special-case 401 on /api/agents/agent/report. Drop the report instead of buffering it and log a throttled, actionable error pointing the operator at the install command to mint a fresh token. - Installer: verify_agent_server_registration now tells a rejected token (401/403) apart from "agent has not reported yet" and prints the recovery steps at install time instead of a vague soft warning. - Status layer: resourceFromHost flags a stale agent (its host marked offline by the staleness evaluator) and carries the agent's own last report time. Coalescing keeps a node online via the PVE source but the dead agent stays flagged, so its version is no longer presented as current. The Machines table renders such versions as "(stale)". |
||
|---|---|---|
| .. | ||
| backfill_release_assets_test.go | ||
| build_release_assets_test.go | ||
| docker_entrypoint_test.go | ||
| install_docker_sh_test.go | ||
| install_ps1_test.go | ||
| install_sh_test.go | ||
| provider_msp_deploy_test.go | ||
| pulse_auto_update_test.go | ||
| release_ldflags_test.go | ||
| root_install_sh_test.go | ||
| uninstall_sensor_proxy_test.go | ||