Giter Club home page Giter Club logo

Comments (4)

dilyanpalauzov avatar dilyanpalauzov commented on June 26, 2024

Here are more concise instructions. Containerfile is:

FROM docker.io/library/ubuntu:20.04
RUN apt-get update && apt-get install -y sudo python3 openssh-server 
ENTRYPOINT ["/lib/systemd/systemd“]

and then

% podman build -t uuu .
% podman run -d uuu:latest
8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad
% sudo podman container checkpoint 8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad
Error: `/usr/bin/crun checkpoint --image-path /var/lib/containers/storage/overlay-containers/8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad/userdata/checkpoint --work-path /var/lib/containers/storage/overlay-containers/8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad/userdata 8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad` failed: exit status 1

The reason to install sudo, python3, openssh-server is that one of these installs systemd, which is the entrypoint.

from podman.

giuseppe avatar giuseppe commented on June 26, 2024

this is the error I get on Fedora 40:

(33.251449) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd       10 events 0x000019 data 0x0000000000000a
(33.251449) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd        9 events 0x000019 data 0x00000000000009
(33.251450) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd        8 events 0x000019 data 0x00000000000008
(33.251451) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd        5 events 0x000019 data 0x00000000000005
(33.251452) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd        6 events 0x000019 data 0x00000000000006
(33.251452) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd        3 events 0x000019 data 0x00000000000003
(33.251467) 822520 fdinfo 5: pos:                0 flags:                0/0x1
(33.251489) fsnotify: wd: wd 0x000003 s_dev 0x000097 i_ino       0x30d156d8 mask 0x0002c8
(33.251491) fsnotify: 	[fhandle] bytes 0x000024 type 0x0000f8 __handle 0x810021fb00000000:0x7a4be1136260a9fa
(33.251497) fsnotify: 		Trying via mntid 2612 root / ns_mountpoint @./ (28)
(33.251500) Warn  (criu/fsnotify.c:281): fsnotify: 	Handle 0x97:0x30d156d8 cannot be opened
(33.251501) irmap: Resolving 97:30d156d8 path
(33.251502) irmap: 	Found /usr/share/dbus-1/system-services in cache
(33.251503) fsnotify: 	Dumping /usr/share/dbus-1/system-services as path for handle
(33.251504) fsnotify: wd: wd 0x000002 s_dev 0x000097 i_ino       0x2149dfd3 mask 0x0002c8
(33.251505) fsnotify: 	[fhandle] bytes 0x000024 type 0x0000f8 __handle 0x810021fb00000000:0x7a4be1136260a9fa
(33.251508) fsnotify: 		Trying via mntid 2612 root / ns_mountpoint @./ (28)
(33.251510) Warn  (criu/fsnotify.c:281): fsnotify: 	Handle 0x97:0x2149dfd3 cannot be opened
(33.251512) irmap: Resolving 97:2149dfd3 path
(33.251514) irmap: 	Found /etc/dbus-1/system.d in cache
(33.251515) fsnotify: 	Dumping /etc/dbus-1/system.d as path for handle
(33.251515) fsnotify: wd: wd 0x000001 s_dev 0x000097 i_ino         0xa1e942 mask 0x0002c8
(33.251516) fsnotify: 	[fhandle] bytes 0x000024 type 0x0000f8 __handle 0x810021fb00000000:0x7a4be1136260a9fa
(33.251519) fsnotify: 		Trying via mntid 2612 root / ns_mountpoint @./ (28)
(33.251521) Warn  (criu/fsnotify.c:281): fsnotify: 	Handle 0x97:0xa1e942 cannot be opened
(33.251522) irmap: Resolving 97:a1e942 path
(33.251523) irmap: Scanning /etc hint
(33.251530) irmap: Scanning /var/spool hint
(33.251531) irmap: Scanning /var/log hint
(33.251531) irmap: Scanning /usr/share/dbus-1/system-services hint
(33.251532) irmap: Scanning /var/lib/polkit-1/localauthority hint
(33.251533) irmap: Scanning /usr/share/polkit-1/actions hint
(33.251533) irmap: Scanning /lib/udev hint
(33.251534) irmap: Scanning /. hint
(33.251534) irmap: Scanning /no-such-path hint
(33.251535) irmap: Refresh stat for /no-such-path
(33.251545) Warn  (criu/irmap.c:104): irmap: Can't stat /no-such-path: No such file or directory
(33.251547) Error (criu/fsnotify.c:284): fsnotify: 	Can't dump that handle
(33.251550) ----------------------------------------
(33.251557) Error (criu/cr-dump.c:1674): Dump files (pid: 822520) failed with -1
(33.251560) Waiting for 822520 to trap
(33.251565) Daemon 822520 exited trapping
(33.251568) Sent msg to daemon 3 0 0
pie: 30: __fetched msg: 3 0 0
pie: 30: 30: new_sp=0x7fd3119a0e48 ip 0x7fd311d4c64a
(33.251589) 822520 was trapped
(33.251596) 822520 was trapped
(33.251598) 822520 (native) is going to execute the syscall 15, required is 15
(33.251603) 822520 was stopped
(33.251726) net: Unlock network
(33.251728) Running network-unlock scripts
(33.268963) Unfreezing tasks into 1
(33.268982) 	Unseizing 822446 into 1
(33.268986) 	Unseizing 822505 into 1
(33.268988) 	Unseizing 822520 into 1
(33.269010) 	Unseizing 822521 into 1
(33.269012) 	Unseizing 822523 into 1
(33.269015) 	Unseizing 822531 into 1
(33.269035) Error (criu/cr-dump.c:2098): Dumping FAILED.

looks similar to checkpoint-restore/criu#2324

If it can be of any help, in my case the inode is:

# podman exec -lti find -inum 10611010
./usr/share/dbus-1/system.d

@adrianreber any idea what it could be?

from podman.

adrianreber avatar adrianreber commented on June 26, 2024

Upstream we do not test checkpointing systemd a lot. So I would recommend a container without systemd.

from podman.

Luap99 avatar Luap99 commented on June 26, 2024

From https://docs.podman.io/en/latest/markdown/podman-container-checkpoint.1.html

IMPORTANT: If the container is using systemd as entrypoint checkpointing the container might not be possible.

So this is already documented that systemd may not work.

In any case this does not seem to be a podman bug as CRIU is failing not podman thus closing this here.

from podman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.