cgroups icon indicating copy to clipboard operation
cgroups copied to clipboard

Containerd fails with error: strconv.ParseUint: parsing "(unknown)": invalid syntax

Open marceloamaral opened this issue 2 years ago • 1 comments

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?

marceloamaral avatar Jun 28 '23 10:06 marceloamaral

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
	}

dhiman360 avatar Feb 10 '25 06:02 dhiman360