<div dir="ltr"><div class="gmail_extra">My call is<br></div><div class="gmail_extra">ssh 0.0.0.0 orted-restore</div><div class="gmail_extra"><br></div><div class="gmail_extra">This is the code I've used for restore in orted-restore:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"> criu_init_opts();</div><div class="gmail_extra"> if(0 > (dir = open(path, O_DIRECTORY))){</div><div class="gmail_extra"> ....</div><div class="gmail_extra"> }<br></div><div class="gmail_extra"> criu_set_images_dir_fd(dir);</div><div class="gmail_extra"> criu_set_log_file("criu_restore.log");<br></div><div class="gmail_extra"> criu_set_log_level(4);</div><div class="gmail_extra"> int status = criu_restore();</div><div><br></div><div>Also I have noticed that orted (the restored process) is an init child (not orted-restore child) but I have no stdout, stderr on ssh (with or without criu_set_shell_job) probably because it's a init child and not a orted-restore child.<br></div><div><br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra">Federico<br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>__</div><div><span style="font-size:12.8px">Federico Reghenzani</span></div><div><font size="1">M.Eng. Student @ Politecnico di Milano</font></div><div><span style="font-size:x-small">Computer Science and Engineering</span></div><div><br></div><div><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-12-21 15:10 GMT+01:00 Federico Reghenzani <span dir="ltr"><<a href="mailto:federico1.reghenzani@mail.polimi.it" target="_blank">federico1.reghenzani@mail.polimi.it</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"><div dir="ltr">I've attached the criu log for dump and restore when it fails for PID. Today I noticed that the tty problem happens only if I tried to restore manually via ssh (so it's not really a problem for us).<div><br></div><div>@Pavel how can I add --<span style="font-size:12.8px">restore-sibling and -f via C API? </span></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,<span class=""><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>__</div><div><span style="font-size:12.8px">Federico Reghenzani</span></div><div><font size="1">M.Eng. Student @ Politecnico di Milano</font></div><div><span style="font-size:x-small">Computer Science and Engineering</span></div><div><br></div><div><br></div></div></div></div></div></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">2015-12-17 14:09 GMT+01:00 Cyrill Gorcunov <span dir="ltr"><<a href="mailto:gorcunov@gmail.com" target="_blank">gorcunov@gmail.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>On Thu, Dec 17, 2015 at 03:35:56PM +0300, Pavel Emelyanov wrote:<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>
> ><br>
> ><br>
> > I'm neither using -j for dump nor for restore. I tried also adding that but it seems it changes<br>
> > nothing. (I'm using the C API, so the criu_set_shell_job)<br>
><br>
> Hm... Then it's some tty issue. Cyrill, would you help us, please?<br>
> BTW, Frederico, feel free to file an issues about it on <a href="http://github.com/xemul/criu" rel="noreferrer" target="_blank">github.com/xemul/criu</a><br>
> if you find it easier to track issue progress out there.<br>
<br>
</span>Mind to run restore with -v4 option, or as via RPC criu_local_set_log_level<br>
to 4, and show the restore.log?<br>
<div><div><br>
><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>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>