I’ve been making errors with fail2ban since I went NC18.
If I remove nextcloud from the jail.d and filter.d directories, I can run fail2ban with no problem.
Nextcloud18 has changed the way I write filter and jail for fail2ban?
The log format of nextcloud depends in where the access came from (web interface, webdav…). There are several long discussions (in these forums here) which all conclude that the following filter works best:
Hi, I think I have the same problem as you. fail2ban fails to boot because it cannot access nextcloud resources. Consider that I installed nextcloud on an external hard drive and when I try to start the fail2ban service, it crashes and tells me “Failed during configuration: Have not found any log file for nextcloud jail” despite the logpath (indicated in the nextcloud guide) is correct. How did you solve the problem with SELinux?
SELinux is preventing /usr/libexec/platform-python3.6 from getattr access on the file /path_2_your_data/nextcloud.log.
If you believe that platform-python3.6 should be allowed getattr access on the nextcloud.log file by default.
You should report this as a bug. You can generate a local policy module to allow this access.