Tom Parrott
Tom Parrott
This comes up from time to time and is usually a process on your system periodically cleaning the tmp directory.
Try https://forum.snapcraft.io/t/cleanup-of-tmp-snap-private-tmp-snap-lxd-removes-ability-to-connect-to-running-containers/35645
Looking at `man tmpfiles.d` it says: ``` D /directory/to/create-and-remove mode user group cleanup-age - x /path-or-glob/to/ignore/recursively - - - - - ... If the exclamation mark ("!") is used, this...
Chatting with the snapd team theres been a suggestion that perhaps LXD should use the XDG_RUNTIME_DIR path for its runtime state files (i.e. /run/user/0/snap. in case of daemons) to avoid...
You reloaded the systemd-tmpfiles service after making the change?
You could try stopping and disabling the service for a while too and see if that helps.
> I've also seen this commit who is not present on the refactored code (security on lxc.conf on delete operations) : https://github.com/canonical/lxd/pull/4010/files?diff=split&w=0 Hi, please could you clarify what you mean...
@mihalicyn I think if we cherry-pick this https://github.com/lxc/incus/pull/361 it should help.
Reopening due to https://github.com/canonical/lxd/issues/12084#issuecomment-1794972551
Looks like`instanceLogDelete` is preventing lxc.cong from being deleted https://github.com/canonical/lxd/blob/8f2d07c73c0e1ed89f8af7f55d72361a9d46426a/lxd/instance_logs.go#L344-L346