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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: add timeout to sentinel process checks for improved reliability
Andras Bacsai9048efaf74c3
diff --git a/app/Jobs/CheckAndStartSentinelJob.php b/app/Jobs/CheckAndStartSentinelJob.phpindex 788db89eaa..304b2a15c4 100644--- a/app/Jobs/CheckAndStartSentinelJob.php+++ b/app/Jobs/CheckAndStartSentinelJob.php@@ -24,7 +24,7 @@ class CheckAndStartSentinelJob implements ShouldBeEncrypted, ShouldQueue$latestVersion = get_latest_sentinel_version();// Check if sentinel is running- $sentinelFound = instant_remote_process(['docker inspect coolify-sentinel'], $this->server, false);+ $sentinelFound = instant_remote_process_with_timeout(['docker inspect coolify-sentinel'], $this->server, false, 10);$sentinelFoundJson = json_decode($sentinelFound, true);$sentinelStatus = data_get($sentinelFoundJson, '0.State.Status', 'exited');if ($sentinelStatus !== 'running') {@@ -33,7 +33,7 @@ class CheckAndStartSentinelJob implements ShouldBeEncrypted, ShouldQueuereturn;}// If sentinel is running, check if it needs an update- $runningVersion = instant_remote_process(['docker exec coolify-sentinel sh -c "curl http://127.0.0.1:8888/api/version"'], $this->server, false);+ $runningVersion = instant_remote_process_with_timeout(['docker exec coolify-sentinel sh -c "curl http://127.0.0.1:8888/api/version"'], $this->server, false);if (empty($runningVersion)) {$runningVersion = '0.0.0';}