Too many open files error.

300cpilot

Well-Known Member
Mar 24, 2019
115
6
58
Ran into this on a new install of Proxmox 6. Is there a plan to incorporate this fix?

Error: Failed to allocate directory watch: Too many open files" in containers

A patch is called out in bug report 1042. https://bugzilla.proxmox.com/show_bug.cgi?id=1042

Server has 36 CT's and 1 VM running on it. Each CT has 3 processes.

The "sysctl fs.inotify.max_user_instances=512" command got me past it.
 
A patch is called out in bug report 1042. https://bugzilla.proxmox.com/show_bug.cgi?id=1042

And it fixed and shipped in pve-container 3.0-4:

Code:
pve-container (3.0-4) pve; urgency=medium

  * setup CT getty: ensure the getty.target is not masked and improve the logic
    which ensures that only the correct getty services are enabled
  * fix #1042: inotify: increase watches, instances & queue default
    limits
  * remove obsolete lxc@.service.d
  * config: whitelist lxc.seccomp.notify.proxy/cookie
  * add support for debian bullseye/sid

 -- Proxmox Support Team <support@proxmox.com>  Fri, 19 Jul 2019 16:03:22 +0200

my current version is 3.0-7. What is your version?
 
root@Marvel:/# pveversion -v
proxmox-ve: 6.0-2 (running kernel: 5.0.18-1-pve)
pve-manager: 6.0-5 (running version: 6.0-5/f8a710d7)
pve-kernel-5.0: 6.0-6
pve-kernel-helper: 6.0-6
pve-kernel-5.0.18-1-pve: 5.0.18-1
pve-kernel-5.0.15-1-pve: 5.0.15-1
ceph-fuse: 12.2.11+dfsg1-2.1
corosync: 3.0.2-pve2
criu: 3.11-3
glusterfs-client: 5.5-3
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.10-pve1
libpve-access-control: 6.0-2
libpve-apiclient-perl: 3.0-2
libpve-common-perl: 6.0-3
libpve-guest-common-perl: 3.0-1
libpve-http-server-perl: 3.0-2
libpve-storage-perl: 6.0-6
libqb0: 1.0.5-1
lvm2: 2.03.02-pve3
lxc-pve: 3.1.0-61
lxcfs: 3.0.3-pve60
novnc-pve: 1.0.0-60
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.0-5
pve-cluster: 6.0-4
pve-container: 3.0-5 <----------