Fail2ban doesn't start (Ubuntu 22.04 & Debian 12) #3680
Replies: 3 comments 4 replies
-
I did a second installation on Debian 12, clean (there is only Webmin). `× fail2ban.service - Fail2Ban Service feb 21 04:05:04 ls1 systemd[1]: Started fail2ban.service - Fail2Ban Service. |
Beta Was this translation helpful? Give feedback.
-
Error |
Beta Was this translation helpful? Give feedback.
-
I had already read them yesterday, but I confess that I didn't understand either what the problem is and how to solve it. |
Beta Was this translation helpful? Give feedback.
-
On Ubuntu server 22.04.3 Fail2Ban does not start with
sudo systemctl enable --now fail2ban
sudo systemctl status fail2ban
The error seems to be related to bantime, but I tried with 60m, with 1h and with 1d.
Where do I find the logs?
I can't find any updated data in /var/log/fail2ban.log.
This is what it appears in the terminal
`$ systemctl status fail2ban
× fail2ban.service - Fail2Ban Service
Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2024-02-21 02:59:53 CET; 3s ago
Docs: man:fail2ban(1)
Process: 7763 ExecStart=/usr/bin/fail2ban-server -xf start (code=exited, status=255/EXCEPTION)
Main PID: 7763 (code=exited, status=255/EXCEPTION)
CPU: 231ms
Feb 21 02:59:53 pc-sys.mydomain.tld systemd[1]: Started Fail2Ban Service.
Feb 21 02:59:53 pc-sys.mydomain.tld fail2ban-server[7763]: 2024-02-21 02:59:53,528 fail2ban [7763]: ERROR Failed during configuration: File contains no section headers.
Feb 21 02:59:53 pc-sys.mydomain.tld fail2ban-server[7763]: file: '/etc/fail2ban/jail.conf', line: 21
Feb 21 02:59:53 pc-sys.mydomain.tld fail2ban-server[7763]: 'bantime = 60m\n'
Feb 21 02:59:53 pc-sys.mydomain.tld fail2ban-server[7763]: 2024-02-21 02:59:53,532 fail2ban [7763]: ERROR Async configuration of server failed
Feb 21 02:59:53 pc-sys.mydomain.tld systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Feb 21 02:59:53 pc-sys.mydomain.tld systemd[1]: fail2ban.service: Failed with result 'exit-code'.
`
Beta Was this translation helpful? Give feedback.
All reactions