[CRIU] Restore process issue
Andrei Vagin
avagin at virtuozzo.com
Mon Feb 26 10:09:10 MSK 2018
Hi Michael,
Is there only one process? What opened files does it have? You can get
them by this command:
lsof -p PID
Could you send dump and restore logs?
And could you collect a strace for criu restore:
strace -f strace.log -s 256 -f criu restore ...
Thanks,
Andrei
On Mon, Feb 26, 2018 at 02:29:17PM +0800, Michael Sheng Yang Loh wrote:
> Hi,
>
> I'm trying to dump and restore a process on the same machine using criu. I
> managed to dump the process successfully but am having trouble restoring
> the process.
>
> The error in the restore log is:
> (00.016370) 2866: sk unix: Opening standalone socket (id 0x6a ino 0x696e
> peer 0)
> (00.016392) 2866: Error (criu/sk-unix.c:1194): sk unix: Can't bind
> socket: No such file or directory
> (00.016395) 2866: sk unix: Reverted working dir
> (00.016399) 2866: Error (criu/files.c:1202): Unable to open fd=18 id=0x6a
> (00.016948)pie: 2550: Task 2866 exited, status= 1
> (00.016985) Error (criu/cr-restore.c:2174): Restoring FAILED.
>
> =====================================
> Some environment information
>
> uname -r
> 4.15.4-1.el7.elrepo.x86_64
>
> sudo /opt/criu/criu-3.7/criu/criu -V
> Version: 3.7
>
> sudo /opt/criu/criu-3.7/criu/criu check
> Looks good.
>
> =====================================
> I've taken a look at
> https://criu.org/External_UNIX_socket
> https://github.com/checkpoint-restore/criu/issues/410
>
> I've tried --evasive-devices --link-remap --skip-in-flight --tcp-close
> options to no avail.
>
> I've also tried
> criu dump --external unix[26990]
> and
> criu restore --inherit-fd fd[3]:socket:[26990]
> but it fails with 'Error (criu/files.c:1582): Can't fstat inherit fd 3: Bad
> file descriptor'
>
> Please let me know if you require more information.
> Any help on this issue will be much appreciated!
>
> Many thanks
> Michael
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list