From 844f57123138972dac7170dbbfc27a062924cc74 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Mon, 22 Jun 2026 14:24:11 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20docker=20catalog=20CHECK=20constraint=20?= =?UTF-8?q?=E2=80=94=20change=20status=3D'starting'=20to=20'pending'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'starting' is not in the CHECK constraint list. Using 'pending' which is already set by the INSERT in createStack (the UPDATE was redundant anyway). --- panel/lib/DockerManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/lib/DockerManager.php b/panel/lib/DockerManager.php index 6030ac0..1c45503 100644 --- a/panel/lib/DockerManager.php +++ b/panel/lib/DockerManager.php @@ -1609,7 +1609,7 @@ SH; $logFile = escapeshellarg("/tmp/novacpx-stack-{$stackId}.log"); $compose = escapeshellarg("{$dir}/docker-compose.yml"); shell_exec("nohup sudo docker compose -f {$compose} up -d > {$logFile} 2>&1 &"); - $this->db->execute("UPDATE docker_compose_stacks SET status='starting' WHERE id=?", [$stackId]); + $this->db->execute("UPDATE docker_compose_stacks SET status='pending' WHERE id=?", [$stackId]); novacpx_log('info', "DockerManager: launching {$appKey} for account {$accountId} on {$domain} (async)"); return ['stack_id' => $stackId, 'dir' => $dir, 'output' => 'Launching in background — refresh in a moment to see status']; }