[ASTPPCOM-256] Fail2ban Created: 02/Nov/17  Updated: 01/Apr/21  Resolved: 01/Apr/21

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature
Reporter: countrdd Assignee: Samir Doshi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Somewhere in the startup scripts...it is deleting /var/run/fail2ban/
which is causing fail2ban to not start unless you manually make the directory.

On a reboot the directory is deleted again.

NING 'action' not defined in 'php-url-fopen'. Using default value
WARNING 'action' not defined in 'lighttpd-fastcgi'. Using default value
2017-11-02 12:43:26,365 fail2ban.server : INFO Starting Fail2ban v0.8.4
2017-11-02 12:43:26,365 fail2ban.server : INFO Starting in daemon mode
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
[root@ip-172-31-58-183 centos]# ls /var/run/fail2ban
ls: cannot access /var/run/fail2ban: No such file or directory
[root@ip-172-31-58-183 centos]# ls /var/run/fail2ban
ls: cannot access /var/run/fail2ban: No such file or directory
[root@ip-172-31-58-183 centos]# mkdir /var/run/fail2ban/
[root@ip-172-31-58-183 centos]# service fail2ban start



 Comments   
Comment by (Community) KC (Inactive) [ 03/Nov/17 ]

[~countrdd]
We have not face this issue in any centos server yet.
Will you please provide your setup information ?
Like OS, Version, How you install ASTPP and which version ?
Also pass link which you have used for installation.

Have you install fail2ban during ASTPP installation or installed seperately ?

Comment by Samir Doshi [ 21/Nov/17 ]

Closing the issue as no activity in topic.

Comment by countrdd [ 21/Nov/17 ]

Sorry....I am using Centos 7 and used the Script that you supplied in the WIKI Setup.

Comment by Ketan Kothari (Inactive) [ 28/Dec/17 ]

[~countrdd]

Its looks some issue on installation. Please remove it and try to install as per below link.
https://github.com/fail2ban/fail2ban.git

If still you are getting issue then please reports us.
It would be more preferable to use Google forum for such type of question so that all the other members also can help you directly.

Generated at Sat Feb 10 07:15:32 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.