From aeef352082460c1b72080a6a9e3056d4aa8694f4 Mon Sep 17 00:00:00 2001 From: Till JS Date: Mon, 30 Mar 2026 18:37:00 +0200 Subject: [PATCH] fix(startup): force-recreate synapse on boot to avoid stale config cache Co-Authored-By: Claude Opus 4.6 --- scripts/mac-mini/startup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/mac-mini/startup.sh b/scripts/mac-mini/startup.sh index 2852be517..8028cd478 100755 --- a/scripts/mac-mini/startup.sh +++ b/scripts/mac-mini/startup.sh @@ -95,6 +95,11 @@ log "Starting Docker containers..." cd "$PROJECT_ROOT" docker compose -f "$COMPOSE_FILE" --env-file "$ENV_FILE" up -d --no-build 2>&1 | tee -a "$LOG_FILE" +# ─── Force-recreate stateful containers that cache config ─── +# synapse copies homeserver.yaml at startup; stale container uses old cached config +log "Force-recreating config-sensitive containers..." +docker compose -f "$COMPOSE_FILE" --env-file "$ENV_FILE" up -d --no-build --force-recreate synapse 2>&1 | tee -a "$LOG_FILE" + # ─── Wait and verify ─── log "Waiting 45s for services to initialize..." sleep 45