gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit89606a5c89606a5cHM65 briefmre89606a5c/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

  • 89606a5cHM65 briefmre
  • 096ce0d4log: DP69 live on day48mre
  • b3d8a80bDP69 brief, RV48 mergedmre
  • ce6d7d32Merge rv48: Hybriel day48mre
  • 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
  • 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
  • 4a802ae7status: RV48 runningmre
  • 0a5412b6RV48 brief, day48 outmre
  • 56665efelog: CB69 mergedmre
  • 05448a98Merge cb69-imports: appTitle in a dependency-free topicmre
  • e55b379dKeep shared app title independent of the route import graphmre
  • 9a99659blog: hybriel#334, batch waits for day48mre
  • 85fa6c9blog: CB68 result, CB69 startedmre
  • 2f07c1b7log: DP68 boot gate failed, CB68mre
  • 9652782dlog: HM59 merged, DP68 startedmre
  • 29867a75Merge hm59-logic: tracker#59 page logic moved to libmre
  • f7bfe90bMove remaining page builders into their topicsmre
  • 7c3991f9log: day46 from Antonmre
  • ec54fc35Move show page logic into the shows topicmre
  • c1a8d074log: correct timesmre