fix: docker catalog CHECK constraint — change status='starting' to 'pending'

'starting' is not in the CHECK constraint list. Using 'pending' which is
already set by the INSERT in createStack (the UPDATE was redundant anyway).
This commit is contained in:
2026-06-22 14:24:11 +00:00
parent 06e43b1297
commit 844f571231
+1 -1
View File
@@ -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'];
}