<div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Tycho,</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I hope I don't botch this thread up too much, I had set emails from this list to digest mode and had to manually copy the content into a new email...</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">No, I'm not using a custom liblxc build - I have the LXC daily PPA added and am assuming that's where it's pulling from... Not to say I may have dome something crazy in my attempts to troubleshoot. Is there a specific package I can reinstall to ensure I'm getting the appropriate library?</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">alex@osboxesDesktop:~$ apt-cache madison liblxc1<br> liblxc1 | 2.0.3+master~20160729-2343-<wbr>0ubuntu1~xenial | <a href="http://ppa.launchpad.net/ubuntu-lxc/daily/ubuntu" target="_blank">http://ppa.launchpad.net/<wbr>ubuntu-lxc/daily/ubuntu</a> xenial/main amd64 Packages<br> liblxc1 | 2.0.3-0ubuntu3~ubuntu16.04.1~<wbr>ppa1 | <a href="http://ppa.launchpad.net/ubuntu-lxc/lxd-git-master/ubuntu" target="_blank">http://ppa.launchpad.net/<wbr>ubuntu-lxc/lxd-git-master/<wbr>ubuntu</a> xenial/main amd64 Packages<br> liblxc1 | 2.0.3-0ubuntu3~ubuntu16.04.1~<wbr>ppa1 | <a href="http://ppa.launchpad.net/ubuntu-lxc/stable/ubuntu" target="_blank">http://ppa.launchpad.net/<wbr>ubuntu-lxc/stable/ubuntu</a> xenial/main amd64 Packages<br> liblxc1 | 2.0.3-0ubuntu1~ubuntu16.04.1 | <a href="http://gb.archive.ubuntu.com/ubuntu" target="_blank">http://gb.archive.ubuntu.com/<wbr>ubuntu</a> xenial-updates/main amd64 Packages<br> liblxc1 | 2.0.0-0ubuntu2 | <a href="http://gb.archive.ubuntu.com/ubuntu" target="_blank">http://gb.archive.ubuntu.com/<wbr>ubuntu</a> xenial/main amd64 Packages<br><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Hi Alex,
On Wed, Aug 03, 2016 at 05:44:56PM -0400, Alex Kedrowitsch wrote:
><i> Hi All,
</i>><i>
</i>><i> I'm new to the Linux container scene and am having issues with making
</i>><i> stateful container snapshots. My ultimate goal is to get "lxc move" to
</i>><i> work, but that fails with the same error as when I try "lxc snapshot <>
</i>><i> --stateful", so I'm starting with the lowest common denominator.
</i>><i>
</i>><i> Environment:
</i>><i> VM running Ubuntu 16.04, Kernel 4.4.0-31-generic
</i>><i> LXD version 2.0.3
</i>><i> CRIU version 2.0 (no special commits)
</i>><i>
</i>><i> I am following the steps outlined here: (
</i>><i> <a href="http://insights.ubuntu.com/2016/04/25/lxd-2-0-live-migration-912/" target="_blank">http://insights.ubuntu.com/201<wbr>6/04/25/lxd-2-0-live-migration<wbr>-912/</a>) as well
</i>><i> as trying to match the requirements here: (
</i>><i> <a href="https://insights.ubuntu.com/2015/05/06/live-migration-in-lxd/" target="_blank">https://insights.ubuntu.com/20<wbr>15/05/06/live-migration-in-lxd<wbr>/</a>) (this second
</i>><i> article is invaluable, but would be great if it was updated for the latest
</i>><i> changes to LXD, like not including the step to remove lxcfs, which broke my
</i>><i> installation of LXD when I did.)
</i>
Good point, I should probably write an updated post :). Anyway,
stgraber's post here:
<a href="https://www.stgraber.org/2016/04/25/lxd-2-0-live-migration-912/" target="_blank">https://www.stgraber.org/2016/<wbr>04/25/lxd-2-0-live-migration-9<wbr>12/</a>
is pretty recent (i.e. migration should be pretty "no frills" right
now).
><i> I was previously able to make stateful snapshots without error, but was
</i>><i> unable to restore them; however, today I am unable to even make the
</i>><i> snapshots. Stateless snapshots can be made without error.
</i>><i>
</i>><i> Appears to be similar to this issue (<a href="https://github.com/lxc/lxd/issues/2110" target="_blank">https://github.com/lxc/lxd/is<wbr>sues/2110</a>),
</i>><i> where stgraber believes it's a bug with CRIU serializing sockets, but I was
</i>><i> unable to find the bug report on Launchpad.
</i>><i>
</i>><i> Here are my logs. Thanks for the help!
</i>><i>
</i>><i> Terminal Commands/output:
</i>><i> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">alex at osboxesDesktop</a>:~$ lxc snapshot stringhalty-judie snap2 --stateful
</i>><i> error: snapshot dump failed
</i>><i> (00.041465) Error (action-scripts.c:60): One of more action scripts failed
</i>><i> (00.041478) Error (cr-dump.c:1621): Pre dump script failed with 32512!
</i>
Are you using a custom built liblxc? Looks like you might be missing
ebb088e115fd81f86602af8a386ee4<wbr>1470c71a73.
Tycho
><i> Container info:
</i>><i> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">alex at osboxesDesktop</a>:~$ lxc info stringhalty-judie
</i>><i> Name: stringhalty-judie
</i>><i> Architecture: x86_64
</i>><i> Created: 2016/08/03 20:07 UTC
</i>><i> Status: Running
</i>><i> Type: persistent
</i>><i> Profiles: default
</i>><i> Pid: 9665
</i>><i> Ips:
</i>><i> eth0: inet 10.29.26.131 vethBI73UQ
</i>><i> eth0: inet6 fe80::216:3eff:fe38:4351 vethBI73UQ
</i>><i> lo: inet 127.0.0.1
</i>><i> lo: inet6 ::1
</i>><i> Resources:
</i>><i> Processes: 26
</i>><i> Memory usage:
</i>><i> Memory (current): 41.85MB
</i>><i> Memory (peak): 179.00MB
</i>><i> Network usage:
</i>><i> lo:
</i>><i> Bytes received: 264 bytes
</i>><i> Bytes sent: 264 bytes
</i>><i> Packets received: 4
</i>><i> Packets sent: 4
</i>><i> eth0:
</i>><i> Bytes received: 6.60kB
</i>><i> Bytes sent: 2.17kB
</i>><i> Packets received: 43
</i>><i> Packets sent: 17
</i>><i> Snapshots:
</i>><i> snap1 (taken at 2016/08/03 20:49 UTC) (stateless)
</i>><i>
</i>><i> snapshot_dump_###.log:
</i>><i> (00.000023) Probing sock diag modules
</i>><i> (00.000053) Done probing
</i>><i> (00.028278) ==============================<wbr>==========
</i>><i> (00.028291) Dumping processes (pid: 9665)
</i>><i> (00.028292) ==============================<wbr>==========
</i>><i> (00.028293) Running pre-dump scripts
</i>><i> (00.028306) [@ÑÙ È]
</i>><i> (00.041465) Error (action-scripts.c:60): One of more action scripts failed
</i>><i> (00.041478) Error (cr-dump.c:1621): Pre dump script failed with 32512!
</i>><i>
</i>><i>
</i>><i> Excerpt from lxc.log:
</i>><i> lxc 20160803171813.590 DEBUG lxc_commands -
</i>><i> commands.c:lxc_cmd_get_state:5<wbr>79 - 'stringhalty-judie' is in 'RUNNING' state
</i>><i> lxc 20160803171819.956 INFO lxc_confile -
</i>><i> confile.c:config_idmap:1520 - read uid map: type u nsid 0 hostid 231072
</i>><i> range 65536
</i>><i> lxc 20160803171819.956 INFO lxc_confile -
</i>><i> confile.c:config_idmap:1520 - read uid map: type g nsid 0 hostid 231072
</i>><i> range 65536
</i>><i> lxc 20160803171819.957 DEBUG lxc_commands -
</i>><i> commands.c:lxc_cmd_handler:893 - peer has disconnected
</i>><i> lxc 20160803171819.957 DEBUG lxc_commands -
</i>><i> commands.c:lxc_cmd_handler:893 - peer has disconnected
</i>><i> lxc 20160803171819.957 DEBUG lxc_commands -
</i>><i> commands.c:lxc_cmd_get_state:5<wbr>79 - 'stringhalty-judie' is in 'RUNNING' state
</i>><i> lxc 20160803171819.963 DEBUG lxc_commands -
</i>><i> commands.c:lxc_cmd_handler:893 - peer has disconnected
</i>><i> lxc 20160803171819.975 DEBUG lxc_commands -
</i>><i> commands.c:lxc_cmd_handler:893 - peer has disconnected
</i>><i> lxc 20160803171819.975 INFO lxc_criu - criu.c:exec_criu:422
</i>><i> - execing: /usr/sbin/criu dump --tcp-established --file-locks --link-remap
</i>><i> --manage-cgroups=full --ext-mount-map auto --enable-external-sharing
</i>><i> --enable-external-masters --enable-fs hugetlbfs --enable-fs tracefs -D
</i>><i> /var/lib/lxd/containers/string<wbr>halty-judie/state -o
</i>><i> /var/lib/lxd/containers/string<wbr>halty-judie/state/dump.log -vvvvvv
</i>><i> --action-script \D0\D1\DE \C8 -t 9665 --freeze-cgroup
</i>><i> /sys/fs/cgroup/freezer///lxc/s<wbr>tringhalty-judie --ext-mount-map
</i>><i> /dev/console:console --external tty[8812:e] --force-irmap --ghost-limit
</i>><i> 859535847452 --leave-running
</i>><i> lxc 20160803171819.975 DEBUG lxc_commands -
</i>><i> commands.c:lxc_cmd_handler:893 - peer has disconnected
</i>><i> lxc 20160803171820.142 ERROR lxc_criu - criu.c:do_dump:930 -
</i>><i> dump signaled with 11
</i>
><i> ______________________________<wbr>_________________
</i>><i> lxc-users mailing list
</i>><i> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">lxc-users at lists.linuxcontainers.org</a>
</i>><i> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.o<wbr>rg/listinfo/lxc-users</a></i></pre></div>