From f43792918104dbda11254fc8a40495719b797fd2 Mon Sep 17 00:00:00 2001 From: Daan Meijer Date: Mon, 26 Oct 2026 08:09:45 +0100 Subject: [PATCH] Homelab: the replay container's app environment; the nightly resume honours the v2 reset deploy/replay-window.sh passes the compose app environment (HOST, PORT, APP_URL, SPOOL_DIR, CHUNK_TABLESPACE) the ace command validates. The resume script starts only the coordinator (the corpus fill) while .cache/v2-reset exists: the voyager 2 catalog was reset on 2026-10-26 and its workers would fill it again. Co-Authored-By: Claude Fable 5.1 --- deploy/replay-window.sh | 3 ++- deploy/usenet-rebuild-resume.sh | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/deploy/replay-window.sh b/deploy/replay-window.sh index 68fb36c..82ac5d3 100755 --- a/deploy/replay-window.sh +++ b/deploy/replay-window.sh @@ -33,7 +33,8 @@ replay() { local group=$1 from=$2 to=$3 say "$group: replaying $from–$to" if docker run --rm --name "replay-${group//./-}" --network usenet-rebuild --env-file .env \ - -e NODE_ENV=production -e DB_HOST=postgres -e DB_PORT=5432 -e DB_DATABASE=usenet_replay -e CORPUS_DIR=/corpus \ + -e NODE_ENV=production -e HOST=0.0.0.0 -e PORT=3334 -e APP_URL=http://web:3334 -e SPOOL_DIR=/spool -e CORPUS_DIR=/corpus \ + -e DB_HOST=postgres -e DB_PORT=5432 -e DB_DATABASE=usenet_replay -e CHUNK_TABLESPACE=pg_default \ -v "$ROOT/corpus:/corpus:ro" --memory "$MEMORY" "$IMAGE" \ node ace replay:corpus --group "$group" --from "$from" --to "$to" > "$OUT/$group.log" 2>&1; then touch "$OUT/$group.done" diff --git a/deploy/usenet-rebuild-resume.sh b/deploy/usenet-rebuild-resume.sh index 32c8e14..3b319d8 100755 --- a/deploy/usenet-rebuild-resume.sh +++ b/deploy/usenet-rebuild-resume.sh @@ -6,6 +6,13 @@ exec 9>.cache/deploy.lock flock 9 rm -f .cache/paused date "+%F %T resuming" -docker compose up -d --no-deps coordinator prober merger judge spotter spot-inspector -docker compose up -d --no-deps edge +if [ -e .cache/v2-reset ]; then + # The voyager 2 catalog is reset (2026-10-26, LOG.md (112)): only the coordinator (the corpus fill) runs until voyager 3 + # is deployed; the edge, prober, merger, judge, spotter and spot inspector would fill the old catalog again. + echo "v2 reset: only the coordinator" + docker compose up -d --no-deps coordinator +else + docker compose up -d --no-deps coordinator prober merger judge spotter spot-inspector + docker compose up -d --no-deps edge +fi docker compose ps --format "{{.Service}} {{.Status}}"