Skip to content

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

Open

Description

@marceloamaral

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?

Activity

  1. dhiman360 commented on Feb 10, 2025

    @dhiman360

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions