Closed ohshitgorillas closed 1 year ago
It turns out the issue was that my fail2ban server was constantly restarting due to a syntax error in one of the .local files, and therefore never generating the socket file. Now that the error is fixed, everything is good. My apologies.
I'm using this fail2ban Prometheus exporter which relies on the fail2ban socket, but the exporter log is filled with errors about not being able to find the socket file.
Note that the author of the exporter recommends mounting the folder, not the socket file directly.
Ubuntu Server 20.04docker-compose.yaml:
I've tried to use a defined volume as well, but honestly, it doesn't seem that the fail2ban.sock file is located in /var/run/fail2ban at all in this image. If I run 'docker-compose exec fail2ban ls /var/run/fail2ban', I get an empty output.
Where is the fail2ban.sock file located in this image?
Thanks, team linuxserver.io