I've been a user of fail2ban for several years.  I'm not an expert.  But I'm
not a newbie either.  Everything has been running fine on Ubuntu 14.04.

I'm building a new Ubuntu 16.04 machine.  I installed the fail2ban package
(v0.9.3) and encountered this problem immediately after install and before
performing any customization at all. 

"fail2ban-client stop" claims success, but syslog shows problems. 

Question 1:  Why is the client reporting success even though there is
evidently a problem?
Question 2:  Why is it starting again, when the command given was "stop"?

$ sudo fail2ban-client stop
Shutdown successful

/var/log/syslog:
Aug  7 12:12:36 w6xsc-gw fail2ban-client[5318]: ERROR  Failed to access
socket path: /var/run/fail2ban/fail2ban.sock. Is fail2ban running?
Aug  7 12:12:36 w6xsc-gw systemd[1]: fail2ban.service: Control process
exited, code=exited status=255
Aug  7 12:12:36 w6xsc-gw systemd[1]: fail2ban.service: Unit entered failed
state.
Aug  7 12:12:36 w6xsc-gw systemd[1]: fail2ban.service: Failed with result
'exit-code'.
Aug  7 12:12:36 w6xsc-gw systemd[1]: fail2ban.service: Service hold-off time
over, scheduling restart.
Aug  7 12:12:36 w6xsc-gw systemd[1]: Stopped Fail2Ban Service.
Aug  7 12:12:36 w6xsc-gw systemd[1]: Starting Fail2Ban Service...
Aug  7 12:12:36 w6xsc-gw fail2ban-client[5322]: 2017-08-07 12:12:36,845
fail2ban.server         [5324]: INFO    Starting Fail2ban v0.9.3
Aug  7 12:12:36 w6xsc-gw fail2ban-client[5322]: 2017-08-07 12:12:36,845
fail2ban.server         [5324]: INFO    Starting in daemon mode
Aug  7 12:12:37 w6xsc-gw systemd[1]: Started Fail2Ban Service.

$ ls -l /var/run/fail2ban
total 4
-rw------- 1 root root 5 Aug  7 12:12 fail2ban.pid
srwx------ 1 root root 0 Aug  7 12:12 fail2ban.sock


Thanks in advance,
Michael



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to