lfd unable to start

Post Reply
bonzo
Junior Member
Posts: 1
Joined: 07 Jun 2018, 10:19

lfd unable to start

Post by bonzo »

After a fresh install of csf, I'm getting this error while trying to start

Code: Select all

Jun 07 11:17:27 mail.aria systemd[1]: Starting ConfigServer Firewall & Security - lfd...
Jun 07 11:17:27 mail.aria lfd[6704]: Can't use an undefined value as a symbol reference at /usr/sbin/lfd line 7186.
Jun 07 11:17:27 mail.aria systemd[1]: lfd.service: Control process exited, code=exited status=25
Jun 07 11:17:27 mail.aria systemd[1]: Failed to start ConfigServer Firewall & Security - lfd.
Jun 07 11:17:27 mail.aria systemd[1]: lfd.service: Unit entered failed state.
Jun 07 11:17:27 mail.aria systemd[1]: lfd.service: Failed with result 'exit-code'.
System is the latest Debian 9 with all updates installed
Sopor
Junior Member
Posts: 1
Joined: 14 Jun 2018, 16:46

Re: lfd unable to start

Post by Sopor »

I got the same message in Ubuntu server 18.04. I was able to fix it by changing TESTING = "1" to "0", but this make me not test the CSF before going LIVE so that can be a risky move. Something seems to be wrong if you can't test the firewall.
tgage
Junior Member
Posts: 6
Joined: 24 Jun 2018, 20:39

Re: lfd unable to start

Post by tgage »

I agree that there is an error in the source code as lfd should fail reporting "Error* lfd will not run with TESTING enabled in /etc/csf/csf.conf" rather than attempting to start and failing when it tries to close and unlink the /var/run/lfd.pid file.

Bug aside, LFD will not run when TESTING mode is enabled.
tgage
Junior Member
Posts: 6
Joined: 24 Jun 2018, 20:39

Re: lfd unable to start

Post by tgage »

Opened bug report against lfd:
viewtopic.php?f=4&t=10879
tgage
Junior Member
Posts: 6
Joined: 24 Jun 2018, 20:39

Re: lfd unable to start

Post by tgage »

@Sopor, even without LFD running, you can still test the firewall as csf is enabled along with are the iptables rules.
tgage
Junior Member
Posts: 6
Joined: 24 Jun 2018, 20:39

Re: lfd unable to start

Post by tgage »

I posted a patch that fixes the error message here:
viewtopic.php?f=4&t=10879

Note: As LFD is not supposed to start in TESTING mode, this patch only fixes the error message to report the correct, more meaningful, error.
Post Reply