Needs to restart CSF to get in directadmin panel

sante140

Verified User
Joined
Jan 19, 2016
Messages
24
Got weird problem on my box, and this is one of the 21 , others do not have this problem.

If i want to login in directadmin panel, I need to restart CFs first (csf -r)

Also one of my clients mail server is blocked after a certain time, if i restart csf he receives his mails again.

Somebody can tell me what's wrong, because breaking my head about this.
Also client is thinking about leaving because of the mail problems.
 
Hello,

Read server logs including /var/log/lfd.log to find out what is wrong. There is no way to guess what is happening on your server side without seeing it from inside.
 
re

Jan 17 03:27:06 server15 lfd[24234]: /var/log/messages rotated. Reopening log file
Jan 17 03:27:06 server15 lfd[24234]: Watching /var/log/messages...
Jan 17 03:27:06 server15 lfd[24234]: /var/www/html/squirrelmail/data/squirrelmail_access_log rotated. Reopening log file
Jan 17 03:27:06 server15 lfd[24234]: Watching /var/www/html/squirrelmail/data/squirrelmail_access_log...
Jan 17 03:27:06 server15 lfd[24234]: /var/log/exim/mainlog rotated. Reopening log file
Jan 17 03:27:06 server15 lfd[24234]: Watching /var/log/exim/mainlog...
Jan 17 03:27:06 server15 lfd[24234]: /var/www/html/phpMyAdmin/log/auth.log rotated. Reopening log file
Jan 17 03:27:06 server15 lfd[24234]: Watching /var/www/html/phpMyAdmin/log/auth.log...
Jan 17 03:27:06 server15 lfd[24234]: /var/www/html/roundcube/logs/errors rotated. Reopening log file
Jan 17 03:27:06 server15 lfd[24234]: Watching /var/www/html/roundcube/logs/errors...
Jan 17 03:27:06 server15 lfd[24234]: /var/log/directadmin/login.log rotated. Reopening log file
Jan 17 03:27:06 server15 lfd[24234]: Watching /var/log/directadmin/login.log...
Jan 17 03:27:06 server15 lfd[24234]: /var/log/httpd/error_log rotated. Reopening log file
Jan 17 03:27:06 server15 lfd[24234]: Watching /var/log/httpd/error_log...
Jan 17 03:27:06 server15 lfd[5905]: *User Processing* PID:5186 Kill:0 User:hhbalm VM:264(MB) EXE:/usr/local/php56/sbin/php-fpm56 CMD:php-fpm: pool hhbalm


lot of stuff like this
and for the rest nothing special I guess
 
restart csf to get into directadmin

Still no luck

If i want to get into directadmin I first need to go to my KVM, csf -r , and then I can login into directadmin.

One user uses roundcube, and its working fine, but after a while it stops, no more mails.

I am desperate.

what can be the issue?
 
Nothing to guess. Either disable CSF at all and use iptables from directadmin or debug it further yourself or with our help.
 
Are you having any thing which coud use or call iptables for some reason? Because that seems to be the most logical cause in this case.
Maybe a script or some rest of BFM, maybe a wrongly implemented BFM in Directadmin in combination with iptables?

If you use CSF, best way to prevent problems is to not use any direct calls to iptables anymore just disable it.
If you are running Centos or alike, then see if csf is enabled by default and iptables isn't like this:
Code:
chkconfig --list

It should give an output like:
Code:
ip6tables       0:off   1:off   2:off   3:off   4:off   5:off   6:off
iptables        0:off   1:off   2:off   3:off   4:off   5:off   6:off
csf             0:off   1:off   2:on    3:on    4:on    5:on    6:off

Since you state that you have to restart csf everytime, it looks like either some iptables call is messing up your csf lines, or csf is not started correctly.
I presume you disabled testing in your csf.conf?
Code:
TESTING = "0"
 
Not quite sure but you might take a look at: etc/csf/csf.pignore (also editable through CSF gui) and exclude some processes that lfd will ignore.
For example EXE:/usr/local/php56/sbin/php-fpm56
 
Back
Top