Bonjour à tous, et merci beaucoup pour cet outils qui permet à presque tous de devenir autonome !
Matériel: Raspberry Pi 4B ram 4Go à la maison
Version de YunoHost: 11.2.7
J’ai accès à mon serveur : En SSH et Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : oui
Je viens de créer mon serveur. Je suis donc en train d’installer les applications/services que j’aimerais héberger. ça a bug en pemier avec Lufi : https://paste.yunohost.org/raw/yovutiduwu
ensuite avec lstu : https://paste.yunohost.org/raw/bapumarale
puis depuis ajourd’hui fail2ban dans le diag ne marche plus. J’ai quand même essayé d’installer jitsy : https://paste.yunohost.org/raw/yepiqawola.
J’ai fait une authentification SSH avec un port avant.
J’ai déjà installé peertube, owntracks, nextcloud & dollibar
Description du problème
J’essaye donc juste d’installer les apps mentionnées ci-dessus + quelques une autres dans un premier temps. Création de sous-domaines, installation des certificats. J’ai tenté de redémarrer fail2ban, sans succès.
log du diagnostique
https://paste.yunohost.org/raw/uditamejub
J’ai du coup sorti le log via la commande SSH :
Fail2ban Log
- Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 653, in __flushBan
- File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 637, in flush
- return self._executeOperation('<actionflush>', 'flushing', family=family, afterExec=_afterFlush)
- File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 476, in _executeOperation
- raise RuntimeError("Error %s action %s/%s: %r" % (operation, self._jail, self._name, err))
- RuntimeError: Error flushing action Jail('recidive')/iptables-allports: 'Script error'
-
- During handling of the above exception, another exception occurred:
-
- Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/fail2ban/server/jailthread.py", line 69, in run_with_except_hook
- File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 368, in run
- File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 666, in __flushBan
- File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 690, in consistencyCheck
- if started and not self._invariantCheck(family, beforeRepair):
- File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 916, in _invariantCheck
- if beforeRepair and not beforeRepair():
- File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 663, in _beforeRepair
- AttributeError: 'Actions' object has no attribute '_logSys'
- 2023-12-01 19:54:20,699 fail2ban.jail [563]: INFO Jail 'recidive' stopped
- 2023-12-01 19:54:20,703 fail2ban.utils [563]: ERROR 7f883f8f10 -- exec: iptables -w -n -L INPUT | grep -q 'f2b-pam-generic[ \t]'
- 2023-12-01 19:54:20,703 fail2ban.utils [563]: ERROR 7f883f8f10 -- returned 1
- 2023-12-01 19:54:20,703 fail2ban [563]: CRITICAL Unhandled exception in Fail2Ban:
- Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 653, in __flushBan
- File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 637, in flush
- return self._executeOperation('<actionflush>', 'flushing', family=family, afterExec=_afterFlush)
- File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 476, in _executeOperation
- raise RuntimeError("Error %s action %s/%s: %r" % (operation, self._jail, self._name, err))
- RuntimeError: Error flushing action Jail('pam-generic')/iptables-allports: 'Script error'
-
- During handling of the above exception, another exception occurred:
-
- Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/fail2ban/server/jailthread.py", line 69, in run_with_except_hook
- File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 368, in run
- File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 666, in __flushBan
- File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 690, in consistencyCheck
- if started and not self._invariantCheck(family, beforeRepair):
- File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 916, in _invariantCheck
- if beforeRepair and not beforeRepair():
- File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 663, in _beforeRepair
- AttributeError: 'Actions' object has no attribute '_logSys'
- 2023-12-01 19:54:20,708 fail2ban.jail [563]: INFO Jail 'pam-generic' stopped
- 2023-12-01 19:54:20,709 fail2ban.jail [563]: INFO Jail 'yunohost' stopped
- 2023-12-01 19:54:20,709 fail2ban.jail [563]: INFO Jail 'sasl' stopped
- 2023-12-01 19:54:20,709 fail2ban.jail [563]: INFO Jail 'nextcloud' stopped
- 2023-12-01 19:54:20,710 fail2ban.database [563]: INFO Connection to database closed.
- 2023-12-01 19:54:20,711 fail2ban.server [563]: INFO Exiting Fail2ban
journalctl:
- -- Journal begins at Tue 2022-12-06 18:45:10 GMT, ends at Sat 2023-12-02 08:36:00 GMT. --
- Dec 01 19:54:21 fail2ban-server[563]: raise RuntimeError("Error %s action %s/%s: %r" % (operation, self._jail, self._name, err))
- Dec 01 19:54:21 fail2ban-server[563]: RuntimeError: Error flushing action Jail('pam-generic')/iptables-allports: 'Script error'
- Dec 01 19:54:21 fail2ban-server[563]: During handling of the above exception, another exception occurred:
- Dec 01 19:54:21 fail2ban-server[563]: Traceback (most recent call last):
- Dec 01 19:54:21 fail2ban-server[563]: File "/usr/lib/python3/dist-packages/fail2ban/server/jailthread.py", line 69, in run_with_except_hook
- Dec 01 19:54:21 fail2ban-server[563]: File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 368, in run
- Dec 01 19:54:21 fail2ban-server[563]: File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 666, in __flushBan
- Dec 01 19:54:21 fail2ban-server[563]: File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 690, in consistencyCheck
- Dec 01 19:54:21 fail2ban-server[563]: if started and not self._invariantCheck(family, beforeRepair):
- Dec 01 19:54:21 fail2ban-server[243726]: 2023-12-01 19:54:21,161 fail2ban [243726]: ERROR No module named 'fail2ban.server.server'
- Dec 01 19:54:20 systemd[1]: fail2ban.service: Consumed 2min 59.760s CPU time.
- Dec 01 19:54:21 fail2ban-server[563]: File "/usr/lib/python3/dist-packages/fail2ban/server/action.py", line 916, in _invariantCheck
- Dec 01 19:54:21 fail2ban-server[563]: if beforeRepair and not beforeRepair():
- Dec 01 19:54:21 fail2ban-server[563]: File "/usr/lib/python3/dist-packages/fail2ban/server/actions.py", line 663, in _beforeRepair
- Dec 01 19:54:21 fail2ban-server[563]: AttributeError: 'Actions' object has no attribute '_logSys'
- Dec 01 19:54:20 systemd[1]: Starting Fail2Ban Service...
- Dec 01 19:54:20 systemd[1]: Started Fail2Ban Service.
- Dec 01 19:54:21 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
- Dec 01 19:54:21 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
- Dec 01 19:54:36 systemd[1]: Starting Fail2Ban Service...
- Dec 01 19:54:36 systemd[1]: Started Fail2Ban Service.
- Dec 01 19:54:36 fail2ban-server[243914]: 2023-12-01 19:54:36,968 fail2ban [243914]: ERROR No module named 'fail2ban.server.server'
- Dec 01 19:54:37 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
- Dec 01 19:54:37 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
- Dec 01 19:55:09 systemd[1]: Starting Fail2Ban Service...
- Dec 01 19:55:09 systemd[1]: Started Fail2Ban Service.
- Dec 01 19:55:09 fail2ban-server[245846]: 2023-12-01 19:55:09,944 fail2ban [245846]: ERROR No module named 'fail2ban.server.server'
- Dec 01 19:55:10 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
- Dec 01 19:55:10 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
- Dec 01 19:55:23 systemd[1]: Starting Fail2Ban Service...
- Dec 01 19:55:23 systemd[1]: Started Fail2Ban Service.
- Dec 01 19:55:23 fail2ban-server[246021]: 2023-12-01 19:55:23,551 fail2ban [246021]: ERROR No module named 'fail2ban.server.server'
- Dec 01 19:55:23 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
- Dec 01 19:55:23 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
- Dec 02 07:21:55 systemd[1]: fail2ban.service: Unit cannot be reloaded because it is inactive.
- Dec 02 07:22:08 systemd[1]: Starting Fail2Ban Service...
- Dec 02 07:22:08 systemd[1]: Started Fail2Ban Service.
- Dec 02 07:22:08 fail2ban-server[266599]: 2023-12-02 07:22:08,832 fail2ban [266599]: ERROR No module named 'fail2ban.server.server'
- Dec 02 07:22:08 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
- Dec 02 07:22:08 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
- Dec 02 07:22:49 systemd[1]: Starting Fail2Ban Service...
- Dec 02 07:22:49 systemd[1]: Started Fail2Ban Service.
- Dec 02 07:22:50 fail2ban-server[266666]: 2023-12-02 07:22:50,249 fail2ban [266666]: ERROR No module named 'fail2ban.server.server'
- Dec 02 07:22:50 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
- Dec 02 07:22:50 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
- Dec 02 08:29:03 systemd[1]: Starting Fail2Ban Service...
- Dec 02 08:29:03 systemd[1]: Started Fail2Ban Service.
- Dec 02 08:29:04 fail2ban-server[270196]: 2023-12-02 08:29:04,199 fail2ban [270196]: ERROR No module named 'fail2ban.server.server'
- Dec 02 08:29:04 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
- Dec 02 08:29:04 systemd[1]: fail2ban.service: Failed with result 'exit-code'.```