<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Adrian,<div><br></div><div>Thanks a lot for your suggestion. I just tried xterm and I got exactly same error when I dumped&restored maya.</div><div><br></div><div>So what Linux distribution you're using? I'm using CentOS 7.8 with stock kernel 3.10.0, and of cause gnome desktop environment.</div><div><br></div><div>I launched xterm using exactly same command and vnc script.</div><div><br></div><div># setsid unshare -i ./vnc_server.sh xterm</div><div># ps axf</div><div><div> 16314 ? Ss 0:00 /bin/bash ./vnc_server.sh xterm</div><div> 16320 ? Sl 0:00 \_ Xvnc :25 -v -geometry 800x600 -interface 0.0.0.0 -SecurityTypes none</div><div> 16353 ? S 0:00 \_ xterm</div><div> 16355 pts/4 Ss+ 0:00 \_ bash</div></div><div><br></div><div><b>Form lsof and ss, I also saw it connects to "<span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">@/tmp/.ICE-unix/15119" and it's "gnome-session-b" on the other end.</span></b></div><div><br></div><div><div># lsof -p 16353</div><div>COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME</div><div>..............</div><div>xterm 16353 root 3u unix 0xffff972c81d0ee80 0t0 155258 socket<br></div><div><b>xterm 16353 root 4u unix 0xffff972c81d0f700 0t0 155259 socket</b></div><div>xterm 16353 root 5u CHR 5,2 0t0 12415 /dev/ptmx</div></div><div><br></div><div># ss --unix -a -p</div><div><div><b>u_str ESTAB 0 0 @/tmp/.ICE-unix/15119 41542 * 155259 users:(("gnome-session-b",pid=15119,fd=19))</b></div></div><div><br></div><div><br></div><div>I have to use "--external unix[<span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium">155259]" when dump and "--ext-unix-sk" when restore to make CRIU happy. But got ICE error right after CRIU said it was successfully restored:</span></div><div><div><br></div><div># ./criu restore -D xterm/ -o restore.log -v4 --shell-job --ext-unix-sk</div><div><br></div><div>ICE error: Offending minor opcode = 0 ()</div><div> Offending sequence number = 1</div><div> Error class = BadState</div><div> Severity = FatalToConnection</div></div><div><br></div><div>I feel like it's pretty standard for a graphic application running on gnome desktop environment? Is there any way for CRIU to dump&restore it?</div><div><br></div><div>Really appreciate if anyone can help!</div><div><br></div><div>Thanks,</div><div>Jun Gan</div><div><br></div><div><br></div></div></div></div></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 22, 2020 at 5:36 AM Adrian Reber <<a href="mailto:adrian@lisas.de">adrian@lisas.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I just tried it with xterm in the VNC session and it works for me. Can<br>
you try with a simple application like xterm before trying maya.<br>
<br>
Adrian<br>
<br>
On Fri, May 22, 2020 at 02:28:50AM -0700, Jun Gan wrote:<br>
> Hello,<br>
> <br>
> I'm trying to dump Maya by following this tutorial: <a href="https://criu.org/VNC" rel="noreferrer" target="_blank">https://criu.org/VNC</a><br>
> <br>
> Somehow use newns.c doesn't work so I manually do it in the command line:<br>
> <br>
> # cat vnc_server.sh<br>
> #!/bin/bash<br>
> set -m<br>
> Xvnc :25 -v -geometry 800x600 -interface 0.0.0.0 -SecurityTypes none &<br>
> pid=$!<br>
> trap "kill $pid; wait" EXIT<br>
> sleep 3<br>
> DISPLAY=:25 $@<br>
> <br>
> #setsid unshare -i ./vnc_server.sh maya<br>
> <br>
> # ps axf<br>
> 849901 ? Ss 0:00 /bin/bash ./vnc_server.sh maya<br>
> 849902 ? Sl 0:00 \_ Xvnc :25 -v -geometry 800x600 -interface<br>
> 0.0.0.0 -SecurityTypes none<br>
> 849921 ? S 0:00 \_ /bin/bash -f /usr/local/bin/maya<br>
> 849935 ? Sl 0:12 \_ /usr/autodesk/maya2020/bin/maya.bin<br>
> 849940 ? Sl 0:00 \_<br>
> /opt/Autodesk/AdskLicensing/9.2.1.2399/AdskLicensingAgent/AdskLicensingAgent<br>
> -i 94306fdc-e6a3-4f3e-7035-03617ab75c25<br>
> <br>
> # ./criu dump -t 849901 -D test/ -o dump.log -v4 -j --tcp-established<br>
> --external unix[2432303888] --external unix[2432544010]<br>
> <br>
> Those two unix stream socket are:<br>
> 1) seems maya use gnome-session-b<br>
> u_str ESTAB 0 0 @/tmp/.ICE-unix/404075 -1862464845<br>
> * -1862663408 users:(("gnome-session-b",pid=404075,fd=18))<br>
> <br>
> 2) seems maya licensing agent using dbus.<br>
> u_str ESTAB 0 0 @/tmp/dbus-eVrtb5pHUv -1862436068<br>
> * -1862423286 users:(("dbus-daemon",pid=404085,fd=26))<br>
> <br>
> I have no much knowledge about them so I just add "external unix" to avoid<br>
> error, managed to dump it successfully.<br>
> <br>
> Then restore:<br>
> <br>
> # ./criu restore -D test -o restore.log -v4 --tcp-established -d<br>
> --shell-job --ext-unix-sk<br>
> <br>
> <br>
> ICE error: Offending minor opcode = 0 ()<br>
> <br>
> Offending sequence number = 1<br>
> <br>
> Error class = BadState<br>
> <br>
> Severity = FatalToConnection<br>
> <br>
> <br>
> In the restore.log, I saw it was restored successfully, but I got above<br>
> error immediately, and of cause Maya exits right after that.<br>
> <br>
> <br>
> I didn't some research about "gnome-session" and "ice", but no idea why<br>
> Maya uses those, and how I can avoid this problem.<br>
> <br>
> Really appreciate it if anyone can help!<br>
> <br>
> Thanks a lot!!!<br>
> <br>
> -- <br>
> Jun Gan<br>
<br>
> _______________________________________________<br>
> CRIU mailing list<br>
> <a href="mailto:CRIU@openvz.org" target="_blank">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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Jun Gan</div></div></div></div>