Fail2ban: ERROR unexpected EOF while parsing (<string>, line 1)
Full error description:
alpin:~# cat /etc/alpine-release
3.13.4
alpin:~# apk version fail2ban
Installed: Available:
fail2ban-0.11.1-r4 = 0.11.1-r4
alpin:~# fail2ban-client -i
Fail2Ban v0.11.1 reads log file that contains password failure report
and bans the corresponding IP addresses using firewall rules.
fail2ban> status sshd
2021-04-07 23:00:07,800 fail2ban [454]: ERROR unexpected EOF while parsing (<string>, line 1)
Also, encountered in 3.10. Latest working version was 3.7 ( maybe due to the fact that was using python2).
UPDATE:
I've used to test on 3.10 and fail2ban wasn't banning and I've wrongly assumed that 3.13 fails also, if I've got fail2ban-client -i [474]: ERROR unexpected EOF while parsing (, line 1)
In fact, 3.13 works
# fail2ban-client status sshd
Status for the jail: sshd
|- Filter
| |- Currently failed: 0
| |- Total failed: 2
| `- File list: /var/log/messages
`- Actions
|- Currently banned: 1
|- Total banned: 2
`- Banned IP list: XX.YY.ZZ.WW
But there's an interface error.
~ # fail2ban-client -i
Fail2Ban v0.11.1 reads log file that contains password failure report
and bans the corresponding IP addresses using firewall rules.
fail2ban> stauts sshd
2021-04-08 08:35:55,028 fail2ban [474]: ERROR unexpected EOF while parsing (<string>, line 1)
So, there's a bug, but with low priority and without any impact on blocking functionality.