From 8c002fc325db45d74b97a18a4b970dafec6ed8df Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 11 Mar 2026 11:53:57 +0100 Subject: [PATCH] fix(upgrade): handle status file cleared after server restart When the upgrade triggers a server restart, the status file may be cleared. Fall back to health check mode to detect when the server is back online instead of waiting for status updates. --- resources/views/livewire/upgrade.blade.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/resources/views/livewire/upgrade.blade.php b/resources/views/livewire/upgrade.blade.php index dc246c0400..5b45f534a3 100644 --- a/resources/views/livewire/upgrade.blade.php +++ b/resources/views/livewire/upgrade.blade.php @@ -419,6 +419,19 @@ this.showSuccess(); } else if (data.status === 'error') { this.showError(data.message); + } else if (data.status === 'none' && this.showProgress) { + // Status file cleared after server restart — + // fall back to health check to detect when server is back + if (!this.serviceDown) { + this.serviceDown = true; + this.currentStep = 4; + this.currentStatus = 'Coolify is restarting with the new version...'; + if (this.checkUpgradeStatusInterval) { + clearInterval(this.checkUpgradeStatusInterval); + this.checkUpgradeStatusInterval = null; + } + this.revive(); + } } } catch (error) { // Service is down - switch to health check mode