diff --git a/docs/FAQ.md b/docs/FAQ.md index 512e767174..e1ef12e2db 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -470,7 +470,13 @@ does not prove that every reading is fresh. Missing or unavailable is not zero. the last report received and newer vCenter tasks or events may be missing.`, search matches stale labels and collection errors on vSphere, TrueNAS and Docker alert/activity tables, and stale notices clear automatically when live - updates resume. On **TrueNAS → Overview**, when TrueNAS has stopped updating + updates resume. On **VMware → Overview** and **VMware → Health**, when any + vCenter sighting is confirmed stale (without treating unknown or pending + sightings as stale), a page-level banner (**Some vSphere health readings are + stale**: `New alarms may be missing, and older alarms may still be listed. + Check collection status for your vCenter connections in Settings.`) appears + above the tables while preserving existing alarm severity, age, and detail. + On **TrueNAS → Overview**, when TrueNAS has stopped updating readings used by the visible **Systems** or **Health Alerts** tables, a page-level banner (**Some TrueNAS readings are stale**: `An online Pulse agent does not confirm that TrueNAS is still updating. Health alerts may be diff --git a/docs/UNIFIED_AGENT.md b/docs/UNIFIED_AGENT.md index 59e6e99cc0..2712b1ef7d 100644 --- a/docs/UNIFIED_AGENT.md +++ b/docs/UNIFIED_AGENT.md @@ -1590,6 +1590,18 @@ or repeat an update to fill the gap. through its original writable handle before closing rather than reopening it for write after identity and self-tests, while still refusing replacement if flushing fails. + On Windows, `downloaded executable --version failed` with `Access is denied` + on a `pulse-agent-*.tmp` path means the updater verified the download and + then tried to run `--version` on the temporary `.tmp` file in the install + directory, which endpoint protection or execution policy blocked. Keep + endpoint protection and TLS verification enabled. To update that host in + place without losing its saved identity or token, run the Windows update + command from **Settings → Infrastructure → Agent Doctor** (which uses + `install.ps1` to prepare a `.exe` binary before replacing the service). If + Pulse uses a verified private or self-signed HTTPS certificate, trust it in + the Windows **Local Machine** Trusted Root Certification Authorities store + rather than only the current user's store, because the Pulse agent runs as a + Windows service. 3. **Activation, restart or rollback:** an accepted download or staged artifact is not a completed update. Preserve the original result and any rollback error, then compare fresh reporting from that same host with the intended diff --git a/frontend-modern/public/docs/FAQ.md b/frontend-modern/public/docs/FAQ.md index 512e767174..e1ef12e2db 100644 --- a/frontend-modern/public/docs/FAQ.md +++ b/frontend-modern/public/docs/FAQ.md @@ -470,7 +470,13 @@ does not prove that every reading is fresh. Missing or unavailable is not zero. the last report received and newer vCenter tasks or events may be missing.`, search matches stale labels and collection errors on vSphere, TrueNAS and Docker alert/activity tables, and stale notices clear automatically when live - updates resume. On **TrueNAS → Overview**, when TrueNAS has stopped updating + updates resume. On **VMware → Overview** and **VMware → Health**, when any + vCenter sighting is confirmed stale (without treating unknown or pending + sightings as stale), a page-level banner (**Some vSphere health readings are + stale**: `New alarms may be missing, and older alarms may still be listed. + Check collection status for your vCenter connections in Settings.`) appears + above the tables while preserving existing alarm severity, age, and detail. + On **TrueNAS → Overview**, when TrueNAS has stopped updating readings used by the visible **Systems** or **Health Alerts** tables, a page-level banner (**Some TrueNAS readings are stale**: `An online Pulse agent does not confirm that TrueNAS is still updating. Health alerts may be diff --git a/frontend-modern/public/docs/UNIFIED_AGENT.md b/frontend-modern/public/docs/UNIFIED_AGENT.md index 59e6e99cc0..2712b1ef7d 100644 --- a/frontend-modern/public/docs/UNIFIED_AGENT.md +++ b/frontend-modern/public/docs/UNIFIED_AGENT.md @@ -1590,6 +1590,18 @@ or repeat an update to fill the gap. through its original writable handle before closing rather than reopening it for write after identity and self-tests, while still refusing replacement if flushing fails. + On Windows, `downloaded executable --version failed` with `Access is denied` + on a `pulse-agent-*.tmp` path means the updater verified the download and + then tried to run `--version` on the temporary `.tmp` file in the install + directory, which endpoint protection or execution policy blocked. Keep + endpoint protection and TLS verification enabled. To update that host in + place without losing its saved identity or token, run the Windows update + command from **Settings → Infrastructure → Agent Doctor** (which uses + `install.ps1` to prepare a `.exe` binary before replacing the service). If + Pulse uses a verified private or self-signed HTTPS certificate, trust it in + the Windows **Local Machine** Trusted Root Certification Authorities store + rather than only the current user's store, because the Pulse agent runs as a + Windows service. 3. **Activation, restart or rollback:** an accepted download or staged artifact is not a completed update. Preserve the original result and any rollback error, then compare fresh reporting from that same host with the intended diff --git a/scripts/tests/test_stale_reading_help_docs.py b/scripts/tests/test_stale_reading_help_docs.py index 30ba735a11..8bd221158c 100644 --- a/scripts/tests/test_stale_reading_help_docs.py +++ b/scripts/tests/test_stale_reading_help_docs.py @@ -1204,6 +1204,61 @@ class StaleReadingAndAgentHelpDocsTest(unittest.TestCase): with self.subTest(source="useStoragePageModel.ts", marker=marker): self.assertIn(marker, storage_model) + def test_faq_documents_vsphere_overview_and_health_stale_banner(self): + faq = norm( + doc_text("docs/FAQ.md") + .split("### No data showing?\n", 1)[1] + .split("\n### ", 1)[0] + ) + for phrase in ( + "**VMware → Overview** and **VMware → Health**", + "**Some vSphere health readings are stale**", + "`New alarms may be missing, and older alarms may still be listed. Check collection status for your vCenter connections in Settings.`", + "without treating unknown or pending sightings as stale", + "preserving existing alarm severity, age, and detail", + ): + with self.subTest(doc="FAQ.md", phrase=phrase): + self.assertIn(phrase, faq) + + vmware_surface = doc_text( + "frontend-modern/src/features/vmware/VmwarePageSurface.tsx" + ) + for marker in ( + "(activeTab() === 'overview' || activeTab() === 'health')", + "getResourceSourceStatus(resource, VMWARE_PLATFORM_FILTER)?.status === 'stale'", + "Some vSphere health readings are stale", + "New alarms may be missing, and older alarms may still be listed. Check collection", + "status for your vCenter connections in Settings.", + ): + with self.subTest(source="VmwarePageSurface.tsx", marker=marker): + self.assertIn(marker, vmware_surface) + + def test_unified_agent_documents_windows_tmp_probe_access_denied_recovery(self): + agent_doc = norm( + doc_text("docs/UNIFIED_AGENT.md") + .split("### Agent Not Updating\n", 1)[1] + .split("\n### ", 1)[0] + ) + for phrase in ( + "`downloaded executable --version failed` with `Access is denied` on a `pulse-agent-*.tmp` path", + "Keep endpoint protection and TLS verification enabled.", + "**Settings → Infrastructure → Agent Doctor**", + "`install.ps1` to prepare a `.exe` binary before replacing the service", + "**Local Machine** Trusted Root Certification Authorities store", + "Pulse agent runs as a Windows service", + ): + with self.subTest(doc="UNIFIED_AGENT.md", phrase=phrase): + self.assertIn(phrase, agent_doc) + + update_go = doc_text("internal/agentupdate/update.go") + self.assertIn('createTempFn(targetDir, agentName+"-*.tmp")', update_go) + + identity_go = doc_text("internal/agentupdate/identity.go") + self.assertIn('downloaded executable %s failed: %w', identity_go) + + install_ps1 = doc_text("scripts/install.ps1") + self.assertIn("'.pulse-agent-' + [Guid]::NewGuid().ToString('N') + '.exe'", install_ps1) + def test_shipped_public_docs_mirrors_match_byte_for_byte(self): for name in ( "AGENT_SECURITY.md",