tracker
All repositories: gitoria
4.1 KB
# T36B: tracker#36 second live apply, run on byrodin itselfTask: Apollo's GO 2026-11-06: "GO retry, ~8 min is fine ... run the whole sequence on byrodin itself (systemd-run with a log file, as one script), so an SSH drop on the controlling side cannot change the outcome; rollback only on a failed apply or failed page check. Report counts".Read: reports/T36A.md (what happened, how the tool was staged, what is in /media/STORAGE/claude-scratch/tracker/T36A/phase2.py, plan.txt and rollback scripts), CONDUCTOR.md sections 5 and 6. The tool and its gates are done and in main; no code change expected, no gates needed. App code on byrodin is not replaced.## Before anything stops1. Plan: /media/STORAGE/claude-scratch/tracker/T36A/plan.txt (58: 49 years, 9 ids, new six-column format; the apply skips any title whose record changed). No new dry run. Stage tool, library, plan on byrodin as T36A did, outside the app. Check free disk on byrodin for a local backup, and that no deploy runs (`pgrep` on loreana for deploy/run.sh, remote compose) with main running, restarts 0. Run the same-image preflight on empty scratch storage.2. Write one script on byrodin, /CONTAINERS/tracker-t36b-<date>/run.sh, reviewed line by line by yourself with `bash -n`, log next to it, step markers with timestamps, final line `t36b-exit=N`:a. `docker compose stop` both main and standby as T36A did; confirm both stopped.b. Backup on byrodin's own disk in that directory: storage without posters/profiles, .sessions, .env; `gzip -t`, tar listing ok, 0 hard links. Failure: start main, exit, no apply.c. Apply, log. Failure means: the tool exits non-zero or reports failed > 0. Then rollback. Skipped > 0 alone is no failure, log it.d. Start main; standby stays stopped.e. Wait up to 10 min for the boot scan to complete in this start's log, using curl to 127.0.0.1:45008 plus the log; then page checks from byrodin on 127.0.0.1:45008 with a Host header: /shows, /movies, /100sp, the 9 switched slugs, 2 year-fixed titles: expect 200 or the known 301 for /100sp. Retry each a few times over 2 minutes before calling it failed, since GC pauses happen.f. Failed apply or failed page check: rollback in the script: stop main, move applied storage aside, restore the local backup keeping posters and profiles in place, start main, log it. Anything else, including SSH loss, logging trouble or a slow boot within limits, is NOT a rollback reason.3. Test the script's non-data parts by reading only. Do not dry-run the stop.## Run4. Take the deploy-init lock on loreana (claude-scratch/atlas/deploy-init.lock, fd 9) only around the run. Outside probe 1/s from loreana, detached, in T36B. Start with `systemd-run --unit=tracker-t36b --no-block /CONTAINERS/.../run.sh`, so it lives independent of SSH. Poll through worldapi-conductor/byrodin-ssh.sh or a control socket with retries, sparsely. An SSH failure on your side: keep trying, never act on it. Release the lock with `exec 9>&-` after the exit line.## After5. Outside: same pages 200, one switched page links the new TMDB id (The Boys 915561), The Gathering shows 23 February 2003. Log: 0 errors, 0 LockTimeout, restarts 0. Chrome look via claude-scratch/tracker/chrome/look.mjs under `timeout 500 flock /media/STORAGE/claude-scratch/atlas/lisbeth.lock`, signed out; if lisbeth is down, say so.6. Copy the on-byrodin backup to /media/STORAGE/deploy-backups/tracker.worldapi.org/ on loreana, detached, `gzip -t` there. Only then remove the backup on byrodin. Remove /CONTAINERS/tracker-t36a-20261106-131232 (old failed-storage) only after a success with no rollback. Leave the applied-storage dir if a rollback ran, and report it.7. Note in the report what stays running: nothing of yours on byrodin, systemd unit gone.## LimitsScratch: /media/STORAGE/claude-scratch/tracker/T36B/. No push, no tickets, no LOG/STATUS. Token only in the process environment, as T36A did. Nothing in /tmp or /home/mre on loreana. Budget maxUsd 4.## Report/media/STORAGE/claude-scratch/tracker/T36B/REPORT.md; final message <=10 lines: applied/skipped/failed per kind, any skipped titles, backup name and checks, downtime start/end and 503/000 counts, page checks, Chrome.
Branches
Latest commits
- 46a37036records: DP71 liveTracker
- 3bcb7039Status/log: DP71 in progressTracker
- 5b3a5693Log: SR1b merged via PR 2, DP71 startedTracker
- 783957c2Merge branch 'sr1-search' into mainTracker
- 792b9652README: search results come from the routeTracker
- fd8570b1|||PR search: one server exchange per keystrokeTracker
- e8f5cbcaLog: SR1 result, SR1bTracker
- 8ad275a4Log/status: tracker 68, SR1Tracker
- f5a06a0fLog: gitoria push setup, SR1Tracker
- d6b109baMission SR1mre
- 608b7558Log: FF1 merged via PR #1mre
- 2939d94cMerge branch 'ff1-gate-failfast' into mainTracker
- c934361a|||PR tests: gates fail fast when the app exits during startmre
- d714ae42Log/status: AP56 closed out, FF1mre
- a429d088Mission FF1mre
- 03bbfba3Log: AP56c causemre
- 24845fe3Log: AP56b result, AP56cmre
- 6a6d71eaLog: gitoria membershipmre
- 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
- 6bb7c20estatus: window 2026-11-09mre