It might just be a coincidence but I’ve just started using the
security.nesting=true workaround to get ArchLinux containers to work correctly on Ubuntu (see No IPv4 on unprivileged Arch container) and after a while I’m getting the following intermittent error when I try and execute an
Error: LXD is shutting down
In one case I have a CI script that fires up a container and then uses
lxd file push +
lxc exec four times to test some scripts inside the container and then it occasionally fails with the error on the
lxc stop at the end during cleanup.
In another case I have a local container which I have been jumping in and out of with
lxc exec to test some script error handling and after a handful of
execs I got the error.
I’ve not managed to directly repro this by just running lots of
lxc commands in short succession, but the CI build only lasts 30 mins and is a fresh container each time. Likewise the local container was up overnight but within about the same time frame (purely anecdotal, sorry) the error appeared.
All three machines I’ve seen this on are:
$ lxd --version 4.10 $ lsb_release -d Description: Ubuntu 18.04.5 LTS
This feels a bit woolly so is there something else I can do or run when it appears to help unearth what might be going on?
Note: I don’t remember seeing this error before in the last 12 months since starting to use LXD and googling didn’t turn anything up either which surprised me.