Fedora 25 I am trying to enable the jail functions but getting numerous errors dealing with too many files open.
2017-06-08 10:38:04,410 fail2ban.transmitter [2387]: WARNING Command ['add', 'mysqld-auth', 'auto'] has failed. Received OSError('Cannot initialize new instance of inotify, Errno=Too many open files (EMFILE)',) iptables -w -I INPUT -p tcp -m multiport --dports ssh -j f2b-sshd -- failed with [Errno 24] Too many open files: '/tmp/fai2ban_agrqnj5f.stdout' 2017-06-08 10:38:04,533 fail2ban.actions [2387]: ERROR Failed to start jail 'sshd' action 'iptables-multiport': local variable 'stdout' referenced before assignment iptables -w -I INPUT -p tcp -m multiport --dports ssh -j f2b-sshd-ddos -- failed with [Errno 24] Too many open files: '/tmp/fai2ban_9sost_lb.stdout' 2017-06-08 10:38:04,662 fail2ban [2387]: CRITICAL Unhandled exception in Fail2Ban: Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/fail2ban/server/jailthread.py", line 66, in run_with_except_hook File "/usr/lib/python3.5/site-packages/fail2ban/server/filtersystemd.py", line 263, in run File "/usr/lib64/python3.5/site-packages/systemd/journal.py", line 298, in wait OSError: [Errno 24] Too many open files I have played with sysctl fs.file-max and ulimit -n to set a max 50000. ulimit -Hn and ulimit -Sn both report 50000 but when I start fail2ban I still get the "too many files open" errors. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Fail2ban-users mailing list Fail2ban-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fail2ban-users