gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit451db7cd451db7cdgc1: show page and check clicks read the kept watched set instead of building one from a by-value copy of every watchmre451db7cd/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

  • 451db7cdgc1: show page and check clicks read the kept watched set instead of building one from a by-value copy of every watchmre
  • ddb4127egc1: TRACKER_QSTATS=1 logs queue and cache sizes every 10 s (measurement only)mre
  • da60547fstatus: GC1 done, backup bugmre
  • e4171021log: GC1 result, backup hard-link bugmre
  • f1597214deploy.sh backup: tar --hard-dereference (hot tar stored mpackdb sidecars as hard links to .sessions files)mre
  • 6b58571elog: GC windowmre
  • 5c8baa1fdeploy lock: hold only around deploy.shmre
  • b8dac822log: hybriel#309mre
  • bf676d9elog: GC1 startedmre
  • c7828541mission GC1mre
  • ef949994conductor: neutral ticket rulemre
  • 89e91ef3log: RV39 livemre
  • ee2b677alog: RV39 deployingmre
  • c1c4178cMerge branch 'rv39'mre
  • a016e9abReapply "Merge branch 'rv39'"mre
  • f29e2502log: RV39 gate fixmre
  • d9fce111browser gate #26: exact frame count incl. SL1 people step (hybriel#308)mre
  • ad529ac1log: m572 verdictmre
  • 1b37d404RV39 on hold: hybriel#308mre
  • f9127c68Revert "Merge branch 'rv39'"mre