Fail2ban status : failed

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.14 (stable)
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: Non

Describe your issue

Bonjour,
après un diagnostique, j’ai constaté que : "Le service fail2ban est failed :frowning: " Je ne sais pas depuis combien de temps, ni dans quelles circonstance cela est arrivé.
J’ai, suivant les différents conseils du forum, appliqué les commandes suivantes :
‘’'root@resohabitat:/etc/ssh# yunohost service status fail2ban
configuration: unknown
description: Fail2Ban Service
last_state_change: 2025-04-14 21:48:12
start_on_boot: enabled
status: failed
root@resohabitat:/etc/ssh# sudo dpkg -r --force-depends fail2ban
sudo rm -rf /var/lib/fail2ban /etc/fail2ban/jail.d /etc/fail2ban/filter.d
sudo apt install fail2ban
sudo yunohost tools regen-conf fail2ban --force
dpkg: fail2ban: dependency problems, but removing anyway as you requested:
yunohost depends on fail2ban.

(Reading database … 112744 files and directories currently installed.)
Removing fail2ban (1.0.2-2) …
Processing triggers for man-db (2.11.2-2) …
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Suggested packages:
monit
The following NEW packages will be installed:
fail2ban
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 451 kB of archives.
After this operation, 2,180 kB of additional disk space will be used.
Get:1 Index of /debian bookworm/main amd64 fail2ban all 1.0.2-2 [451 kB]
Fetched 451 kB in 0s (7,865 kB/s)
Selecting previously unselected package fail2ban.
(Reading database … 112464 files and directories currently installed.)
Preparing to unpack …/fail2ban_1.0.2-2_all.deb …
Unpacking fail2ban (1.0.2-2) …
Setting up fail2ban (1.0.2-2) …
Processing triggers for man-db (2.11.2-2) …
Updating coolwsd systemplate
Success! Configuration updated for ‘fail2ban’
Warning: fail2ban.service is not active, cannot reload.
Error: Could not run script: /usr/share/yunohost/hooks/conf_regen/52-fail2ban
fail2ban:
applied:
/etc/fail2ban/filter.d/postfix-sasl.conf:
status: force-created
/etc/fail2ban/filter.d/yunohost-portal.conf:
status: force-created
/etc/fail2ban/filter.d/yunohost.conf:
status: force-created
/etc/fail2ban/jail.d/yunohost-jails.conf:
status: force-created
pending:
root@resohabitat:/etc/ssh# yunohost service restart fail2ban
Success! Service ‘fail2ban’ restarted
root@resohabitat:/etc/ssh# yunohost service status fail2ban
configuration: unknown
description: Fail2Ban Service
last_state_change: 2025-04-14 21:53:13
start_on_boot: enabled
status: failed’‘’
Merci pour votre aide.

Share relevant logs or error messages

Voici les log de fail2ban

Ainsi que celu du regenconf
https://paste.yunohost.org/raw/abafojajev