From d9c90e23f6c3011daefb96d8b6ac8c66d19bd5cc Mon Sep 17 00:00:00 2001 From: Roshri Date: Mon, 23 Sep 2024 12:19:47 -0300 Subject: [PATCH 1/2] Update faq.mdx Added FAQ on how to increase inotify limits for docker users --- pages/troubleshooting/faq.mdx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/pages/troubleshooting/faq.mdx b/pages/troubleshooting/faq.mdx index ac6ab09..8b46bd7 100644 --- a/pages/troubleshooting/faq.mdx +++ b/pages/troubleshooting/faq.mdx @@ -96,4 +96,23 @@ rclone mount [your mount name]: [local path to be mounted] \ --poll-interval 10s \ --attr-timeout 20s \ --vfs-cache-mode full -``` \ No newline at end of file +``` + +#### Q. I'm running on Docker, how can I increase `inotify` limits? +A. You need to increase your underlying OS limit. Please be careful as this consumes more resources. +To check your current limits: + +``` +cat /proc/sys/fs/inotify/max_user_watches +``` +Increase the limit (e.g., to 524288): +``` +sudo sysctl fs.inotify.max_user_watches=524288 +``` +Make it persistent across reboots by adding this line to `/etc/sysctl.conf`: +``` +fs.inotify.max_user_watches=524288 +``` + + + From e6f710f95f0c56983daacfe7d0bcea461583b026 Mon Sep 17 00:00:00 2001 From: Roshri Date: Mon, 23 Sep 2024 16:15:05 -0300 Subject: [PATCH 2/2] Update faq.mdx Added a clear use case for the inotify increase --- pages/troubleshooting/faq.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/troubleshooting/faq.mdx b/pages/troubleshooting/faq.mdx index 8b46bd7..6ca0ad7 100644 --- a/pages/troubleshooting/faq.mdx +++ b/pages/troubleshooting/faq.mdx @@ -98,7 +98,7 @@ rclone mount [your mount name]: [local path to be mounted] \ --vfs-cache-mode full ``` -#### Q. I'm running on Docker, how can I increase `inotify` limits? +#### Q. I'm running on Docker, how can I increase `inotify` limits for folder watching? A. You need to increase your underlying OS limit. Please be careful as this consumes more resources. To check your current limits: