<div dir="ltr">Thank you very much!<div>I have found the bad guy which leads to restore failed in container! </div><div><br></div><div>Here it is:</div><div>root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/bad_cr/ids-68.img </div><div>{</div><div>    &quot;magic&quot;: &quot;IDS&quot;, </div><div>    &quot;entries&quot;: [</div><div>        {</div><div>            &quot;vm_id&quot;: 4, </div><div>            &quot;files_id&quot;: 4, </div><div>            &quot;fs_id&quot;: 4, </div><div>            &quot;sighand_id&quot;: 4, </div><div>            &quot;pid_ns_id&quot;: 7, </div><div>            &quot;net_ns_id&quot;: 8, </div><div>            &quot;ipc_ns_id&quot;: 9, </div><div>            &quot;uts_ns_id&quot;: 10, </div><div>            &quot;mnt_ns_id&quot;: 11, </div><div>            &quot;user_ns_id&quot;: 6</div><div>        }</div><div>    ]</div><div>} </div><div><br></div><div><div>root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/bad_cr/core-68.img </div><div>{</div><div>    &quot;magic&quot;: &quot;CORE&quot;, </div><div>    &quot;entries&quot;: [</div><div>        {</div><div>            &quot;mtype&quot;: &quot;X86_64&quot;, </div><div>...</div><div>            &quot;tc&quot;: {<br></div><div>                &quot;task_state&quot;: 1, </div><div>                &quot;exit_code&quot;: 0, </div><div>                &quot;personality&quot;: 0, </div><div>                &quot;flags&quot;: 1077944384, </div><div>                &quot;blk_sigset&quot;: &quot;0x0&quot;, </div><div>                &quot;comm&quot;: &quot;dhclient&quot;, </div><div>                &quot;timers&quot;: {</div><div>                    &quot;real&quot;: {</div><div>                        &quot;isec&quot;: 0, </div><div>                        &quot;iusec&quot;: 0, </div><div>                        &quot;vsec&quot;: 0, </div><div>                        &quot;vusec&quot;: 0</div><div>                    }, </div><div>                    &quot;virt&quot;: {</div><div>                        &quot;isec&quot;: 0, </div><div>                        &quot;iusec&quot;: 0, </div><div>                        &quot;vsec&quot;: 0, </div><div>                        &quot;vusec&quot;: 0</div><div>                    }, </div><div>                    &quot;prof&quot;: {</div><div>                        &quot;isec&quot;: 0, </div><div>                        &quot;iusec&quot;: 0, </div><div>                        &quot;vsec&quot;: 0, </div><div>                        &quot;vusec&quot;: 0</div><div>                    }</div><div>                }, </div><div>                &quot;rlimits&quot;: {</div><div>                    &quot;rlimits&quot;: [</div><div>                        {</div><div>                            &quot;cur&quot;: 18446744073709551615, </div><div>                            &quot;max&quot;: 18446744073709551615</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 18446744073709551615, </div><div>                            &quot;max&quot;: 18446744073709551615</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 18446744073709551615, </div><div>                            &quot;max&quot;: 18446744073709551615</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 8388608, </div><div>                            &quot;max&quot;: 18446744073709551615</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 0, </div><div>                            &quot;max&quot;: 18446744073709551615</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 18446744073709551615, </div><div>                            &quot;max&quot;: 18446744073709551615</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 31333, </div><div>                            &quot;max&quot;: 31333</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 65536, </div><div>                            &quot;max&quot;: 65536</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 65536, </div><div>                            &quot;max&quot;: 65536</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 18446744073709551615, </div><div>                            &quot;max&quot;: 18446744073709551615</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 18446744073709551615, </div><div>                            &quot;max&quot;: 18446744073709551615</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 31333, </div><div>                            &quot;max&quot;: 31333</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 819200, </div><div>                            &quot;max&quot;: 819200</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 0, </div><div>                            &quot;max&quot;: 0</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 0, </div><div>                            &quot;max&quot;: 0</div><div>                        }, </div><div>                        {</div><div>                            &quot;cur&quot;: 18446744073709551615, </div><div>                            &quot;max&quot;: 18446744073709551615</div><div>                        }</div><div>                    ]</div><div>                }, </div><div>                &quot;cg_set&quot;: 4, </div><div>                &quot;signals_s&quot;: {}</div><div>            }, </div><div>            &quot;thread_core&quot;: {</div><div>                &quot;futex_rla&quot;: 0, </div><div>                &quot;futex_rla_len&quot;: 24, </div><div>                &quot;sched_nice&quot;: 0, </div><div>                &quot;sched_policy&quot;: 0, </div><div>                &quot;sas&quot;: {</div><div>                    &quot;ss_sp&quot;: 0, </div><div>                    &quot;ss_size&quot;: 0, </div><div>                    &quot;ss_flags&quot;: 2</div><div>                }, </div><div>                &quot;signals_p&quot;: {}</div><div>            }</div><div>        }</div><div>    ]</div><div>}</div></div><div><br></div><div>dhclient maybe use <span style="font-size:14px">SOCK_PACKET to acquire IP address. When I kill this process, CRIU works well !</span><br></div><div><span style="font-size:14px"><br></span></div><div><br></div><div>Best regards</div><div>From Jason Lee </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-19 16:51 GMT+08:00 Pavel Emelyanov <span dir="ltr">&lt;<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/16/2015 06:05 AM, Jason Lee wrote:<br>
&gt; In actually,I have done as you said but there are no pid info in fdinfo-img,just id,flag,type and fd.<br>
<br>
</span>Yes, fdinfo is a table, without pids. Pid is ... implicit here ;) E.g. fdinfo-4.img<br>
means that this is table number 4. Now you need to look at ids-*.img and check which<br>
one of them has files_id being 4. The respective image file name would contain the<br>
pid of the task owning one.<br>
<div><div class="h5"><br>
&gt; root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/c2/fdinfo-4.img<br>
&gt; {<br>
&gt;     &quot;magic&quot;: &quot;FDINFO&quot;,<br>
&gt;     &quot;entries&quot;: [<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 56,<br>
&gt;             &quot;flags&quot;: 0,<br>
&gt;             &quot;type&quot;: &quot;REG&quot;,<br>
&gt;             &quot;fd&quot;: 0<br>
&gt;         },<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 57,<br>
&gt;             &quot;flags&quot;: 0,<br>
&gt;             &quot;type&quot;: &quot;REG&quot;,<br>
&gt;             &quot;fd&quot;: 1<br>
&gt;         },<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 58,<br>
&gt;             &quot;flags&quot;: 0,<br>
&gt;             &quot;type&quot;: &quot;REG&quot;,<br>
&gt;             &quot;fd&quot;: 2<br>
&gt;         },<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 59,<br>
&gt;             &quot;flags&quot;: 1,<br>
&gt;             &quot;type&quot;: &quot;UNIXSK&quot;,<br>
&gt;             &quot;fd&quot;: 3<br>
&gt;         },<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 60,<br>
&gt;             &quot;flags&quot;: 0,<br>
&gt;             &quot;type&quot;: &quot;REG&quot;,<br>
&gt;             &quot;fd&quot;: 4<br>
&gt;         },<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 61,<br>
&gt;             &quot;flags&quot;: 1,<br>
&gt;             &quot;type&quot;: &quot;PACKETSK&quot;,<br>
&gt;             &quot;fd&quot;: 5<br>
&gt;         },<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 62,<br>
&gt;             &quot;flags&quot;: 1,<br>
&gt;             &quot;type&quot;: &quot;INETSK&quot;,<br>
&gt;             &quot;fd&quot;: 6<br>
&gt;         },<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 63,<br>
&gt;             &quot;flags&quot;: 0,<br>
&gt;             &quot;type&quot;: &quot;INETSK&quot;,<br>
&gt;             &quot;fd&quot;: 20<br>
&gt;         },<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 64,<br>
&gt;             &quot;flags&quot;: 0,<br>
&gt;             &quot;type&quot;: &quot;INETSK&quot;,<br>
&gt;             &quot;fd&quot;: 21<br>
&gt;         }<br>
&gt;     ]<br>
&gt; }<br>
&gt;<br>
&gt; In packetsk.img, there are the pid under &quot;fown&quot;,It&#39;s the pid which I look for ?<br>
&gt;<br>
&gt; root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/c2/packetsk.img<br>
&gt; {<br>
&gt;     &quot;magic&quot;: &quot;PACKETSK&quot;,<br>
&gt;     &quot;entries&quot;: [<br>
&gt;         {<br>
&gt;             &quot;id&quot;: 61,<br>
&gt;             &quot;type&quot;: 10,<br>
&gt;             &quot;protocol&quot;: 768,<br>
&gt;             &quot;flags&quot;: &quot;0x80002&quot;,<br>
&gt;             &quot;ifindex&quot;: 73,<br>
&gt;             &quot;fown&quot;: {<br>
&gt;                 &quot;uid&quot;: 0,<br>
&gt;                 &quot;euid&quot;: 0,<br>
&gt;                 &quot;signum&quot;: 0,<br>
&gt;                 &quot;pid_type&quot;: 0,<br>
&gt;                 &quot;pid&quot;: 0<br>
&gt;             },<br>
&gt; ...<br>
&gt; }<br>
&gt;<br>
&gt; In the checkpoint dir,there are several core-$pid.img:<br>
&gt; root@dslab:/home/checkpoint# ls c2/core-*<br>
&gt; c2/core-1.img  c2/core-20.img  c2/core-68.img  c2/core-89.img  c2/core-90.img  c2/core-92.img<br>
&gt;<br>
&gt; So I grep each core img<br>
&gt; root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/c2/core-1.img | grep comm<br>
&gt;                 &quot;comm&quot;: &quot;systemd&quot;,<br>
&gt; root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/c2/core-20.img | grep comm<br>
&gt;                 &quot;comm&quot;: &quot;systemd-journal&quot;,<br>
&gt; root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/c2/core-68.img | grep comm<br>
&gt;                 &quot;comm&quot;: &quot;dhclient&quot;,<br>
&gt; root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/c2/core-89.img | grep comm<br>
&gt;                 &quot;comm&quot;: &quot;sshd&quot;,<br>
&gt; root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/c2/core-90.img | grep comm<br>
&gt;                 &quot;comm&quot;: &quot;rc.local&quot;,<br>
&gt; root@dslab:/home/dslab/tools/criu# ./crit show /home/checkpoint/c2/core-92.img | grep comm<br>
&gt;                 &quot;comm&quot;: &quot;a.out&quot;,<br>
&gt;<br>
&gt; a.out is just the test app without network usage.Maybe something wrong exist in other processes?<br>
&gt;<br>
</div></div>&gt; 2015-10-16 2:10 GMT+08:00 Tycho Andersen &lt;<a href="mailto:tycho.andersen@canonical.com">tycho.andersen@canonical.com</a> &lt;mailto:<a href="mailto:tycho.andersen@canonical.com">tycho.andersen@canonical.com</a>&gt;&gt;:<br>
<span class="">&gt;<br>
&gt;     On Thu, Oct 15, 2015 at 08:37:02PM +0800, Jason Lee wrote:<br>
&gt;     &gt; In this server,I only run the latest version LXC and CRIU. There are no any<br>
&gt;     &gt; my own applications<br>
&gt;     &gt; using socket in LXC(maybe sshd or dhclient?).My distribution linux is<br>
&gt;     &gt; debian 8<br>
&gt;     &gt; so I don&#39;t know which applications use SOCK_PACKET ...<br>
&gt;<br>
&gt;     If you look to see which pid (crit show fdinfo-$pid.img) has an fd<br>
&gt;     info with the id 61 (your SOCK_PACKET socket), you can get the command<br>
&gt;     name from core.img (crit show core-$pid.img | grep comm). I&#39;d be<br>
&gt;     curious to know what application this is, because it if is something<br>
&gt;     like systemd, it will come downstream to ubuntu and we&#39;ll need to fix<br>
&gt;     this soon :)<br>
&gt;<br>
&gt;     Tycho<br>
&gt;<br>
&gt;     &gt; To avoid this situation, I think using two network card is better than<br>
&gt;     &gt; net-bridge,isn&#39;t it ?<br>
&gt;     &gt;<br>
&gt;     &gt; I wish criu could solve this issue in next version!<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; - Jason<br>
&gt;     &gt;<br>
</span>&gt;     &gt; 2015-10-15 20:08 GMT+08:00 Jason Lee &lt;<a href="mailto:ldm5235@gmail.com">ldm5235@gmail.com</a> &lt;mailto:<a href="mailto:ldm5235@gmail.com">ldm5235@gmail.com</a>&gt;&gt;:<br>
<span class="im HOEnZb">&gt;     &gt;<br>
&gt;     &gt; &gt;<br>
&gt;     &gt; &gt; ---------- Forwarded message ----------<br>
&gt;     &gt; &gt; From: Pavel Emelyanov &lt;<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> &lt;mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>&gt;&gt;<br>
&gt;     &gt; &gt; Date: 2015-10-15 20:06 GMT+08:00<br>
&gt;     &gt; &gt; Subject: Re: [CRIU] lxc-checkpoint restore failed<br>
</span><div class="HOEnZb"><div class="h5">&gt;     &gt; &gt; To: Jason Lee &lt;<a href="mailto:ldm5235@gmail.com">ldm5235@gmail.com</a> &lt;mailto:<a href="mailto:ldm5235@gmail.com">ldm5235@gmail.com</a>&gt;&gt;<br>
&gt;     &gt; &gt; Cc: Tycho Andersen &lt;<a href="mailto:tycho.andersen@canonical.com">tycho.andersen@canonical.com</a> &lt;mailto:<a href="mailto:tycho.andersen@canonical.com">tycho.andersen@canonical.com</a>&gt;&gt;, <a href="mailto:criu@openvz.org">criu@openvz.org</a> &lt;mailto:<a href="mailto:criu@openvz.org">criu@openvz.org</a>&gt;<br>
&gt;     &gt; &gt;<br>
&gt;     &gt; &gt;<br>
&gt;     &gt; &gt; On 10/15/2015 03:04 PM, Pavel Emelyanov wrote:<br>
&gt;     &gt; &gt; &gt; On 10/15/2015 02:58 PM, Jason Lee wrote:<br>
&gt;     &gt; &gt; &gt;&gt; OK!<br>
&gt;     &gt; &gt; &gt;&gt; Here it is:<br>
&gt;     &gt; &gt; &gt;&gt;<br>
&gt;     &gt; &gt; &gt;&gt; root@dslab:/home/dslab/tools/criu# ./crit show<br>
&gt;     &gt; &gt; /home/checkpoint/c2/packetsk.img<br>
&gt;     &gt; &gt; &gt;&gt; {<br>
&gt;     &gt; &gt; &gt;&gt;     &quot;magic&quot;: &quot;PACKETSK&quot;,<br>
&gt;     &gt; &gt; &gt;&gt;     &quot;entries&quot;: [<br>
&gt;     &gt; &gt; &gt;&gt;         {<br>
&gt;     &gt; &gt; &gt;&gt;             &quot;id&quot;: 61,<br>
&gt;     &gt; &gt; &gt;&gt;             &quot;type&quot;: 10,<br>
&gt;     &gt; &gt; &gt;<br>
&gt;     &gt; &gt; &gt; Here it is. This is SOCK_PACKET which we didn&#39;t support (and didn&#39;t put<br>
&gt;     &gt; &gt; check<br>
&gt;     &gt; &gt; &gt; for it on dump). Which software uses this thing? AF_PACKET sockets are<br>
&gt;     &gt; &gt; typically<br>
&gt;     &gt; &gt; &gt; SOCK_RAW or SOCK_DGRAM, SOCK_PACKET is, frankly speaking, new to me :)<br>
&gt;     &gt; &gt;<br>
&gt;     &gt; &gt; Just FIY, I&#39;ve created an issue for this feature:<br>
&gt;     &gt; &gt; <a href="https://github.com/xemul/criu/issues/73" rel="noreferrer" target="_blank">https://github.com/xemul/criu/issues/73</a><br>
&gt;     &gt; &gt;<br>
&gt;     &gt; &gt; -- Pavel<br>
&gt;     &gt; &gt;<br>
&gt;     &gt; &gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>