Open smoser opened 2 years ago
Another important bit of info here is that HOME/.cache was a symlink to a non-existing dir. After creating the directory that it pointed to it worked correctly.
So in order to trigger this, you have to: a. have XDG_RUNTIME_DIR unset b. rm -Rf $HOME/.cache ; ln -s $HOME/non-existant ~/.cache
it does feel like the right fix is to just have liblxc use the lxcpath for this locking, vs. trying to do it somewhere global.
Running stacker build, we hit this issue yesterday. It failed with
Failed to create lock for atomix-builder
.The actual failure was coming from liblxc
src/lxc/lxclock.c
was callingget_rundir
(link).The failure path was:
One thing to note is we didn't get any of the 'INFO' message output... that probably would have been helpful.
One easy way to improve this, which would unfortunately add knowledge to stacker which may at some point be incorrect would be to just have stacker check those conditions early and erroring with:
Also... stacker could just create that HOME/.cache/lxc/run path.