Skip to content

fix(arkime): node-scope capture healthcheck so a quiet network cannot trip autoheal; pcap-sync heartbeat without kill-loop on backlog (#3170) - #3176

Merged
Xore merged 1 commit into
mainfrom
issue-3170
Sep 12, 2026
Merged

Xore merged 1 commit into
mainfrom
issue-3170

Conversation

@Xore

@Xore Xore commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Why

Capture healthcheck used a global monotonic index counter -- a quiet network segment (no new traffic) read as "stuck" and tripped autoheal, restarting a healthy capture process. Fixed by scoping the check to this node and failing open (exit 0) when ES itself is unreachable or the response can't be parsed, since an ES hiccup is a bystander, not a capture fault.

pcap-sync had no liveness signal at all: a long pass over the live 33 GB backlog looked identical to a wedged loop. Added a heartbeat file, seeded before the first pass and touched per-file (not per-pass), so a slow-but-alive sync never gets killed mid-backlog. Also fixes a zero-byte staging file left behind on interrupted copies.

Evidence

  • Capture healthcheck: tested live in-container. FailingStreak clears; ES-down path now exits 0 (was hard fail).
  • pcap-sync: not exec-testable live -- container exited 137 during the test session. Heartbeat logic reviewed and matches the capture-side pattern; flagging this as unverified live, follow up if it misbehaves after deploy.

Closes #3170

Global monotonic index counter tripped capture's healthcheck on a quiet
network segment (no new traffic != stuck). Scope check to this node and
fail open on ES errors so a bystander ES hiccup cannot restart capture.

pcap-sync loop had no liveness signal: seed heartbeat before the first
pass and touch it per-file (not per-pass), so a long pass over the live
backlog never reads as wedged. Also fixes zero-byte staging.

Closes #3170
@strix-security

strix-security Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Strix Security Review

Security review could not be completed for this commit.

Updated for e0b20ca.


Reviewed by Strix
Re-run review · Configure security review settings

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@Xore
Xore merged commit 9090c92 into main Sep 12, 2026
110 checks passed
@Xore
Xore deleted the issue-3170 branch September 12, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ops: 0 compose service(s) drifted out of existence (#2747 watch) + 1 container(s) unhealthy for 1.0h+ (#3030 watch)

1 participant