[lxc-users] /proc lost in some containers

Stéphane Graber stgraber at ubuntu.com
Fri Nov 9 02:19:54 UTC 2018


On Fri, Nov 09, 2018 at 04:29:46AM +0900, Tomasz Chmielewski wrote:
> LXD 3.6 from a snap on an up-to-date Ubuntu 18.04 server:
> 
> lxd   3.6        9510  stable    canonical✓  -
> 
> 
> Suddenly, some (but not all) containers lost their /proc filesystem:
> 
> # ps auxf
> 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"
> 
> #
> 
> 
> I think I've seen something similar like this in the past.
> Can it be attributed to some not-so-well automatic snap upgrades?

That can either be a lxcfs crash or lxcfs bug of some kind.

Can you show "ps fauxww | grep lxcfs" on the host.

And then inside an affected container run "grep lxcfs /proc/mounts" and
for each of the /proc path listed, attempted to read them with "cat",
that should let you check if it's just one lxcfs file that's broken or
all of them.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20181108/327206ec/attachment.sig>


More information about the lxc-users mailing list