From c62ceb72c87fe00c80173d4dc99d3af70fe054da Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Mon, 19 Oct 2026 14:45:11 +0000 Subject: [PATCH 1/2] deploy: p0dcasters Redis on 127.0.0.1:6394 (6393 was taken) family-ancestry-redis took 127.0.0.1:6393 in the meantime, so docker could not publish p0dcasters-redis and the daemon-restart step failed. Move to 6394; drop a duplicated REDIS_URL line in the unit. Co-Authored-By: Claude Opus 5.5 --- deploy/p0dcasters-daemon.service | 3 +-- deploy/redis.sh | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/deploy/p0dcasters-daemon.service b/deploy/p0dcasters-daemon.service index 680b4ec..1723347 100644 --- a/deploy/p0dcasters-daemon.service +++ b/deploy/p0dcasters-daemon.service @@ -14,8 +14,7 @@ WorkingDirectory=/home/anthony/www/p0dcasters.com/app ExecStart=/home/anthony/.local/share/mise/shims/bun scripts/daemon.mjs Environment=HOME=/home/anthony # The daemon's BullMQ queue: this site's own Redis (deploy/redis.sh). -Environment=REDIS_URL=redis://127.0.0.1:6393 -Environment=REDIS_URL=redis://127.0.0.1:6393 +Environment=REDIS_URL=redis://127.0.0.1:6394 Environment=PATH=/home/anthony/.local/share/mise/shims:/home/anthony/.local/bin:/usr/local/bin:/usr/bin:/bin Restart=always RestartSec=30 diff --git a/deploy/redis.sh b/deploy/redis.sh index 733c7e6..e614b53 100755 --- a/deploy/redis.sh +++ b/deploy/redis.sh @@ -3,10 +3,10 @@ # (@profullstack/scraper-daemon). One Redis per site, as the fleet does: # redis:8-alpine, loopback only, AOF on, noeviction (BullMQ requires it), its own # volume. Idempotent: creates the container once, leaves a running one alone. -# The daemon unit sets REDIS_URL=redis://127.0.0.1:6393. +# The daemon unit sets REDIS_URL=redis://127.0.0.1:6394. set -eu NAME=p0dcasters-redis -PORT=6393 +PORT=6394 if docker inspect "$NAME" >/dev/null 2>&1; then [ "$(docker inspect -f '{{.State.Running}}' "$NAME")" = true ] || docker start "$NAME" >/dev/null else From c69388080b7121045b233765f3acd8db652c4459 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Mon, 19 Oct 2026 14:49:15 +0000 Subject: [PATCH 2/2] deploy/redis.sh: look the container up by type `docker inspect p0dcasters-redis` also matches the volume of that name (left by the run that could not publish 6393), so the script took the volume for the container, read .State off it and failed to start it. --type container. Co-Authored-By: Claude Opus 5.5 --- deploy/redis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/redis.sh b/deploy/redis.sh index e614b53..68a2b60 100755 --- a/deploy/redis.sh +++ b/deploy/redis.sh @@ -7,8 +7,8 @@ set -eu NAME=p0dcasters-redis PORT=6394 -if docker inspect "$NAME" >/dev/null 2>&1; then - [ "$(docker inspect -f '{{.State.Running}}' "$NAME")" = true ] || docker start "$NAME" >/dev/null +if docker inspect --type container "$NAME" >/dev/null 2>&1; then + [ "$(docker inspect --type container -f '{{.State.Running}}' "$NAME")" = true ] || docker start "$NAME" >/dev/null else docker run -d --name "$NAME" --restart unless-stopped \ --memory 256m --memory-swap 256m \