[Bug] Intel iGPU stats never reach the hub despite agent collecting data successfully
Environment:
- beszel-agent 0.20.0 (native systemd binary install, not Docker)
- beszel hub 0.20.0
- Host: Ubuntu 26.04, Intel iGPU using the
i915kernel driver (notxe) - Agent runs as an unprivileged systemd service user with
AmbientCapabilities=CAP_SYS_RAWIO CAP_PERFMON(needed for SMART +intel_gpu_toprespectively) - Hub connects to the agent via the classic SSH-pull method (host:port), not the WebSocket+token method
Bug: The agent's GPU collector runs correctly and produces real data, but the hub's systems.info for this system never contains a "g" (GPU) key — under any load, including confirmed real GPU work.
What I ruled out:
- Not issue #2312 ("GPU cell renders empty at 0% utilization", fixed in 0.20.0) — that was a frontend display bug on an already-stored zero value. I generated confirmed real GPU load (a 20s VAAPI h264 encode via
ffmpegdirectly against/dev/dri/renderD128, verified by core temps rising 43°C→50°C and ~129fps actual encoding throughput) and checked the hub's rawsystem_statstime-series during and after — the"g"key is absent from every sample, active or idle. So this isn't a stored-zero-renders-blank issue; the value is never being stored at all. - Not a permissions/capability gap — confirmed via
/proc/<pid>/statusthat the running agent process carries bothCAP_SYS_RAWIOandCAP_PERFMON, and confirmed via/proc/<pid>/iothat theintel_gpu_topchild process (correct PID, correct user) is actively producing output continuously (wcharsteadily increasing) with zero errors logged. - Traced
agent/gpu.go/agent/gpu_intel.go:GetCurrentData()returns non-empty as long asGpuDataMaphas any entry, andupdateIntelFromStats()unconditionally populatesGpuDataMap["i0"]on every successfully parsed row. Manually checked real capturedintel_gpu_topoutput (idle and under load) against the parser's expected column/header format — no mismatch found.
Where I'm stuck: There's no per-cycle logging anywhere between data collection and the hub push (GetDataHandler → gatherStats() has no log statements), so isolating the exact failing line requires adding instrumentation and rebuilding the agent binary — which I haven't done.
Question for maintainers: is there a known interaction between GPU stats collection and either (a) the ambient-capability/non-root systemd invocation pattern, or (b) the SSH-pull hub connection method (vs. WebSocket+token), that could silently drop the GPU field before it reaches the hub? Happy to add debug instrumentation and rebuild if pointed at where to look.
Source: henrygd/beszel