SeventhSon
(SeventhSon)
August 17, 2018, 10:19am
1
lxc snapshot u18-1 --stateful
Error: snapshot dump failed
(00.200409) Error (criu/sk-netlink.c:73): The socket has data to read
(00.200425) Error (criu/cr-dump.c:1352): Dump files (pid: 3315) failed with -1
(00.210423) Error (criu/cr-dump.c:1709): Dumping FAILED.
than:
lxc snapshot u18-1
and than again:
lxc snapshot u18-1 --stateful
was succesfull. why? should I perform ordinary snapshot before --stateful?
stgraber
(Stéphane Graber)
August 17, 2018, 2:26pm
2
It’s a race, the first snapshot failed because there was some data in some network socket, the second succeeded because there was no data at that time.
1 Like
SeventhSon
(SeventhSon)
August 17, 2018, 10:30pm
3
ok, thanks. that is an explanation. how to resolve it?
stgraber
(Stéphane Graber)
August 17, 2018, 10:31pm
4
Until there’s a kernel API that CRIU can use to read buffers with data, the only way around it is to just try the snapshot until it succeeds.