[OpenIndiana-discuss] fail2ban

Till Wegmüller toasterson at gmail.com
Tue Jan 3 13:12:52 UTC 2023


Hi Marc

I don't think we ever had a fail2ban IPS package in OI.
But for python we have pip the python native package manager. Try `pip 
install fail2ban==0.9.4` as root in order to see if that works or `pip 
install fail2ban` That should get yout the python package installed 
again. Depending how you created /usr/local/bin/fail2ban-client that 
might also need adjustment to the newest package version so it grabs the 
right python files.

Hope this helps
Greetings
Till

On 03.01.23 13:26, Marc Lobelle wrote:
> Hello all,
> 
> I had installed fail2ban about 10 years ago, following instructions by 
> jarret at megatron related to omnios and it worked nicely since that time.
> 
> Unfortunately, svcs told me that it is now in maintenance mode.
> 
> Is there an openindiana package for this program ? I'm running 
> openindiana 2022.10 and just updated all packages.
> 
> Thanks for your help,
> 
> Marc
> 
>   /var/svc/log/network-fail2ban:default.log ends with:
> 
> Stopping fail2ban-server with /etc/fail2ban/fail2ban.conf
> [ janv.  3 12:20:08 Method "stop" exited with status 0. ]
> [ janv.  3 12:20:08 Restarting too quickly, changing state to 
> maintenance. ]
> Traceback (most recent call last):
>    File "/usr/local/bin/fail2ban-client", line 4, in <module>
>      __import__('pkg_resources').run_script('fail2ban==0.9.4', 
> 'fail2ban-client')
>    File "/usr/lib/python3.9/vendor-packages/pkg_resources/__init__.py", 
> line 3260, in <module>
>      def _initialize_master_working_set():
>    File "/usr/lib/python3.9/vendor-packages/pkg_resources/__init__.py", 
> line 3234, in _call_aside
>      f(*args, **kwargs)
>    File "/usr/lib/python3.9/vendor-packages/pkg_resources/__init__.py", 
> line 3272, in _initialize_master_working_set
>      working_set = WorkingSet._build_master()
>    File "/usr/lib/python3.9/vendor-packages/pkg_resources/__init__.py", 
> line 581, in _build_master
>      ws.require(__requires__)
>    File "/usr/lib/python3.9/vendor-packages/pkg_resources/__init__.py", 
> line 909, in require
>      needed = self.resolve(parse_requirements(requirements))
>    File "/usr/lib/python3.9/vendor-packages/pkg_resources/__init__.py", 
> line 795, in resolve
>      raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: *The 'fail2ban==0.9.4' distribution 
> was not found and is required by the application*
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss



More information about the openindiana-discuss mailing list