Containerd fails with error: strconv.ParseUint: parsing "(unknown)": invalid syntax
We are using contained in the Kepler project to collect cgroup metrics.
However, a Kepler user has reported this error of: strconv.ParseUint: parsing "(unknown)": invalid syntax
More details are found here: https://github.com/sustainable-computing-io/kepler/discussions/750
Any idea how to debug/fix this?
Below messages keep coming in containerd logs, what needs to be done to get rid of this
2025-02-07T09:00:57.227428+01:00 control-plane-m2 containerd[349550]: time="2025-02-07T09:00:57.186715392+01:00" level=error msg="collecting metrics for b943fa41b409f391b279872b99a934bb116f2b161da9f65xxxxxxxxxxxx" error="strconv.ParseUint: parsing "(unknown)": invalid syntax"
containerd version v2.0.0
Seems coming from following code:
collected := time.Now()
stats, err := tk.Stats(ctx)
if err != nil {
if !errdefs.IsNotFound(err) {
log.G(ctx).WithError(err).Errorf("collecting metrics for %s", tk.ID())
}
continue
}