systemd issue due to recent update

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Locked
tanfwc
Junior Member
Posts: 7
Joined: 18 Sep 2019, 07:52

systemd issue due to recent update

Post by tanfwc »

Error log

Sep 18 14:41:18 moon systemd[1]: Starting ConfigServer Firewall & Security - lfd...
Sep 18 14:41:19 moon systemd[1]: Can't open PID file /var/run/lfd.pid (yet?) after start: Too many levels of symbolic links
Sep 18 14:42:48 moon systemd[1]: lfd.service start operation timed out. Terminating.
Sep 18 14:42:48 moon systemd[1]: Failed to start ConfigServer Firewall & Security - lfd.
Sep 18 14:42:48 moon systemd[1]: Unit lfd.service entered failed state.
Sep 18 14:42:48 moon systemd[1]: lfd.service failed.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

Temporary Solution
cat /etc/systemd/system/lfd.service.d/override.conf
[Service]
PIDFile=/run/lfd.pid

This seems to only affect some system, not sure why but hope this information helps

mediast
Junior Member
Posts: 1
Joined: 18 Sep 2019, 16:14

Re: systemd issue due to recent update

Post by mediast »

We're having the exact same issue, but your temporary fix did not work. Also not impacting all of our servers.

Nick

tanfwc
Junior Member
Posts: 7
Joined: 18 Sep 2019, 07:52

Re: systemd issue due to recent update

Post by tanfwc »

Can provide me some log to have a look?

getvipin
Junior Member
Posts: 1
Joined: 27 Sep 2019, 20:22

Re: systemd issue due to recent update

Post by getvipin »

mediast wrote:
18 Sep 2019, 16:20
We're having the exact same issue, but your temporary fix did not work. Also not impacting all of our servers.

Nick
Looks like the issue is with CentOS 7.7 update ?
Try using,
1) # systemctl edit lfd.service
2) Add these lines
[Service]
PIDFile=/run/lfd.pid
3) systemctl daemon-reload
4) Restart lfd

Thanks,
Vipin

ForumAdmin
Moderator
Posts: 1475
Joined: 01 Oct 2008, 09:24

Re: systemd issue due to recent update

Post by ForumAdmin »

getvipin wrote:
27 Sep 2019, 20:29
mediast wrote:
18 Sep 2019, 16:20
We're having the exact same issue, but your temporary fix did not work. Also not impacting all of our servers.

Nick
Looks like the issue is with CentOS 7.7 update ?
Try using,
1) # systemctl edit lfd.service
2) Add these lines
[Service]
PIDFile=/run/lfd.pid
3) systemctl daemon-reload
4) Restart lfd

Thanks,
Vipin
That should resolve the issue for now. We will have this modification to the lfd service in the next release.

mn3250
Junior Member
Posts: 2
Joined: 29 May 2020, 11:48

Re: systemd issue due to recent update

Post by mn3250 »

Still not running:
systemd[1]: lfd.service: main process exited, code=killed, status=9/KILL
systemd[1]: Stopped ConfigServer Firewall & Security - lfd.
systemd[1]: Unit lfd.service entered failed state.
systemd[1]: lfd.service failed.
systemd[1]: Starting ConfigServer Firewall & Security - lfd...
systemd[1]: Can't open PID file /run/lfd.pid (yet?) after start: No such file or directory
systemd[1]: Started ConfigServer Firewall & Security - lfd.
Centos 7
3.10.0-1127.8.2.el7.x86_64 #1 SMP Tue May 12 16:57:42 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

mn3250
Junior Member
Posts: 2
Joined: 29 May 2020, 11:48

Re: systemd issue due to recent update

Post by mn3250 »

May this helps someone:
yum -y install iptables-services
Lfd is working now.

Locked