LXD command hung, Failed to retrieve network information via netlink

Hi, I fail to stop my instance, when I exec command lxc stop -f shpc-564-instance-F1cFWdqG --debug, it hang up, but I can stop other instance on the same lxd node.


I find some error message from lxd log like this

time="2023-07-04T14:08:46Z" level=warning msg="Failed to retrieve network information via netlink" instance=shpc-564-instance-F1cFWdqG instanceType=container pid=2673237 project=default
time="2023-07-04T14:08:46Z" level=error msg="Error calling 'lxd forknet" err="Failed to run: /snap/lxd/current/bin/lxd forknet info -- 2673237 3: exit status 1 (Failed setns to container network namespace: No such file or directory)" instance=shpc-564-instance-F1cFWdqG instanceType=container pid=2673237 project=default

When I exec command lxd info shpc-564-instance-F1cFWdqG, I can not get network info also.

My LXD version is 5.15, kernel version is Linux 5.15.0-71-generic x86_64.

I exec command sudo systemctl restart snap.lxd.daemon to restart LXD daemon, but I can not stop the instance and got same error: Failed to run: /snap/lxd/current/bin/lxd forknet

It seems that I can not control instance when PID is -1. I can not stop\restart these instance.
How can I control these instance again? :face_holding_back_tears:
image