# I broke Fail2Ban and now there's issues on yunohost, please help

**URL:** https://forum.yunohost.org/t/i-broke-fail2ban-and-now-theres-issues-on-yunohost-please-help/24600
**Category:** Support
**Tags:** fail2ban, yunohost, english
**Created:** [May 2, 2023, 12:49pm UTC](https://forum.yunohost.org/t/i-broke-fail2ban-and-now-theres-issues-on-yunohost-please-help/24600 "2023-05-02T12:49:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![andy-rynue](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/c0e974/32.png) [@andy-rynue](https://forum.yunohost.org/u/andy-rynue)
#### Post date: [May 2, 2023, 12:49pm UTC](https://forum.yunohost.org/t/i-broke-fail2ban-and-now-theres-issues-on-yunohost-please-help/24600/1 "2023-05-02T12:49:01Z")

</div>

HI ALL!

- I HOPE I DIDN’T BREAK EVERY APP/ETC IN YUNOHOST AND THIS IS REPAIRABLE  
PREFACE: I’M SO/SO AND WOULD SAY A LITTLE TECHY BUT AM NO DEV

🇬🇧/🇺🇸 Message template (english)

I have been trying to figure out a wordpress issue (any tips? trying to setup a theme, it says WP uploads directory needs to be writable.. I thought it was, I made it and still an error, anyway not for this post) and in doing so I think I deleted something I shouldn’t.  
Now when I reboot or try to start fail2ban I get the error  
“-- Journal begins at Mon 2023-05-01 09:25:50 ADT, ends at Tue 2023-05-02 09:38:20 ADT. –  
May 02 09:17:49 systemd[1]: Stopping Fail2Ban Service…  
May 02 09:17:49 fail2ban-client[381307]: Shutdown successful  
May 02 09:17:49 systemd[1]: fail2ban.service: Succeeded.  
May 02 09:17:49 systemd[1]: Stopped Fail2Ban Service.  
May 02 09:17:49 systemd[1]: fail2ban.service: Consumed 7min 19.579s CPU time.  
May 02 09:17:49 systemd[1]: Starting Fail2Ban Service…  
May 02 09:17:50 systemd[1]: Started Fail2Ban Service.  
May 02 09:17:50 fail2ban-server[381311]: 2023-05-02 09:17:50,596 fail2ban [381311]: ERROR Failed during configuration: Have not found any log file for sshd jail  
May 02 09:17:50 fail2ban-server[381311]: 2023-05-02 09:17:50,601 fail2ban [381311]: ERROR Async configuration of server failed  
May 02 09:17:50 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION  
May 02 09:17:50 systemd[1]: fail2ban.service: Failed with result ‘exit-code’.  
May 02 09:18:05 systemd[1]: Starting Fail2Ban Service…  
May 02 09:18:05 systemd[1]: Started Fail2Ban Service.”

Now I guess I understand what this says. There’s 2 problems. I have no idea how to fix either of them and ensure it still works with my stuff. I cannot get emails or anything right now, please help I have spent two days trying to troubleshoot this but believe I am indeed too stupid. Thank you in advance.

> 

### My YunoHost server

**Hardware:** Old computer at home - AMD 5700G  
**YunoHost version:** 11.1.18  
**I have access to my server :** Through SSH | direct access via keyboard / screen

**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : yes - I think I 100% deleted something when trying to undo something else that didn’t work to fix a wordpress issue which are likely the two things causing the fail.

> **[hastebin](https://paste.yunohost.org/ofipehafig)**

---

<div class="post-metadata">

### Author: ![andy-rynue](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/c0e974/32.png) [@andy-rynue](https://forum.yunohost.org/u/andy-rynue)
#### Post date: [May 2, 2023, 2:44pm UTC](https://forum.yunohost.org/t/i-broke-fail2ban-and-now-theres-issues-on-yunohost-please-help/24600/2 "2023-05-02T14:44:38Z")

</div>

y’all!

I did this:  
specify the backend in `/etc/fail2ban/jail.conf` to use `systemd` by editing the following line:

````auto
backend = auto
```TO
backend = systemd

Then restart fail2ban by running (or use yunohost admin panel):
systemctl restart fail2ban

I THIIIIINK it's working
````

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [June 1, 2023, 2:44pm UTC](https://forum.yunohost.org/t/i-broke-fail2ban-and-now-theres-issues-on-yunohost-please-help/24600/3 "2023-06-01T14:44:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
