gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/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

  • d2e6d26bMerge branch 'records-park55' into mainTracker
  • f567f025|||PR records: park #55, no Claude workers ruleTracker
  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker