Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(ServerCheck): set default proxy status to 'exited' to handle missing container state

Andras Bacsai4c5dd3db3c1d
diff --git a/app/Actions/Server/ServerCheck.php b/app/Actions/Server/ServerCheck.php
index f00551684c..41781d7fc2 100644
--- a/app/Actions/Server/ServerCheck.php
+++ b/app/Actions/Server/ServerCheck.php
@@ -99,7 +99,7 @@ class ServerCheck
return data_get($value, 'Name') === '/coolify-proxy';
}
})->first();
- $proxyStatus = data_get($foundProxyContainer, 'State.Status');
+ $proxyStatus = data_get($foundProxyContainer, 'State.Status', 'exited');
if (! $foundProxyContainer || $proxyStatus !== 'running') {
try {
$shouldStart = CheckProxy::run($this->server);