Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marceloamaral opened this issue Jun 28, 2023 · 1 comment

Comments

@marceloamaral
Copy link

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: sustainable-computing-io/kepler#750

Any idea how to debug/fix this?

@dhiman360
Copy link

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
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants