Fail2Ban not working After Yesterday's Auto Update


#1

FreePBX 15.0.17.37 - Distro Install

[root@ast4 ~]# systemctl status fail2ban
● fail2ban.service - Fail2Ban Service
Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sun 2021-06-27 09:01:53 PDT; 19h ago
Process: 9281 ExecStop=/usr/bin/fail2ban-client stop (code=exited, status=0/SUCCESS)
Process: 9381 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=255)
Process: 9379 ExecStartPre=/bin/mkdir -p /var/run/fail2ban (code=exited, status=0/SUCCESS)
Main PID: 24703 (code=exited, status=0/SUCCESS)

Jun 27 09:01:53 ast4.31west.net systemd[1]: fail2ban.service: control process exited, code=exited status=255
Jun 27 09:01:53 ast4.31west.net systemd[1]: Failed to start Fail2Ban Service.
Jun 27 09:01:53 ast4.31west.net systemd[1]: Unit fail2ban.service entered failed state.
Jun 27 09:01:53 ast4.31west.net systemd[1]: fail2ban.service failed.
Jun 27 09:01:53 ast4.31west.net systemd[1]: fail2ban.service holdoff time over, scheduling restart.
Jun 27 09:01:53 ast4.31west.net systemd[1]: Stopped Fail2Ban Service.
Jun 27 09:01:53 ast4.31west.net systemd[1]: start request repeated too quickly for fail2ban.service
Jun 27 09:01:53 ast4.31west.net systemd[1]: Failed to start Fail2Ban Service.
Jun 27 09:01:53 ast4.31west.net systemd[1]: Unit fail2ban.service entered failed state.
Jun 27 09:01:53 ast4.31west.net systemd[1]: fail2ban.service failed.
[root@ast4 ~]# systemctl start fail2ban
Job for fail2ban.service failed because the control process exited with error code. See "systemctl status fail2ban.service" and "journalctl -xe" for details.
[root@ast4 ~]# systemctl status fail2ban.service




[root@ast4 ~]# journalctl -xe
-- Unit fail2ban.service has failed.
--
-- The result is failed.
Jun 28 05:00:48 ast4.31west.net systemd[1]: Unit fail2ban.service entered failed state.
Jun 28 05:00:48 ast4.31west.net systemd[1]: fail2ban.service failed.
Jun 28 05:00:48 ast4.31west.net systemd[1]: fail2ban.service holdoff time over, scheduling restart.
Jun 28 05:00:48 ast4.31west.net systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has finished shutting down.
Jun 28 05:00:48 ast4.31west.net systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has begun starting up.
Jun 28 05:00:48 ast4.31west.net fail2ban-client[24972]: ERROR  No file(s) found for glob /var/log/asterisk/zulu_out.log
Jun 28 05:00:48 ast4.31west.net fail2ban-client[24972]: ERROR  Failed during configuration: Have not found any log file for zulu jail
Jun 28 05:00:48 ast4.31west.net systemd[1]: fail2ban.service: control process exited, code=exited status=255
Jun 28 05:00:48 ast4.31west.net systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has failed.
--
-- The result is failed.
Jun 28 05:00:48 ast4.31west.net systemd[1]: Unit fail2ban.service entered failed state.
Jun 28 05:00:48 ast4.31west.net systemd[1]: fail2ban.service failed.
Jun 28 05:00:48 ast4.31west.net systemd[1]: fail2ban.service holdoff time over, scheduling restart.
Jun 28 05:00:48 ast4.31west.net systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has finished shutting down.
Jun 28 05:00:48 ast4.31west.net systemd[1]: start request repeated too quickly for fail2ban.service
Jun 28 05:00:48 ast4.31west.net systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has failed.
--
-- The result is failed.
Jun 28 05:00:48 ast4.31west.net systemd[1]: Unit fail2ban.service entered failed state.
Jun 28 05:00:48 ast4.31west.net systemd[1]: fail2ban.service failed.
[root@ast4 ~]#

I’ve not made any changes to the server. How to debug & fix this?


(Lorne Gaetz) #2

A required file is missing, you can create it with the command

sudo -u asterisk touch /var/log/asterisk/zulu_out.log

#3

Thanks for a super fast response. Your suggestion helped. Fail2Ban working fine again.
Thanks !!


(system) closed #4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.