[ ubuntu ] fail2ban refuse de demarrer

Résolu/Fermé
tom@ Messages postés 202 Date d'inscription lundi 21 mars 2005 Statut Membre Dernière intervention 15 juin 2022 - Modifié par tom@ le 22/08/2016 à 22:15
tom@ Messages postés 202 Date d'inscription lundi 21 mars 2005 Statut Membre Dernière intervention 15 juin 2022 - 11 sept. 2016 à 01:16
Bonjour,

j'ai un serveur que j'ai fait migré vers la version Ubuntu 16.04. La mise a jour du serveur vers une version plus récente pose des problèmes, au niveau de fail2ban.

j'ai des message d' erreurs indiquant que fail2ban ne démarre pas. Alors que tout fonctionnait...

Voilà ce que j'ai comme erreurs :
Au démarrage :
~# sudo /etc/init.d/fail2ban start 
[....] Starting fail2ban (via systemctl): fail2ban.serviceJob for fail2ban.service failed because the control process exited with error code. See "systemctl status fail2ban.service" and "journalctl -xe" for details.
failed!


~# systemctl status fail2ban.service
● fail2ban.service - Fail2Ban Service
Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since lun. 2016-08-22 21:35:53 CEST; 16min ago
Docs: man:fail2ban(1)
Process: 12262 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=255)

août 22 21:35:53 fqdn.com systemd[1]: Failed to start Fail2Ban Service.
août 22 21:35:53 fqdn.com systemd[1]: fail2ban.service: Unit entered failed state.
août 22 21:35:53 fqdn.com systemd[1]: fail2ban.service: Failed with result 'exit-code'.
août 22 21:35:53 fqdn.com systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
août 22 21:35:53 fqdn.com systemd[1]: Stopped Fail2Ban Service.
août 22 21:35:53 fqdn.com systemd[1]: fail2ban.service: Start request repeated too quickly.
août 22 21:35:53 fqdn.com systemd[1]: Failed to start Fail2Ban Service.


la version du serveur etait avant 14.04, je crois.

Dans les règles iptables les "prisons" fail n’apparaissent plus.

Que dois-je faire ? Et, que se passe t'il ?
N'hésitez pas a me demander des infos supplémentaire, surtout.
merci pour vos réponses!

thomas


A voir également:

3 réponses

Judge_DT Messages postés 29395 Date d'inscription vendredi 5 février 2010 Statut Modérateur Dernière intervention 23 octobre 2021 9 620
22 août 2016 à 22:24
Salut.

Une mise à jour depuis le système lui même (sans réinstallation) ?

As-tu bien vérifié que tes paquets étaient bien à jour ? ça ressemble à un petit souci de logiciel mal installé/supporté... car non à jour.

Quelle version de fail2ban utilises-tu ? :o)

Que dises les logs fail2ban (normalement dans /var/log et quelque part là dedans...) ? :o)
0
tom@ Messages postés 202 Date d'inscription lundi 21 mars 2005 Statut Membre Dernière intervention 15 juin 2022 50
22 août 2016 à 23:02
j'ai trouvé la version de failban. C'est v0.9.3 .

~# fail2ban-server version
2016-08-22 22:47:46,803 fail2ban.server [17126]: INFO Starting Fail2ban v0.9.3
2016-08-22 22:47:46,804 fail2ban.server [17126]: INFO Starting in daemon mode


Concernant les logs /var/lof/fail2ban.log il n 'y a rien. Mais /var/log/fail2ban.log.1 donne cela :

[ .... ] 2016-08-22 02:48:24,319 fail2ban.jail   : INFO   Jail 'ssh' stopped
2016-08-22 02:48:25,124 fail2ban.actions: WARNING [sasl] Unban 91.121.207.113
2016-08-22 02:48:25,135 fail2ban.actions: WARNING [sasl] Unban 89.163.242.203
2016-08-22 02:48:25,145 fail2ban.actions: WARNING [sasl] Unban 81.27.88.112
2016-08-22 02:48:25,155 fail2ban.actions: WARNING [sasl] Unban 89.163.251.145
2016-08-22 02:48:25,211 fail2ban.jail : INFO Jail 'sasl' stopped
2016-08-22 02:48:26,278 fail2ban.jail : INFO Jail 'apache-overflows' stopped
2016-08-22 02:48:26,951 fail2ban.actions: WARNING [dovecot] Unban 200.68.99.217
2016-08-22 02:48:26,962 fail2ban.actions: WARNING [dovecot] Unban 24.154.167.168
2016-08-22 02:48:26,972 fail2ban.actions: WARNING [dovecot] Unban 117.20.28.185
2016-08-22 02:48:26,981 fail2ban.actions: WARNING [dovecot] Unban 177.185.64.148
2016-08-22 02:48:26,991 fail2ban.actions: WARNING [dovecot] Unban 166.62.41.132
2016-08-22 02:48:27,001 fail2ban.actions: WARNING [dovecot] Unban 115.127.82.34
2016-08-22 02:48:27,011 fail2ban.actions: WARNING [dovecot] Unban 199.168.142.93
2016-08-22 02:48:27,021 fail2ban.actions: WARNING [dovecot] Unban 207.244.97.228
2016-08-22 02:48:27,031 fail2ban.actions: WARNING [dovecot] Unban 5.196.197.114
2016-08-22 02:48:27,040 fail2ban.actions: WARNING [dovecot] Unban 115.112.184.117
2016-08-22 02:48:27,050 fail2ban.actions: WARNING [dovecot] Unban 185.44.230.121
2016-08-22 02:48:27,059 fail2ban.actions: WARNING [dovecot] Unban 37.203.213.44
2016-08-22 02:48:27,136 fail2ban.jail : INFO Jail 'dovecot' stopped
2016-08-22 02:48:27,487 fail2ban.jail : INFO Jail 'postfix-ddos' stopped
2016-08-22 02:48:28,112 fail2ban.jail : INFO Jail 'apache' stopped
2016-08-22 02:48:28,112 fail2ban.server : INFO Exiting Fail2ban


La migration a eu lieu dimanche 21 .

faudrait-il que je réinstalle fail2ban ?

merci de ta réponse,

thomas
0
Judge_DT Messages postés 29395 Date d'inscription vendredi 5 février 2010 Statut Modérateur Dernière intervention 23 octobre 2021 9 620
22 août 2016 à 23:07
OK.

à priori, problème connu, voir ici : https://github.com/fail2ban/fail2ban/issues/1396
0
tom@ Messages postés 202 Date d'inscription lundi 21 mars 2005 Statut Membre Dernière intervention 15 juin 2022 50
Modifié par tom@ le 23/08/2016 à 00:02
je tente une réinstallation de fail2ban. D ' après mes souvenirs j ai vu le lien que tu m'as donné.
Je te remercie pour ton aide.
0
tom@ Messages postés 202 Date d'inscription lundi 21 mars 2005 Statut Membre Dernière intervention 15 juin 2022 50
11 sept. 2016 à 01:16
Bonjour,
fail2ban a fonctionné, après une maintenance d'OVH, sur le serveur.

Je considère donc le post résolu.
Tom@
0