From 86a0ba55fedfbb53f1077fe84b2aef1ef7ea56b6 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Fri, 7 Aug 2026 10:33:08 -0400 Subject: [PATCH] Include the config the container endpoint now depends on MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit vv_cache_clear() went in without it, so every start and stop fatalled on the line after the docker command had already run — the action succeeded and the page was told it failed. --- Plugin/unraid/api/docker_action.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Plugin/unraid/api/docker_action.php b/Plugin/unraid/api/docker_action.php index 6531bc1..34da5eb 100644 --- a/Plugin/unraid/api/docker_action.php +++ b/Plugin/unraid/api/docker_action.php @@ -82,12 +82,19 @@ // |"Could not determine image"|"Unknown action"} // // DEPENDS ON +// include/config.php vv_cache_clear() // api/docker_pull_worker.php detached worker for the pull_rebuild path // docker CLI ps, logs, start, stop, inspect // dynamix.docker.manager rebuild_container, when present // ═══════════════════════════════════════════════════════════════════════════════════════════════ header('Content-Type: application/json'); +// This file was self-contained until the cache invalidation below needed a shared helper, and the +// call went in without the include. The fatal landed *after* docker stop had already run, so the +// container went down and the page was told the action failed — the worst shape a bug here can +// take, because the operator's next move is to try again on a machine that already did it. +require_once dirname(__DIR__) . '/include/config.php'; + define('VV_JOB_DIR', '/tmp/varaverk_dk_jobs'); $action = trim($_POST['action'] ?? '');