Hi there.
Recently I had reinstall my system from CentOS7.9 to Ubuntu22.04.
I was quite successfully install the mail program and redis and fail2ban.
Then I found that there was a "update" selection at Fail2Ban module.
It is said that the plugin was able to be update to 1.9 which support IPV6.
Then I press the "update". Just a second later I was accidently refresh the page.Then I instantly pressed the "update" by subconsicously, soonly I realized that I might execute the same script at the same time, which could cause a big issues.
After upgration complete. I found that the "fail2ban" was at "undefinded" status.
I try to uninstall and reinstall that services. Then the status shows as "Stop"
I was unable to launch it.
Aug 22 05:47:03 localmail.domain fail2ban-server[184373]: Traceback (most recent call last):
Aug 22 05:47:03 localmail.domain fail2ban-server[184373]: File "/usr/bin/fail2ban-server", line 34, in <module>
Aug 22 05:47:03 localmail.domain fail2ban-server[184373]: from fail2ban.client.fail2banserver import exec_command_line, sys
Aug 22 05:47:03 localmail.domain fail2ban-server[184373]: File "/www/server/panel/pyenv/lib/python3.7/site-packages/fail2ban/client/fail2banserver.py", line 26, >
Aug 22 05:47:03 localmail.domain fail2ban-server[184373]: from .fail2bancmdline import Fail2banCmdLine, ServerExecutionException, \
Aug 22 05:47:03 localmail.domain fail2ban-server[184373]: File "/www/server/panel/pyenv/lib/python3.7/site-packages/fail2ban/client/fail2bancmdline.py", line 30,>
Aug 22 05:47:03 localmail.domain fail2ban-server[184373]: from ..helpers import getLogger, str2LogLevel, getVerbosityFormat, BrokenPipeError
Aug 22 05:47:03 localmail.domain fail2ban-server[184373]: ImportError: cannot import name 'BrokenPipeError' from 'fail2ban.helpers' (/www/server/panel/pyenv/lib/py>
Aug 22 05:47:03 localmail.domain systemd[1]: fail2ban.service: Main process exited, code=exited, status=1/FAILURE
at the recently reinstall the errcode was 1.
and I found that my message list was always on "loading"
I had already done "panel fix" as some of other forum user mentioned.
I had reinstall the fail2ban by using apt install function. no help.
I dont want to reinstall the system but if the problem wouldnt solve that would be my only options.
So if there is no way out. Could u tell me how to reinstall the system with my mail's file intact?
Thank you.