gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit90734c6c90734c6cMerge branch 'hm60-shortids'mre90734c6c/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

  • 90734c6cMerge branch 'hm60-shortids'mre
  • e0db0d1bHM60 report: tracker#60 packed short-ID ownersmre
  • 3c79b576Pack short-ID ownership into byte buffersmre
  • e822524bstatus wordingmre
  • 1c7f0480log: HM60/HM61 startedmre
  • 2841d215missions HM60 HM61mre
  • 289c6ce4HM1 report: heap object breakdownmre
  • 2e7d6257log: HM1 startedmre
  • 2f790465mission HM1: heap object breakdownmre
  • a18957falog: evening re-measure after CBmre
  • aac9a98dlog: evening re-measure startmre
  • 45163bd4log: person/tmdb error hypothesismre
  • cb38de2blog: swap 503 causemre
  • fd10c3d5log: CB livemre
  • 7557c025log: CB deploy try 2mre
  • 06a7534aMerge branch 'cb'mre
  • 2f8030d6log: CB gates greenmre
  • 498bf644log: CB gates startmre
  • f59c2847gc1: bound the five request caches (shows.hl cacheLimit)mre
  • 6ea2c6d6log: morning re-measure 11-04mre