Fail2ban with systemd journald keeps fails to start up

Hello

Sorry about the incorrect tag. I couldn’t find anything relevant to fail2ban

I’m trying to set up a custom jail for immich using the lsio fail2ban container. I have set immich to log to journald and my understanding is that fail2ban can read this by specifying the systemd backend.

Here is my jail on jail.local:

[immich]
enabled = true
filter  = immich
chain   = DOCKER-USER
bantime = 24h
journalmatch = immich-server
backend = systemd

What happens when I restart the server, is that I get this log line on repeat every second:

Server ready

If I remove backend = systemd from the jail config, the server starts fine, but can’t read the logs

It doesn’t have systemd in the image which is why it fails. You’d need to get immich to export their logs to file and make fail2ban read that.

Ah yeah, that’s what I feared. Thank you

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