Error: /proc must be mounted

Hi
When I restart lxcfs inside of my containers i get this when hit “free -m”:
root@vm2:~# free -m
Error: /proc must be mounted
To mount /proc at boot you need an /etc/fstab line like:
proc /proc proc defaults
In the meantime, run “mount proc /proc -t proc”

When a container reboot everything is ok.
How can i fix this without reboot containers?

Restarting lxcfs will break all running containers with the only way to fix them being to restart them. So the short answer is, don’t restart lxcfs.

lxcfs doesn’t need to be restarted to be updated, sending it USR1 as is done by the packages will have it update itself in place without restarting, keeping the containers working.

1 Like

@stgraber Could it possibly be caused by restarting lxc-net as well? I don’t think I’ve ever restarted lxcfs. If that’s the case, is there a way to restart it so that there’d be no need to restart containers?

I’ve just checked, lxcfs stopped at some point in time:

 Active: failed (Result: start-limit) since ...

But restarting containers resolves the issue. Is lxcfs really needed?