Increase the maximum number of file watches that are allowed for each user.

The ENOSPC: System limit for number of file watchers reached clearly states that there is an issue with inotify resources.

Inspect the current value maximum number of watches per user.

$ sysctl fs.inotify.max_user_watches
fs.inotify.max_user_watches = 65536

Alter configuration to update the maximum number of watches per user.

$ echo fs.inotify.max_user_watches=$(expr $(sysctl --values fs.inotify.max_user_watches) \* 2) | sudo tee /etc/sysctl.d/98-max_user_watches.conf
fs.inotify.max_user_watches=131072

Load updated configuration.

$ sudo sysctl --system
* Applying /etc/sysctl.d/10-console-messages.conf ...
kernel.printk = 4 4 1 7
* Applying /etc/sysctl.d/10-ipv6-privacy.conf ...
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
* Applying /etc/sysctl.d/10-kernel-hardening.conf ...
kernel.kptr_restrict = 1
* Applying /etc/sysctl.d/10-magic-sysrq.conf ...
kernel.sysrq = 176
* Applying /etc/sysctl.d/10-network-security.conf ...
net.ipv4.conf.default.rp_filter = 2
net.ipv4.conf.all.rp_filter = 2
* Applying /etc/sysctl.d/10-ptrace.conf ...
kernel.yama.ptrace_scope = 1
* Applying /etc/sysctl.d/10-zeropage.conf ...
vm.mmap_min_addr = 65536
* Applying /usr/lib/sysctl.d/30-tracker.conf ...
fs.inotify.max_user_watches = 65536
* Applying /usr/lib/sysctl.d/50-bubblewrap.conf ...
kernel.unprivileged_userns_clone = 1
* Applying /usr/lib/sysctl.d/50-default.conf ...
kernel.core_uses_pid = 1
net.ipv4.conf.default.rp_filter = 2
net.ipv4.ping_group_range = 0 2147483647
net.core.default_qdisc = fq_codel
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
fs.protected_regular = 1
fs.protected_fifos = 1
* Applying /usr/lib/sysctl.d/50-pid-max.conf ...
kernel.pid_max = 4194304
* Applying /etc/sysctl.d/90-max_map_count.conf ...
vm.max_map_count = 262144
* Applying /etc/sysctl.d/98-max_user_watches.conf ...
fs.inotify.max_user_watches = 131072
* Applying /usr/lib/sysctl.d/99-protect-links.conf ...
fs.protected_fifos = 1
fs.protected_hardlinks = 1
fs.protected_regular = 2
fs.protected_symlinks = 1
* Applying /etc/sysctl.d/99-sysctl.conf ...
* Applying /etc/sysctl.conf ...

Restart application.

Additional notes

inotify – a powerful yet simple file change notification system

documentation for /proc/sys/fs/*