proxmox v7 fail2ban failed to block-ips

jerrymoushu

New Member
Mar 29, 2021
9
0
1
44
Hi,

did anyone tried the proxmox v7 and above got such error on the fail2ban?
i tried for 6.4 iso working perfectly but for v7 and above 3 iso version also getting the same error - install no issue but cannot ban/capture failed ip access

2021-12-08 14:44:55,747 fail2ban.filter [87274]: INFO encoding: UTF-8
2021-12-08 14:44:55,747 fail2ban.filter [87274]: INFO maxRetry: 15
2021-12-08 14:44:55,747 fail2ban.filter [87274]: INFO findtime: 600
2021-12-08 14:44:55,747 fail2ban.actions [87274]: INFO banTime: 129600
2021-12-08 14:44:55,748 fail2ban.transmitter [87274]: WARNING Command ['start', 'sshd'] has failed. Received AttributeError("'FilterPyinotify' object has no attribute 'isAlive'")
2021-12-08 14:44:55,748 fail2ban [87274]: ERROR NOK: ("'FilterPyinotify' object has no attribute 'isAlive'",)
2021-12-08 14:44:55,749 fail2ban.transmitter [87274]: WARNING Command ['start', 'proxmox-web-gui'] has failed. Received AttributeError("'FilterPyinotify' object has no attribute 'isAlive'")
2021-12-08 14:44:55,749 fail2ban [87274]: ERROR NOK: ("'FilterPyinotify' object has no attribute 'isAlive'",)
2021-12-08 14:44:55,749 fail2ban.transmitter [87274]: WARNING Command ['start', 'ssh'] has failed. Received AttributeError("'FilterPyinotify' object has no attribute 'isAlive'")
2021-12-08 14:44:55,749 fail2ban [87274]: ERROR NOK: ("'FilterPyinotify' object has no attribute 'isAlive'",)
 
i can't get the latest version thru proxmox repo, is there anyway i can get the latest fail2ban version?

root@pve211:~# apt-get install -y fail2ban
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
python3-pyinotify whois
Suggested packages:
monit python-pyinotify-doc
Recommended packages:
python python3-systemd
The following NEW packages will be installed:
fail2ban python3-pyinotify whois
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 489 kB of archives.
After this operation, 2,274 kB of additional disk space will be used.
Get:1 http://ftp.debian.org/debian buster/main amd64 fail2ban all 0.10.2-2.1 [385 kB]
Get:2 http://ftp.debian.org/debian buster/main amd64 python3-pyinotify all 0.9.6-1 [26.9 kB]
Get:3 http://ftp.debian.org/debian buster/main amd64 whois amd64 5.4.3 [77.8 kB]
Fetched 489 kB in 0s (2,072 kB/s)
Selecting previously unselected package fail2ban.
(Reading database ... 42843 files and directories currently installed.)
Preparing to unpack .../fail2ban_0.10.2-2.1_all.deb ...
Unpacking fail2ban (0.10.2-2.1) ...
Selecting previously unselected package python3-pyinotify.
Preparing to unpack .../python3-pyinotify_0.9.6-1_all.deb ...
Unpacking python3-pyinotify (0.9.6-1) ...
Selecting previously unselected package whois.
Preparing to unpack .../archives/whois_5.4.3_amd64.deb ...
Unpacking whois (5.4.3) ...
Setting up whois (5.4.3) ...
Setting up fail2ban (0.10.2-2.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/fail2ban.service → /lib/systemd/system/fail2ban.service.
Setting up python3-pyinotify (0.9.6-1) ...
Processing triggers for man-db (2.9.4-2) ...
 
you are right, i paste wrong pve-no subscription. didnt thought changed . thanks for your help
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!