Open davidofsky opened 1 year ago
I forked this repository and made the necessary changes to make the addon work again.
You can find the fork here.
The install.sh makes sure python3 is installed before installing fail2ban.
I noticed that all of the blocks in jail.conf that had a non-existent logpath were disabled,
but the way that the jail.conf was edited made the config invalid.
It didn't make much sense to me to disable those blocks anyway, so instead I chose to create the logfiles if they don't exist.
Only changed URL's to point to the forked repo instead of the original.
A few days ago, fail2ban stopped supporting python 2.x. The changes that came with it, causes this addon to crash on installation.
At first it crashed because the nginx loadbalancer for Jelastic uses python 2.7.5.
Log:
I was able to fix this issue by installing python3 on the loadbalancer before installing this addon.
After that it crashed because of an invalid jail.conf file. Output of command "fail2ban-client start":
It seems that the previous versions of fail2ban simply ignored the duplicate options. In the contents of the jail.conf, I can see that there are indeed duplicate 'enabled' options in multiple sections
Once these duplicate options are removed, fail2ban-client is able to start.