Fail2ban: PIDFile= references path below legacy directory on Debian Buster

Created on 17 Jul 2019  Â·  3Comments  Â·  Source: fail2ban/fail2ban

Environment:

  • OS, including release name/version: Debian Buster 10
  • [X] Fail2Ban installed via OS/distribution mechanisms

The issue:

upon systemctl enable fail2ban

systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.

shows up in the logs. both files exist

Expected behavior

no warning

Observed behavior

warning

Any additional information

uname -r is 5.0.15-1-pve (proxmox 6.0.4)

Most helpful comment

This is not an error (rather a warning)...
Should be updated by next release... If you want to update it right now by yourself:

  • patch your fail2ban.service like in the fix d5a5efcd5af272372153e86436d7c8cde2ddf66d
  • run systemctl daemon-reload

and by next start you'd not see that anymore.

You could also search in /etc/fail2ban for /var/run/ and replace all occurrences with /run/.

All 3 comments

Fixed in d5a5efcd5af272372153e86436d7c8cde2ddf66d.
Thanks!

Hello, @sebres sorry for bumping this, but i got this error:

systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.

On Raspberry Pi 4 with Raspbian 10 buster, 4.19.93-v7l+. "apt info fail2ban" shows:

Package: fail2ban
Version: 0.10.2-2.1
Priority: optional
Section: net
...
APT-Manual-Installed: yes
APT-Sources: http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages

You can do something about this, or i should ask somewhere else?

This is not an error (rather a warning)...
Should be updated by next release... If you want to update it right now by yourself:

  • patch your fail2ban.service like in the fix d5a5efcd5af272372153e86436d7c8cde2ddf66d
  • run systemctl daemon-reload

and by next start you'd not see that anymore.

You could also search in /etc/fail2ban for /var/run/ and replace all occurrences with /run/.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KiwiMorpheus picture KiwiMorpheus  Â·  3Comments

Vagrantin picture Vagrantin  Â·  4Comments

AleksCee picture AleksCee  Â·  5Comments

mvastola picture mvastola  Â·  7Comments

4Syno picture 4Syno  Â·  6Comments