Skip to content

streamer-01 CrashLoopBackOff

Date: 2026-08-31 Duration: ~3-4 hours Status: Stabilized (unconfirmed root cause) — monitoring in progress Namespace: cdn, Deployment: streamer-01, Image: registry.nexus.castis.io/cdn/streamer:v1.2.23

Summary

streamer-01 (the prod streamer, ArgoCD app streamer-prod) was stuck in CrashLoopBackOff, crashing with exit code 139 (SIGSEGV) roughly 1-2 seconds after every container start. The sibling deployment streamer (staging) on the same image ran fine throughout.

After exhausting every application/config-level hypothesis, restarting k3s.service on node nuc-a was followed by streamer-01 staying stable for 14+ minutes (vs. a prior max survival of ~60s across dozens of attempts). Root cause is not conclusively proven — see Open Questions.

Symptoms

  • Pod streamer-01-*: 0/1 CrashLoopBackOff, Exit Code: 139
  • Crash happened ~1-2s after container start in most cases (occasionally up to ~60s), with no error in application logs — only the normal startup warnings (WARNING: there is no [ad] module config... etc.)
  • Reproduced with byte-identical config, fresh PVC/PV, any node, with or without probes/thread-count/hostNetwork changes

Ruled Out (with direct evidence)

Hypothesis How tested Result
Node placement (nuc-a vs nuc-b) Pinned via nodeSelector, tested both Crashed on both
hostNetwork / dnsPolicy: ClusterFirstWithHostNet Removed from working staging deployment; it stayed stable without it. Test deployment matching config also crashed on both nodes without it. Not the cause
DNS resolution of cproxy-nuc backend Checked via nslookup in-cluster — clean A record, no malformed AAAA response Normal
http-remote.url path (/file/playtelly vs /files/cms) Swapped in test config Crashed either way
Readiness/liveness probes Removed entirely from test deployment Still crashed (before probes would ever fire)
PVC/data staleness or corruption Fully wiped PV/PVC/Longhorn volume multiple times, always fresh Still crashed on clean volumes
Explicit command: override vs image default entrypoint Tested both No difference
thread-count (64 → 16 → 2) Tested at each value, watched multiple minutes No meaningful change in crash pattern
OS resource limits (ulimit/rlimits) Compared /proc/1/limits between working and crashing pod Identical
Pod securityContext / admission webhooks Checked — both empty {}, no relevant webhooks in cluster Identical
ConfigMap content Full byte-level diff, and a test deployment referencing the literal same ConfigMap object as the working pod Still crashed
Duplicate net-timeout key in YAML Present in both working and broken configs identically Not a differentiator
CPU instruction set (nuc-a i7-1360P vs nuc-b i5-1340P) Checked /proc/cpuinfo flags Identical flag set (sse4_1/2, avx, avx2, avx_vnni), not the cause
Memory pressure caused by our own testing Checked free -h before/after stopping all test pods No change — ambient cluster condition, not caused by testing

What Actually Correlated With Stability

  1. etcd was under real load at the time of crashes — journalctl -u k3s on nuc-a showed etcd "apply request took too long" warnings with 300-770ms request latencies (expected <100ms), concurrent with streamer-01's crash loop.
  2. Restarting k3s.service on nuc-a (systemctl restart k3s) was followed by streamer-01 running continuously for 14+ minutes with no further crashes — far beyond any prior survival time.
  3. As a side effect of the nuc-a restart, castis-desktop (a third etcd/control-plane voting member) went NotReady (kubelet stopped reporting) for several minutes, then self-recovered via systemd's restart-on-failure — k3s.service there had restarted on its own around the same window.

Working theory (not proven): the app may have a bug in how it handles slow/delayed disk or API responsiveness during startup, and the etcd/I-O slowness on the node was enough to trigger it. Restarting k3s cleared backed-up etcd/kubelet state and the crash stopped. This is correlation, not a confirmed causal mechanism — no core dump or backtrace was obtained (image has no strace/gdb, and node-level dmesg/privileged core-dump collection was not authorized).

  • castis-desktop is significantly underpowered for its role as a full etcd voting member: 4 CPU / ~3.9GB RAM vs. 16 CPU / 15GB on nuc-a/nuc-b, while also running Longhorn instance-manager, longhorn-manager, vernemq, vector, and other workloads. It appears to be the most fragile of the three etcd members under any burst of raft catch-up traffic.
  • kube-vip-ds pods show very high restart counts (271 / 94 / 65 across nodes) — worth investigating separately as a cluster stability issue.
  • A kubelet DNS warning was observed: "Nameserver limits exceeded" — duplicate 8.8.8.8 entry in the applied nameserver list. Cosmetic/config cleanup item, not investigated further.

Actions Taken

  • Disabled and later cleaned up the ArgoCD Application streamer-prod temporarily during testing (renamed argocd/apps/cdn/streamer-prod.yml → .yml.disabled, committed/pushed, then restored) to stop ArgoCD self-heal from fighting manual test changes.
  • Fully deleted and recreated streamer-01's Deployment, ConfigMap, Service, PVC, PV, and underlying Longhorn volume multiple times to rule out stale state.
  • Created and fully cleaned up temporary test deployments streamer-02, streamer-03, streamer-04 (isolated ConfigMap/PVC/Deployment copies) to isolate variables.
  • Restarted k3s.service on nuc-a only, per explicit approval, one node at a time.
  • Did not restart k3s.service on nuc-b or castis-desktop — held off once castis-desktop briefly went NotReady, to avoid risking etcd quorum loss.

Open Questions

  • No confirmed root cause / no crash backtrace obtained. The k3s restart correlating with stability could be coincidental — needs a longer observation window (hours, not minutes) before calling this resolved.
  • Unknown whether the crash will recur under real traffic/load (all testing so far was on an idle pod with no real stream ingest).
  • Whether castis-desktop's hardware is adequate for its etcd role long-term is a separate decision to make.
  1. Keep monitoring streamer-01 for several more hours before declaring this resolved.
  2. If it recurs, the next real diagnostic step is a core dump + backtrace, which needs privileged node access to configure core_pattern/ulimit -c — not attempted this session.
  3. Consider whether castis-desktop should remain a full etcd voting member given its hardware, or investigate kube-vip-ds's restart counts as a related cluster-health item.
  4. ~~Consider re-enabling argocd/apps/cdn/streamer-prod.yml if it's still disabled~~ — done: the app was reverted back in git, and after a forced ArgoCD refresh the streamer-prod Application is recreated, Synced/Healthy, and matches the live streamer-01 pod.

Final State (end of session)

  • streamer-01: 1/1 Running, stable for 16+ minutes since last restart (22 min total uptime)
  • ArgoCD streamer-prod app: Synced / Healthy, back to normal GitOps management
  • All temporary test resources (streamer-02/03/04 and their ConfigMaps/PVCs/PVs/Longhorn volumes) fully cleaned up
  • nuc-a, nuc-b, castis-desktop all Ready, etcd quorum healthy