Public bug reported:
$ apt list lxc lxd Listing... Done lxc/xenial-updates,xenial-updates,now 2.0.5-0ubuntu1~ubuntu16.04.2 all [installed] lxd/xenial-updates,now 2.0.5-0ubuntu1~ubuntu16.04.1 amd64 [installed] I was changing the memory limits of a container and mistyped a suffix: lxc config set docker limits.memory 512M and now that setting is in lxd.db and prevents me from doing anything to that container: $lxc list +--------+-------+------+------+------------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +--------+-------+------+------+------------+-----------+ | docker | ERROR | | | PERSISTENT | 0 | +--------+-------+------+------+------------+-----------+ $lxc start docker error: Unsupported suffix: 2M $lxc config set docker limits.memory 512MB error: Unsupported suffix: 2M $lxc stop docker error: Unsupported suffix: 2M Try `lxc info --show-log docker` for more info $lxc info --show-log docker error: Unsupported suffix: 2M $ lxc delete docker error: Unsupported suffix: 2M I could possibly use a (purely guessing) sqlite client to fix /var/lib/lxd.db entry that has the memory setting that is bad. /var/lib/lxd$ grep 512M lxd.db Binary file lxd.db matches /var/lib/lxd$ grep 512MB lxd.db This appears to be a data sanity check (bad data got into container setting) that lxd doesn't like but then won't allow one to override / remove / fix I haven't checked backports for the newer 2.5 releases of lxd/lxc but it could be a problem in that code branch as well. Just thought somebody would want to know that this simple-to-make typo (M instead of MB) has completely made the container unusable. --Doug (dx9s) ** Affects: lxd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1642405 Title: lxd lxd.db Unsupported suffix To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1642405/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs