Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed fail2ban on my Ubuntu 10.04 server. I modified my jail.conf like this :

When i try to start the client it returns :

ERROR  Could not start server. Maybe an old socket file is still present. Try to remove /var/run/fail2ban/fail2ban.sock. If you used fail2ban-client to start the server, adding the -x option will do it

I delete the fail2ban.sock, but nothing change... Any clue ?

share|improve this question
How do you try to start the client? – Janne Pikkarainen May 22 '12 at 13:29
fail2ban-client start – x_vi_r May 22 '12 at 13:59
Anything in fail2ban.log? – mgorven May 22 '12 at 22:28
Please edit your question to include full details within the question itself. – TRiG Jul 14 at 15:48
up vote 6 down vote accepted

I guess your fail2ban server closed unexpectedly (may be killed?). Check /var/run/fail2ban/fail2ban.sock file. Remove if exist and run fail2ban with command below:

sudo service fail2ban start

Also you may try to run another instance of fail2ban. Before you run fail2ban, check for service with ps ax | grep fail2ban. If service is not running, then you can safely start service.

share|improve this answer
Thx ! I started it with sudo fail2ban-client start as i see on the Ubuntu french documentation and it didn't works... Now it seems to works well. I'll ask for a change of the french wiki. – x_vi_r Jun 6 '12 at 7:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.