gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite84586a7e84586a7Mission AP56bmree84586a7/missions/T36B-tmdb-retry.md

4.1 KB

  1. # T36B: tracker#36 second live apply, run on byrodin itself
  2. Task: 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".
  3. 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.
  4. ## Before anything stops
  5. 1. 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.
  6. 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`:
  7. a. `docker compose stop` both main and standby as T36A did; confirm both stopped.
  8. 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.
  9. c. Apply, log. Failure means: the tool exits non-zero or reports failed > 0. Then rollback. Skipped > 0 alone is no failure, log it.
  10. d. Start main; standby stays stopped.
  11. 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.
  12. 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.
  13. 3. Test the script's non-data parts by reading only. Do not dry-run the stop.
  14. ## Run
  15. 4. 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.
  16. ## After
  17. 5. 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.
  18. 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.
  19. 7. Note in the report what stays running: nothing of yours on byrodin, systemd unit gone.
  20. ## Limits
  21. Scratch: /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.
  22. ## Report
  23. /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

  • e84586a7Mission AP56bmre
  • 15917f03Record PR workflow rule (gitoria#50)mre
  • 942ac995status: paused workers statemre
  • 44b934e5log: respawn cleanupmre
  • 03a80097Log: Anton GC A/Bmre
  • c7cdef62Log: Apollo STOP, workers pausedmre
  • d0c083fbLog: usage stopmre
  • c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
  • 1eb6f1a1Missions AP56, BS1mre
  • 4871f8adLog: AP52 live on day52, browser gate greenmre
  • d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
  • c4a60ef2Log: RT52 retest passed, AP52 startedmre
  • 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre
  • 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre
  • 3bb4ccddAP52: modal close button refers to its nested rule with Style.buttonModalX (tracker#51, hybriel#333)mre
  • ba16933fAP52: login callback and title route are static handlers taking the server as third argument (tracker#58, hybriel#332)mre
  • 85153900AP52: re-vendor Hybriel set day52 (source 77cfca31, bin 0a8ed496)mre
  • 7c051eddLog: hybriel#338 answermre
  • d049b8b8Log: HM50 live, #52 donemre
  • 6d05fa37Log: HM50 Part A mergedmre