Skip to content

CRaC can't checkpoint of spring app running inside a docker container (Mac OSX x86_64) #2

Open
@sbaldin

Description

@sbaldin

Hi, I trying to run spring boot from your examples with forked tomcat inside docker with latest build 17-crac+5, getting error on the attempt to checkout app, can you give any advice?

root@bacc339c8eaf:/# jcmd 9 JDK.checkpoint
9:
CR: Checkpoint ...
--------------------
023-05-03T07:55:34.079Z  INFO 9 --- [Attach Listener] jdk.crac                                 : /opt/app/spring-boot-0.0.1-SNAPSHOT.jar is recorded as always available on restore
JVM: invalid info for restore provided: queued code -1
An exception during a checkpoint operation:
jdk.crac.CheckpointException
        at java.base/jdk.crac.Core.checkpointRestore1(Core.java:141)
        at java.base/jdk.crac.Core.checkpointRestore(Core.java:246)
        at java.base/jdk.crac.Core.checkpointRestoreInternal(Core.java:262)

Also output of criu check --all contains a lot of not supported and denied lines maybe it is the reason?

 ./criu check --all
Warn  (criu/kerndat.c:1470): CRIU was built without libnftables support
Error (criu/cr-check.c:750): couldn't suspend seccomp: Operation not permitted
Error (criu/cr-check.c:793): Dumping seccomp filters not supported: Permission denied
Warn  (criu/cr-check.c:813): Dirty tracking is OFF. Memory snapshot will not work.
Error (criu/cr-check.c:1208): UFFD is not supported
Error (criu/cr-check.c:1208): UFFD is not supported
Error (criu/cr-check.c:1273): Time namespaces are not supported
Warn  (criu/cr-check.c:1334): Nftables based locking requires libnftables and set concatenations support
Error (criu/cr-check.c:996): failed to mount autofs: No such device
Looks good but some kernel features are missing
which, depending on your process tree, may cause
dump or restore failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions