]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/InboxIdle.pm
inboxidle: clue users into resolving ENOSPC from inotify
[public-inbox.git] / lib / PublicInbox / InboxIdle.pm
index 0cdd2e2a8e56df7a54103d5a6592c6dea06822bb..357bd216b5c30642fef65c84bbd343053d53ec25 100644 (file)
@@ -45,6 +45,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)