Background:
System: Ubuntu18
Problem scenario: When writing a case using react scaffolding, use instructions npm start Unsuccessful, occurred Error: enospc: system limit for number of file watchers error.
Solution:
Error: enospc: system limit for number of file watchers error. The system limit of the file monitor has reached the default upper limit and needs to be increased.
Instructions can be used $cat /proc/sys/fs/inotify/max_user_Watch to see
cat /proc/sys/fs/inotify/max_user_watch es 524288
New instructions can be set for temporary limit increase:
$ sudo sysctl fs.inotify.max_user_watches = 524288 $ sudo sysctl -p
Permanent increase limit
$ echo fs.inotify.max_user_watches = 524288 | sudo tee -a /etc/sysctl.conf $ sudo sysctl -p
Read More:
- [Solved] Linux Error: ENOSPC: System limit for number of file watchers
- [Solved] Error: ENOSPC: System limit for number of file watchers reached
- Error: ENOSPC: no space left on device [How to Solve]
- Linux Error: audit: backlog limit exceeded [How to Solve]
- Linux system service command error: Failed to allocate directory watch: Too many open files
- [Solved] xtrabackup Error: “Too many open files” (system error number 24)
- Parse error in ubantu/Linux system [How to Solve]
- Linux useradd Error: Creating mailbox file: File exists
- [Solved] Linux virtual machine startup error: operating system not found
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- [Solved] FATAL CONFIG FILE ERROR: Bad directive or wrong number of arguments
- [Solved] failed to start remount root and kernel file system
- [Soled] MTPuTTY error: unable to run putty the system cannot find the specified file
- System has not been booted with systemd as init system (PID 1). Can‘t operate
- [Solved] Linux Install Goland Error: Error opening zip file or JAR manifest missing
- [Solved] fatal error: linux/videodev.h: No such file or directory
- Error: linker ` link. Exe ` not found | = note: the system cannot find the specified file.
- [Solved] Cannot run program “svn” (in directory “D: xxxx”): CreateProcess error=2, the system cannot find the specified file.
- Error in Linux running file: bash: $’\r’: command not found