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 server unreachable notification count
Andras Bacsaib0c96e64c9d2
diff --git a/app/Jobs/ContainerStatusJob.php b/app/Jobs/ContainerStatusJob.phpindex ba3c40a036..1c66ef53fa 100644--- a/app/Jobs/ContainerStatusJob.php+++ b/app/Jobs/ContainerStatusJob.php@@ -40,7 +40,7 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncryptedray("checking container statuses for {$this->server->id}");try {if (!$this->server->isServerReady()) {- throw new \Exception('Server is not ready.');+ return;};$containers = instant_remote_process(["docker container ls -q"], $this->server);if (!$containers) {diff --git a/app/Notifications/Server/Unreachable.php b/app/Notifications/Server/Unreachable.phpindex ae100b804a..07f801fe84 100644--- a/app/Notifications/Server/Unreachable.php+++ b/app/Notifications/Server/Unreachable.php@@ -43,7 +43,7 @@ class Unreachable extends Notification implements ShouldQueuepublic function toMail(): MailMessage{$mail = new MailMessage();- $mail->subject("Coolify: Server ({$this->server->name}) is unreachable after trying to connect to it 5 times");+ $mail->subject("Coolify: Server ({$this->server->name}) is unreachable after trying to connect to it 3 times");$mail->view('emails.server-lost-connection', ['name' => $this->server->name,]);@@ -52,13 +52,13 @@ class Unreachable extends Notification implements ShouldQueuepublic function toDiscord(): string{- $message = "Coolify: Server '{$this->server->name}' is unreachable after trying to connect to it 5 times. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server. If your server is back online, we will automatically turn on all automations & integrations.";+ $message = "Coolify: Server '{$this->server->name}' is unreachable after trying to connect to it 3 times. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server. If your server is back online, we will automatically turn on all automations & integrations.";return $message;}public function toTelegram(): array{return [- "message" => "Coolify: Server '{$this->server->name}' is unreachable after trying to connect to it 5 times. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server. If your server is back online, we will automatically turn on all automations & integrations."+ "message" => "Coolify: Server '{$this->server->name}' is unreachable after trying to connect to it 3 times. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server. If your server is back online, we will automatically turn on all automations & integrations."];}}