Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Fix update modal hanging indefinitely after completion (related to #628)

rcourtman5898cb81be29
diff --git a/frontend-modern/src/components/UpdateProgressModal.tsx b/frontend-modern/src/components/UpdateProgressModal.tsx
index 4ef273d53e..589dc9d1be 100644
--- a/frontend-modern/src/components/UpdateProgressModal.tsx
+++ b/frontend-modern/src/components/UpdateProgressModal.tsx
@@ -49,6 +49,28 @@ export function UpdateProgressModal(props: UpdateProgressModalProps) {
currentStatus.status === 'idle' ||
currentStatus.status === 'error'
) {
+ // If completed successfully, verify backend health and reload to get new version
+ if (currentStatus.status === 'completed' && !currentStatus.error) {
+ if (pollInterval) {
+ clearInterval(pollInterval);
+ }
+ // Verify backend is healthy and reload
+ try {
+ const healthCheck = await fetch('/api/health', { cache: 'no-store' });
+ if (healthCheck.ok) {
+ logger.info('Update completed, backend healthy, reloading...');
+ window.location.reload();
+ return;
+ }
+ } catch (error) {
+ logger.warn('Update completed but health check failed, assuming restart...', error);
+ }
+ // If health check failed, assume restart in progress
+ setIsRestarting(true);
+ startHealthCheckPolling();
+ return;
+ }
+
setIsComplete(true);
if (currentStatus.status === 'error' || currentStatus.error) {
setHasError(true);