Hey guys, since 2 hours i try to figure out why fail2ban dont restart after configuration. system info: debian 9.5 function: master server of 7-multi-server-setup (master, web, db, mail, ns1, ns2, ns3) my steps: Code: apt-get install fail2ban nano /etc/fail2ban/jail.local [pureftpd] enabled = true port = ftp filter = pureftpd logpath = /var/log/syslog maxretry = 3 nano /etc/fail2ban/filter.d/pureftpd.conf [Definition] failregex = .*pure-ftpd: \(.*@\) \[WARNING\] Authentication failed for user.* ignoreregex = systemctl restart fail2ban the error: Code: Sep 26 11:17:01 control CRON[8040]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Sep 26 11:17:22 control systemd[1]: Starting Fail2Ban Service... Sep 26 11:17:22 control fail2ban-client[8048]: ERROR No file(s) found for glob /var/log/syslog maxretry = Sep 26 11:17:22 control fail2ban-client[8048]: ERROR Failed during configuration: Have not found any log file for pureftpd jail Sep 26 11:17:22 control systemd[1]: fail2ban.service: Control process exited, code=exited status=255 Sep 26 11:17:22 control systemd[1]: Failed to start Fail2Ban Service. Sep 26 11:17:22 control systemd[1]: fail2ban.service: Unit entered failed state. Sep 26 11:17:22 control systemd[1]: fail2ban.service: Failed with result 'exit-code'. Sep 26 11:17:22 control systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart. Sep 26 11:17:22 control systemd[1]: Stopped Fail2Ban Service. Sep 26 11:17:22 control systemd[1]: Starting Fail2Ban Service... Sep 26 11:17:22 control fail2ban-client[8050]: ERROR No file(s) found for glob /var/log/syslog maxretry = Sep 26 11:17:22 control fail2ban-client[8050]: ERROR Failed during configuration: Have not found any log file for pureftpd jail Sep 26 11:17:22 control systemd[1]: fail2ban.service: Control process exited, code=exited status=255 Sep 26 11:17:22 control systemd[1]: Failed to start Fail2Ban Service. Sep 26 11:17:22 control systemd[1]: fail2ban.service: Unit entered failed state. Sep 26 11:17:22 control systemd[1]: fail2ban.service: Failed with result 'exit-code'. Sep 26 11:17:23 control systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart. Sep 26 11:17:23 control systemd[1]: Stopped Fail2Ban Service. Sep 26 11:17:23 control systemd[1]: Starting Fail2Ban Service... Sep 26 11:17:23 control fail2ban-client[8052]: ERROR No file(s) found for glob /var/log/syslog maxretry = Sep 26 11:17:23 control fail2ban-client[8052]: ERROR Failed during configuration: Have not found any log file for pureftpd jail Sep 26 11:17:23 control systemd[1]: fail2ban.service: Control process exited, code=exited status=255 Sep 26 11:17:23 control systemd[1]: Failed to start Fail2Ban Service. Sep 26 11:17:23 control systemd[1]: fail2ban.service: Unit entered failed state. Sep 26 11:17:23 control systemd[1]: fail2ban.service: Failed with result 'exit-code'. Sep 26 11:17:23 control systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart. Sep 26 11:17:23 control systemd[1]: Stopped Fail2Ban Service. Sep 26 11:17:23 control systemd[1]: Starting Fail2Ban Service... Sep 26 11:17:23 control fail2ban-client[8054]: ERROR No file(s) found for glob /var/log/syslog maxretry = Sep 26 11:17:23 control fail2ban-client[8054]: ERROR Failed during configuration: Have not found any log file for pureftpd jail Sep 26 11:17:23 control systemd[1]: fail2ban.service: Control process exited, code=exited status=255 Sep 26 11:17:23 control systemd[1]: Failed to start Fail2Ban Service. Sep 26 11:17:23 control systemd[1]: fail2ban.service: Unit entered failed state. Sep 26 11:17:23 control systemd[1]: fail2ban.service: Failed with result 'exit-code'. Sep 26 11:17:23 control systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart. Sep 26 11:17:23 control systemd[1]: Stopped Fail2Ban Service. Sep 26 11:17:23 control systemd[1]: Starting Fail2Ban Service... Sep 26 11:17:23 control fail2ban-client[8056]: ERROR No file(s) found for glob /var/log/syslog maxretry = Sep 26 11:17:23 control fail2ban-client[8056]: ERROR Failed during configuration: Have not found any log file for pureftpd jail Sep 26 11:17:23 control systemd[1]: fail2ban.service: Control process exited, code=exited status=255 Sep 26 11:17:23 control systemd[1]: Failed to start Fail2Ban Service. Any ideas how to repair this failure? ^^ Best regards Frankenstein
I wonder why it lists the maxretry behind the path as if it would assume that it belongs to the path. Please try to remove the 'maxretry = 3' line in jail.local just to see if it starts then.
Found a corrupt wordwrap (Y) After remove the line, startup and rewrite the line to the file its just fine. Thanks (Y)