Tu as redémarré la machine entre temps ? Je suis étonné que le service ne fonctionne que depuis 21h, si tu as relancé le service ou fait un reboot normal.
Par contre, tu n’as pas de droit suffisant pour voir les logs ? Re-tente la commande avec un petit sudo si jamais on y voit quelque chose de louche.
Je me demande si l’installation de fail2ban ne relance pas ce service, ce qui expliquerait le redémarrage.
Je rejette un œil sûr t’on log d’installation si je trouve d’autre chose étrange.
Edit : Clairement, l’erreur ce situe là
2023-01-23 15:05:19,395: WARNING - Job for fail2ban.service failed.
2023-01-23 15:05:19,396: WARNING - See "systemctl status fail2ban.service" and "journalctl -xe" for details.
2023-01-23 15:05:19,397: DEBUG - + ynh_exec_err journalctl --quiet --no-hostname --no-pager --lines=20 --unit=fail2ban
2023-01-23 15:05:19,397: DEBUG - + [[ 6 -eq 1 ]]
2023-01-23 15:05:19,397: DEBUG - ++ journalctl --quiet --no-hostname --no-pager --lines=20 --unit=fail2ban
2023-01-23 15:05:19,410: DEBUG - + ynh_print_err '--message=déc. 26 13:28:25 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,410: DEBUG - déc. 26 13:28:26 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,411: DEBUG - déc. 26 13:28:27 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,411: DEBUG - déc. 26 13:28:27 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,411: DEBUG - déc. 26 13:28:30 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,411: DEBUG - déc. 26 13:28:30 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,412: DEBUG - déc. 26 13:28:41 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,412: DEBUG - déc. 26 13:28:42 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,412: DEBUG - déc. 26 13:28:51 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,413: DEBUG - déc. 26 13:28:52 systemd[1]: Stopping Fail2Ban Service...
2023-01-23 15:05:19,413: DEBUG - déc. 26 13:28:53 fail2ban-client[32301]: Shutdown successful
2023-01-23 15:05:19,413: DEBUG - déc. 26 13:28:53 systemd[1]: fail2ban.service: Succeeded.
2023-01-23 15:05:19,414: DEBUG - déc. 26 13:28:53 systemd[1]: Stopped Fail2Ban Service.
2023-01-23 15:05:19,414: DEBUG - déc. 26 13:28:57 systemd[1]: Starting Fail2Ban Service...
Mais ba je ne crois pas pouvoir t’aider plus
.
Sur les issues ouverte côté Github quelque soucis avec Fail2ban mais pas forcément lié à t’on log.