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

When I join the edge node, I get the following error : no such file or directory: unknown, stderr: , stdout: #5584

Open
codeleep opened this issue Apr 30, 2024 · 1 comment
Labels
kind/question Indicates an issue that is a support question.

Comments

@codeleep
Copy link

What happened and what you expected to happen:
When I join the edge node, I get the following error

Error: edge node join failed: copy resources failed: failed to exec copy cmd, err: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "eacd7a8da9e22e35fd3af50eafc8df827b61916e001a4114e1ec647d4187454b": OCI runtime exec failed: exec failed: unable to start container process: error adding pid 1512876 to cgroups: failed to write 1512876: openat2 /sys/fs/cgroup/unified/kubeedge.slice/kubeedge-setup.slice/kubeedge-setup-podcopyresource.slice/cri-containerd-fe9656ddc2adc6aa09d9f22e1a68f0302c544e5224d239a78d22ad3d7e90a1da.scope/cgroup.procs: no such file or directory: unknown, stderr: , stdout:
execute keadm command failed:  edge node join failed: copy resources failed: failed to exec copy cmd, err: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "eacd7a8da9e22e35fd3af50eafc8df827b61916e001a4114e1ec647d4187454b": OCI runtime exec failed: exec failed: unable to start container process: error adding pid 1512876 to cgroups: failed to write 1512876: openat2 /sys/fs/cgroup/unified/kubeedge.slice/kubeedge-setup.slice/kubeedge-setup-podcopyresource.slice/cri-containerd-fe9656ddc2adc6aa09d9f22e1a68f0302c544e5224d239a78d22ad3d7e90a1da.scope/cgroup.procs: no such file or directory: unknown, stderr: , stdout:

Other information is as follows

  • containerd -v
    containerd github.com/containerd/containerd v1.7.16 83031836b2cf55637d7abf847b17134c51b38e53

  • sh. I have tested multiple versions. 1.17.0 ,1.16.1,1.16.2
    /home/www/kuedge/keadm-v1.17.0-linux-amd64/keadm/keadm join --cloudcore-ipport=xxxx:10000 --kubeedge-version=1.17.0 --cgroupdriver=systemd --remote-runtime-endpoint=unix:///run/containerd/containerd.sock --edgenode-name=node-mico --token=xxxx

  • Modify containerd Configuration File

[plugins."io.containerd.grpc.v1.cri"]
  sandbox_image = "kubeedge/pause:3.6"

[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
  ...
  [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
    SystemdCgroup = true

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
  • WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
    Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.7", GitCommit:"07a61d861519c45ef5c89bc22dda289328f29343", GitTreeState:"clean", BuildDate:"2023-10-18T11:42:32Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"linux/amd64"}
    Kustomize Version: v5.0.1
    Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.7", GitCommit:"07a61d861519c45ef5c89bc22dda289328f29343", GitTreeState:"clean", BuildDate:"2023-10-18T11:33:23Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"linux/amd64"}
  • KubeEdge version(e.g. cloudcore --version and edgecore --version):
@codeleep codeleep added the kind/question Indicates an issue that is a support question. label Apr 30, 2024
@WillardHu
Copy link
Collaborator

First, you can try using cgroupfs driver to make sure the configuration is conrrect, and you can look at the containerd's log.

If the configuration is correct, you will need to provide more information.

  • runc --version get runc version;
  • stat -fc %T /sys/fs/cgroup/ get cgroup version;
  • Provide information about the OS and Kernel;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

2 participants