gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb8bba562b8bba562CL1: crash loop report (SIGPIPE confirmed, trap wrapper option)mreb8bba562/reports/CL1-crash-loop.md

4.0 KB

  1. # CL1 — live crash loop (2026-10-31, read-only on byrodin)
  2. ## Cause: TR7 CONFIRMED (SIGPIPE), not refuted
  3. - dockerd journal: every restart `exitCode=141` (21 of 21 in the last 3 h); `docker events` die: `exitCode=141 execDuration=1055` (15:34:24). `docker inspect` shows 0 only because it keeps the restarted state.
  4. - Rate: RestartCount 371 at 12:12 -> 395 at 15:34 (24 exits in 3h22m, one cycle ~7.6 min: 12:12, 12:19:34, 12:27:09 ... 15:16:49, then 15:34:24 = one 17.5 min run). Two samples 15:37 and 15:40: 395 / 395 (run started 15:34:24; boot scan 178.6 s, 503 meanwhile).
  5. - Before the exits: logs only keep the current run (docker logs is not kept across restarts). Current run: `boot scan: done` -> `guest opened: ... -> new person` (crawler traffic) -> `fetch: TLS client initialized (verify=on)` -> `person fill: ... tmdbMs=...` (TMDB, https). So the outgoing fetch is the on-demand person fill after a guest-star open (lib/people.hl personFillStep via components/person.hl:36), not the daily sync (4:00 UTC), photo or art backfill.
  6. - Live process /proc status (byrodin): hybriel pid 3352421 `SigIgn: 0000000000000000`, `SigCgt: 0000000100004402` -> SIGPIPE (bit 0x1000) neither ignored nor caught = default action = kill.
  7. - Not read: the previous run's last lines (gone with the restart); dockerd gives only the exit code.
  8. ## Local test (scratch CL1/rep, port 8701, tr7-exit repro, live bin/hybriel + plugins, TLS server that RSTs)
  9. - plain `./hybriel project.hl`: exit **141** (57 fetch errors, then killed).
  10. - `sh -c "trap '' PIPE; exec ./hybriel project.hl"`: exit **0**, 300 errors caught, `survived 300`. So the runtime INHERITS SIG_IGN and does not reset it itself (the live SigIgn=0 only because nothing sets it).
  11. - Docker's init (docker-init) does not matter: it runs the command; the shell trap is set after it, in the app's own process (exec keeps the disposition). /usr/bin/sh exists in the image.
  12. ## Options (ranked)
  13. 1. **(a) compose command wrapper — recommended, no code deploy, only docker-compose.yml + `docker compose up -d tracker` (one restart, ~165 s 503; do it via the normal swap, the standby would cover it).** In service `tracker` (not the standby, optional there too; the x-tracker-common anchor would cover both):
  14. `- command: ./bin/hybriel project.hl`
  15. `+ command: ["sh", "-c", "trap '' PIPE; exec ./bin/hybriel project.hl"]`
  16. Caution: deploy.sh never sends docker-compose.yml? It does (not in EXCLUDES) — so the same change must go into the repo's docker-compose.yml too, or the next deploy overwrites it. Evidence: local test above (141 -> survived).
  17. 2. (b) switch off the trigger by env: NOT possible. The trigger is the guest-open person fill on request, no TRACKER_* variable controls it (project.hl reads only TRACKER_PORT/WATCH/SESSIONS/WARM_*; the job flags TRACKER_SYNC/BACKFILL/... of the standby do not cover it). Needs code.
  18. 3. (c) standby again: nginx tracker.conf has `upstream tracker_app { server 127.0.0.1:45008; server 127.0.0.1:45018 backup; }` with proxy_next_upstream error/timeout/502/503, so 45018 gets requests only while 45008 is down. Starting it (`docker compose --profile standby up -d tracker-standby`) would cover the 165 s boot gaps (it needs ~40 s to boot, serves while main is down). BUT: it has the same bug (same runtime) and dies on its first TMDB reset; jobs off, but guest-open and person fill are still on; two processes on one storage outside deploy.sh's ~40 s overlap = held for hours: Anton's note (LOG 2026-10-25 11:0x): safe for ~40 s, NOT covered: in-memory caches/counters, cursor snapshots, killed lock holder -> 12 s LockTimeout; and hl:web sessions.hl in memory (ident #28) can overwrite logins. Not recommended as a lasting state.
  19. ## Started / stopped
  20. - Started: node tlssrv.mjs (port 8701, killed, pid file CL1/rep/srv.pid), the two hybriel repro runs (finished), git worktree CL1/wt (removed). Nothing runs now. Scratch left: CL1/rep (copy of bin/plugins/certs, no live data, no .env).
  21. - Byrodin: only docker inspect/events/logs/exec of `command -v sh`, journalctl, cat, /proc reads. Nothing changed.

Branches

Latest commits

  • b8bba562CL1: crash loop report (SIGPIPE confirmed, trap wrapper option)mre
  • 298785f2Tracker: CL1 startedmre
  • 36b22710Tracker: port slot, CL1 briefmre
  • a401190fTracker: GO for the crash loopmre
  • e195d372Tracker: token pathsmre
  • 7f541d11Tracker conductor: CONDUCTOR.md, short STATUS.md, old status + decisions archive to archive/2026-10-31mre
  • 8dd423f7README: login.js stays by caramboleyo's explicit rulemre
  • d8df1493tracker: standby service on port 45018 and a gap-free hand-over in deploy.sh step 4mre
  • 36dd1686ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
  • ff9b838etracker: the Ended status pill uses the same red as layouts (pill danger); gate updatedmre
  • 40d9719eTP2: LOG line and report for the tracker pillsmre
  • ab3f2ba5tracker: status, genres, TMDB/IMDb/TVDB/TVmaze links and list kinds use the theme's pill; dense season list with the season check centred on its title line; gates for bothmre
  • 521061d6tracker header on phones: signed in, the brand fits whole at 360 and 390 px (tighter gaps and side paddings, slightly smaller brand, narrow screens and signed in only); mobile gate checks itmre
  • 18114a53tracker: franchises gate waits for the signed-out selector instead of the removed Log in buttonmre
  • 08561d73ident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
  • 59ef1e4atests/browser: repair 'done' check counts the 404 titles the first run already finished (race: failed=1 when Bulk Film 79 ran before the restart)mre
  • 5925fc4dreports/MK-mobile.md: rebase update, gate countsmre
  • 6adbc7f0extlink badges: background-clip after the background shorthand (it reset the clip: the pills were 44 px tall); gates check the lookmre
  • 8d3b0f20widget: the franchise link's 44 px tap area no longer overlaps the Prequel/Sequel rowmre
  • 1d98dcfdbrowser gate: the badges' size check reads the padding box (the 44 px tap area is transparent border)mre