From afeb50fc18b3c4b09d4004d745d0b728ea306c27 Mon Sep 17 00:00:00 2001 From: johba Date: Sat, 28 Mar 2026 11:42:34 +0000 Subject: [PATCH] fix: cron env missing DISINTO_CONTAINER=1, logs go to ro mount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cron jobs run with minimal environment — no Docker compose env vars. Without DISINTO_CONTAINER=1, env.sh falls back to FACTORY_ROOT for log paths, which is the read-only disinto mount. Polls silently fail. Fix: set DISINTO_CONTAINER=1 as crontab environment variable. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker/agents/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/agents/entrypoint.sh b/docker/agents/entrypoint.sh index 487de9e..ea0a85a 100644 --- a/docker/agents/entrypoint.sh +++ b/docker/agents/entrypoint.sh @@ -18,7 +18,7 @@ log() { # Build crontab from project TOMLs and install for the agent user. install_project_crons() { - local cron_lines="" + local cron_lines="DISINTO_CONTAINER=1" for toml in "${DISINTO_DIR}"/projects/*.toml; do [ -f "$toml" ] || continue local pname