1 (edited by sorin.mitrica 2025-06-04 19:53:01)

Topic: upgrade from openbsd 7.6 to 7.7 - fail2ban

Iredmail 1.7.4, mariadb backend, openbsd 7.7, deployed with the downloadable installer, running on nginx. I don`t manage accounts with iredadmin-pro

After the sysupgrade and pkg_add -u to openbsd 7.7, fail2ban doesn`t start.

mail# rcctl start fail2ban
fail2ban(failed)

mail# fail2ban-server
Traceback (most recent call last):
  File "/usr/local/bin/fail2ban-server", line 34, in <module>
    from fail2ban.client.fail2banserver import exec_command_line, sys
ModuleNotFoundError: No module named 'fail2ban'

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: upgrade from openbsd 7.6 to 7.7 - fail2ban

Run `fail2ban-client -x start`, any error?

3

Re: upgrade from openbsd 7.6 to 7.7 - fail2ban

ZhangHuangbin wrote:

Run `fail2ban-client -x start`, any error?


mail# fail2ban-client -x start
Traceback (most recent call last):
  File "/usr/local/bin/fail2ban-client", line 34, in <module>
    from fail2ban.client.fail2banclient import exec_command_line, sys
ModuleNotFoundError: No module named 'fail2ban'

4

Re: upgrade from openbsd 7.6 to 7.7 - fail2ban

Try to download Fail2ban and install again.

5 (edited by Neovana Today 16:45:51)

Re: upgrade from openbsd 7.6 to 7.7 - fail2ban

I had the same issue with OpenBSD 7.7 and fail2ban. Here what I did to resolve the issue:

% doas -s
# cd /root
# wget -O fail2ban-1.1.0.tar.gz https://dl.iredmail.org/yum/misc/fail2ban-1.1.0.tar.gz
# tar zxf fail2ban-1.1.0.tar.gz
# rm fail2ban-1.1.0.tar.gz
# cd fail2ban-1.1.0/
# python3 setup.py install
# exit
% doas rcctl start fail2ban
fail2ban(ok)

That seemed to do the trick.