<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Hi Pavel,</div><div>thank you for your answer. I notice today that "sometimes" it works, so the problem is intermittent.</div><div><br></div></div></div></div></div></div></div></div><div class="gmail_quote">2015-12-17 12:38 GMT+01:00 Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 12/16/2015 12:35 PM, Federico Reghenzani wrote:<br>
> Hi all,<br>
><br>
> I've a strange problem trying to restore an image.<br>
><br>
> Trying to execute "criu restore -D directory" with the same image I get different error<br>
> messages. In particular sometimes it tells me:<br>
><br>
</span>> / 5485: Error (cr-restore.c:1499): Pid 5488 do not match expected 5487/<br>
<br>
This makes that while you were restoring the tree some tasks were<br>
fork()-ing in parallel thus occupying the pids that were supposed<br>
to be assigned to your tasks.<br>
<br>
To fix this reliably you should either c/r a container or use the<br>
--unshare option from patches<br>
<a href="https://lists.openvz.org/pipermail/criu/2015-December/023995.html" rel="noreferrer" target="_blank">https://lists.openvz.org/pipermail/criu/2015-December/023995.html</a><br>
<br>
> / 5485: Error (cr-restore.c:1262): 5488 exited, status=1/<br>
> /Killed/<br>
><br>
><br>
> other times tells me:<br>
><br>
> / 5485: Error (tty.c:531): tty: Unable to open dev/ptmx with specified index 0/<br>
> / 5485: Error (tty.c:917): tty: Can't open a (index 0): Bad file descriptor/<br>
<br>
Did you use the -j option on dump? If so, then it's likely the lack of<br>
same -j option for restore.<br></blockquote><div><br></div><div>I'm neither using -j for dump nor for restore. I tried also adding that but it seems it changes nothing. (I'm using the C API, so the criu_set_shell_job)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
> /Error (files-reg.c:445): `- XFail [/dev/shm/open_mpi.0000.cr.1.ghost] ghost: No such file or directory/<br>
<br>
MPI? Are you trying to C/R mpi jobs?<br></blockquote><div><br></div><div>Yes, we are trying to add to Open MPI the capability to migrate orted daemons between nodes. Currently we do not checkpoint the single mpi process, but the entire daemon with its children.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
> /Error (cr-restore.c:1995): Restoring FAILED./<br>
<span class="">><br>
><br>
> Note that in the first case I have no active process with that PID, and all other processes have PID under 1000.<br>
<br>
</span>Hm... If it's so, can you strace the restore with -f option so that we<br>
could check where the "bad" process comes from?<br>
<span class=""><br></span></blockquote><div><br></div><div>I'll try this option and the --unshare option in next days (probably on Monday), and I let you know.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">
> CRIU version: 1.8<br>
><br>
> criu check output:<br>
><br>
><br>
</span>> /Error (cr-check.c:634): Kernel doesn't support PTRACE_O_SUSPEND_SECCOMP/<br>
> /Error (cr-check.c:683): Dumping seccomp filters not supported: Input/output error/<br>
> /Warn (cr-check.c:696): Dirty tracking is OFF. Memory snapshot will not work./<br>
<span class="">><br>
><br>
><br>
> Thank you in advance, any help would be appreciated.<br>
><br>
> Cheers,<br>
> Federico<br>
><br>
> __<br>
> Federico Reghenzani<br>
> M.Eng. Student @ Politecnico di Milano<br>
> Computer Science and Engineering<br>
><br>
><br>
><br>
><br>
</span>> _______________________________________________<br>
> CRIU mailing list<br>
> <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
> <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
><br>
<br>
</blockquote></div><br></div><div class="gmail_extra">Thanks again,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra">Federico</div></div>