anubister / prosody_ynh

Prosody package for YunoHost
https://prosody.im/
GNU Affero General Public License v3.0
3 stars 2 forks source link

Failed to start fail2ban.service - Fail2Ban Service. #4

Open anubister opened 2 months ago

anubister commented 2 months ago

(non-blocking) error is reported by installing or removing the app:

Job for fail2ban.service failed.
See "systemctl status fail2ban.service" and "journalctl -xeu fail2ban.service" for details.
Warning: Could not execute the command 'systemctl restart fail2ban'
Success! Firewall reloaded
Job for fail2ban.service failed.
See "systemctl status fail2ban.service" and "journalctl -xeu fail2ban.service" for details.
Warning: Could not execute the command 'systemctl restart fail2ban'
Success! Firewall reloaded
Info: Deprovisioning data_dir...
Info: Deprovisioning install_dir...
Info: Deprovisioning system_user...
Info: Deprovisioning sources...
Success! prosody uninstalled
Info: The operation 'Remove the 'prosody' app' could not be completed. Please share the full log of this o
peration using the command 'yunohost log share 20240829-181234-app_remove-prosody' to get help
Error: This action seems to have broken these important services: fail2ban (failed)

journalctl says:

Aug 29 20:12:49 xxx systemd[1]: fail2ban.service: Start request repeated too quickly.
Aug 29 20:12:49 xxx systemd[1]: fail2ban.service: Failed with result 'start-limit-hit'.

Maybe because of the 4 firewall rules?

anubister commented 2 months ago

Dirty workaround: add StartLimitBurst=10 in /lib/systemd/system/fail2ban.service

apply with systemctl daemon-reload