I have a situation where one container is not possible to stop or restart.
The container is listed as “RUNNING” but has lost its network and refuses to be stopped.
This is what I have in the logs:
Oct 07 18:21:30 lxdhost7 lxd.daemon[2627]: time="2023-10-07T18:21:30Z" level=error msg="Error calling 'lxd forknet" err="Failed to run: /snap/lxd/current/bin/lxd forknet info -- 14051 3: exit status 1 (Failed setns to container network namespace: No such file or directory)" instance=juju-f1f013-3 instanceType=container pid=14051 project=default
I’ve tried to stop it with “–force” to no avail.
lxc stop juju-f1f013-3 --force
I need some advice as how to bring it back.
Rebooting the host is not my first option since there are many production grade containers still running. E.g. “systemctl restart lxd” isn’t what I prefer either as this would restart all container as far as I know.
What can I do?