记录R语言和Rstudio的报错:
1. Error 28 (inotify_add_watch: No watches available)
File monitoring failed for project at "~xxx"
Error 28 (inotify_add_watch: No watches available)
Features disabled: R source file indexing, Diagnostics
不少人遇到了该问题:
(1) 改配置文件
from: 百度ai
原始值:
$ cat /proc/sys/fs/inotify/max_user_watches
8192
新的值:
$ echo 10000 | sudo tee /proc/sys/fs/inotify/max_user_watches
修改失败:只读
# echo 10000 | sudo tee /proc/sys/fs/inotify/max_user_watches
tee: /proc/sys/fs/inotify/max_user_watches: Read-only file system
10000
(2) 修改配置文件2
-
https://forum.posit.co/t/error-28-inotify-add-watch-no-watches-available/131059
echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p
fs.inotify.max_user_watches=100000
sysctl: setting key "fs.inotify.max_user_watches": Read-only file system
只读,查看,已经添加进去了
$ cat /etc/sysctl.conf | tail
fs.inotify.max_user_watches=100000