#2431·beszel

[Bug] Intel iGPU stats never reach the hub despite agent collecting data successfully

Author: rafael-alvarez-001Created Sep 26, 2026Updated Sep 27, 2026
Labelsbug

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 i915 kernel driver (not xe)
  • Agent runs as an unprivileged systemd service user with AmbientCapabilities=CAP_SYS_RAWIO CAP_PERFMON (needed for SMART + intel_gpu_top respectively)
  • 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 ffmpeg directly against /dev/dri/renderD128, verified by core temps rising 43°C→50°C and ~129fps actual encoding throughput) and checked the hub's raw system_stats time-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>/status that the running agent process carries both CAP_SYS_RAWIO and CAP_PERFMON, and confirmed via /proc/<pid>/io that the intel_gpu_top child process (correct PID, correct user) is actively producing output continuously (wchar steadily increasing) with zero errors logged.
  • Traced agent/gpu.go / agent/gpu_intel.go: GetCurrentData() returns non-empty as long as GpuDataMap has any entry, and updateIntelFromStats() unconditionally populates GpuDataMap["i0"] on every successfully parsed row. Manually checked real captured intel_gpu_top output (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.