about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-26 05:59:22 +0000
committerEric Wong <e@80x24.org>2020-12-26 19:27:15 +0000
commit5e05c2eb58a450849f1826f3d02ed62b814b6617 (patch)
tree8f154eace5ad0fba936143498898e9f44d7da9da /lib/PublicInbox
parent451ffd3068017ac1ca8bb0b454a65a7f2a3bf407 (diff)
downloadpublic-inbox-5e05c2eb58a450849f1826f3d02ed62b814b6617.tar.gz
It may not be obvious to users a ENOSPC error is from hitting
a (tunable) kernel-imposed limit on inotify watches, and not
some storage device running out of space.  Give them a hint
here to reduce our own support burden.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/InboxIdle.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/PublicInbox/InboxIdle.pm b/lib/PublicInbox/InboxIdle.pm
index f1cbc012..84b6d26f 100644
--- a/lib/PublicInbox/InboxIdle.pm
+++ b/lib/PublicInbox/InboxIdle.pm
@@ -39,6 +39,11 @@ sub in2_arm ($$) { # PublicInbox::Config::each_inbox callback
                 $self->{on_unlock}->{$w->name} = $ibx;
         } else {
                 warn "E: ".ref($inot)."->watch($lock, IN_MODIFY) failed: $!\n";
+                if ($!{ENOSPC} && $^O eq 'linux') {
+                        warn <<"";
+I: consider increasing /proc/sys/fs/inotify/max_user_watches
+
+                }
         }
 
         # TODO: detect deleted packs (and possibly other files)