mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00:00
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.
This commit is contained in:
1 parent
d38a09442d
commit
8c002fc325
1 file changed
+13
@@ -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
|
||||
|
||||
Reference in new issue
Block a user