Hi,
I need additional recommendations. I’m now running into the following import issue, and I haven’t found anything meaningful in the logs (below) or elsewhere.
Does anyone know what’s causing these import failures and how to solve them?
When using byobu
, and only when using it, if I detach (i.e., F6) from my session, LXD runs the process for a bit, and then kills it:
$ lxc import --verbose /mnt/tank/arma@wednesday.tar.gz arma --storage lxd
Importing instance: 41% (32.58MB/s)[1] 3032775 terminated lxc import --verbose /mnt/tank/arma@wednesday.tar.gz arma --storage lxd
There’s really no reason for LXD to kill the process and LXD does not seem to say why it did so anywhere. I’ve never had issues with other non-LXD commands, either.
OTOH, if I remain in the session, LXD always gets to 100%, but then fails[1] with this error message:
$ lxc import --verbose /mnt/tank/arma@wednesday.tar.gz arma --storage lxd
Error: Post hook: In use
What does that even mean? I’ve seen this multiple times already and this has cost me several days/nights now… I’ve not found anything meaningful about it and I’m growing increasingly frustrated with LXD as a whole…
For reference, this is what /var/snap/lxd/common/lxd/logs/lxd.log
has:
<snip>
t=2021-05-28T16:34:30-0600 lvl=info msg="Pruning expired instance backups"
t=2021-05-28T16:34:30-0600 lvl=info msg="Done pruning expired instance backups"
t=2021-05-28T16:34:30-0600 lvl=info msg="Updating images"
t=2021-05-28T16:34:30-0600 lvl=info msg="Done updating images"
t=2021-05-28T16:47:39-0600 lvl=info msg="Creating container" ephemeral=false instance=arma instanceType=container project=default
t=2021-05-28T16:47:39-0600 lvl=info msg="Created container" ephemeral=false instance=arma instanceType=container project=default
t=2021-05-28T16:47:39-0600 lvl=info msg="Deleting container" created=2020-10-17T15:51:33-0600 ephemeral=false instance=arma instanceType=container project=default used=2021-04-02T11:04:19-0600
t=2021-05-28T16:48:16-0600 lvl=info msg="Deleted container" created=2020-10-17T15:51:33-0600 ephemeral=false instance=arma instanceType=container project=default used=2021-04-02T11:04:19-0600
That seems to just be logging what LXD did after everything failed, but nothing else. I’m re-running the import again as I write this, with the --debug
option to see if anything meaningful shows up. In the meantime, I hope someone has a better idea about this than I do.
Thanks.
[1] A prior failure was that LXD would wait until the import reached 100% before checking whether requirements had been met - e.g., checking for required profiles. This is something that should be checked before wasting who knows how much of the user’s time waiting for the process to get to 100% to then fail it. When things must fail, they should fail quickly.