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

Need help for Error : OCI runtime restore failed: criu failed: type NOTIFY errno 0 #2530

Open
maglna1 opened this issue Nov 25, 2024 · 1 comment

Comments

@maglna1
Copy link

maglna1 commented Nov 25, 2024

1、i got error when i use "docker start --checkpoint=ckp10 looper11"
checkpoint done, but got an error when useing it.

error:
Error response from daemon: OCI runtime restore failed: criu failed: type NOTIFY errno 0
log file: /run/containerd/io.containerd.runtime.v2.task/moby/71043d59efcf65453427cfce657d89ab7c526d18388397ee49e3ed8a5b52e217/work/restore.log: unknown


2、cmd history:
root@kwephispre27544:~/fastfreeze_sufen/criu/criu-3.14# docker run -d --name looper10 busybox:latest /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
6feeda50fcf77f46074e8fcb927f2de072c6506a7b768137e96ff14f1e9f4a0f
root@kwephispre27544:~/fastfreeze_sufen/criu/criu-3.14# docker checkpoint create --checkpoint-dir=/home/container/ looper10 ckp10
ckp10
root@kwephispre27544:~/fastfreeze_sufen/criu/criu-3.14# docker create --name looper11 busybox /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
71043d59efcf65453427cfce657d89ab7c526d18388397ee49e3ed8a5b52e217
root@kwephispre27544:~/fastfreeze_sufen/criu/criu-3.14# docker start --checkpoint-dir=/home/container/ --checkpoint=ckp10 looper11
Error response from daemon: custom checkpointdir is not supported
root@kwephispre27544:~/fastfreeze_sufen/criu/criu-3.14# cp /home/container/ckp10 /var/lib/docker/containers/$(docker ps -aq --no-trunc --filter name=looper11)/checkpoints/
cp: -r not specified; omitting directory '/home/container/ckp10'
root@kwephispre27544:~/fastfreeze_sufen/criu/criu-3.14# cp -r /home/container/ckp10 /var/lib/docker/containers/$(docker ps -aq --no-trunc --filter name=looper11)/checkpoints/
cp: cannot create directory '/var/lib/docker/containers/71043d59efcf65453427cfce657d89ab7c526d18388397ee49e3ed8a5b52e217/checkpoints/': No such file or directory
root@kwephispre27544:~/fastfreeze_sufen/criu/criu-3.14# cp -r /home/container/ckp10 /home3/docker/containers/$(docker ps -aq --no-trunc --filter name=looper11)/checkpoints/
root@kwephispre27544:~/fastfreeze_sufen/criu/criu-3.14# docker start --checkpoint=ckp10 looper11
Error response from daemon: OCI runtime restore failed: criu failed: type NOTIFY errno 0
log file: /run/containerd/io.containerd.runtime.v2.task/moby/71043d59efcf65453427cfce657d89ab7c526d18388397ee49e3ed8a5b52e217/work/restore.log: unknown


3、my version is :
(1)criu-3.14
criu check
Looks good.
(2)uname -r : 5.4.0-169-generic
(3)lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal
(4)docker version
Client: Docker Engine - Community
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:02:57 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:03 2022
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          6081f8968
  GitCommit:        6081f8968d44426e3b76488eb2768a65fbb6cce1
 runc:
  Version:          1.1.2
  GitCommit:        v1.1.2-0-ga916309
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
@adrianreber
Copy link
Member

We cannot really help you with the errors from docker, you should talk to docker.

For help with the CRIU failure please share the log file restore.log.

Also, your CRIU version is really old. Please use the latest version of CRIU.

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

No branches or pull requests

2 participants