FS#33990 - [systemd] systemd floods its own logs
Attached to Project:
Arch Linux
Opened by higuita (higuita) - Sunday, 24 February 2013, 02:04 GMT
Last edited by Tom Gundersen (tomegun) - Thursday, 16 May 2013, 00:47 GMT
Opened by higuita (higuita) - Sunday, 24 February 2013, 02:04 GMT
Last edited by Tom Gundersen (tomegun) - Thursday, 16 May 2013, 00:47 GMT
|
Details
I made a mistake configuring the syslog-ng (my fault) and a
few minutes later found that systemd was eating all the
cpu.
A simple dmesg showed the problem: [ 865.485322] systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. trying to find the origin of the problem, i got: # journalctl -xn -- Logs begin at Sáb 2013-02-23 21:22:54 WET, end at Dom 2013-02-24 01:37:39 WET. -- Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:37:39 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. systemctl status syslog-ng.service syslog-ng.service - System Logger Daemon Loaded: loaded (/usr/lib/systemd/system/syslog-ng.service; enabled) Active: failed (Result: start-limit) since Dom 2013-02-24 01:37:58 WET; 5s ago Docs: man:syslog-ng(8) Process: 2494 ExecStart=/usr/sbin/syslog-ng -F (code=exited, status=1/FAILURE) Fev 24 01:38:02 paquete.motaleite.net systemd[1]: Failed to start System Logger Daemon. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: Failed to start System Logger Daemon. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: Failed to start System Logger Daemon. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: Failed to start System Logger Daemon. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: Failed to start System Logger Daemon. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: Failed to start System Logger Daemon. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: Failed to start System Logger Daemon. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: Failed to start System Logger Daemon. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. Fev 24 01:38:02 paquete.motaleite.net systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start. so only useless info because systemd is busy flooding its own logs, hiding the real problem. after some tries using systemd, i gave up and debug syslog-ng manually: # /usr/sbin/syslog-ng -F Error parsing config, duplicate destination definition in /etc/syslog-ng/syslog-ng.conf at line 96, column 1: destination d_mail { file("/var/log/maillog"); }; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ syslog-ng documentation: http://www.balabit.com/support/documentation/?product=syslog-ng mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng So there, this is what systemd should have reported in the very beginning So what i recommend is that systemd should merge identical messages or at very least, ignore it own flood messages also, maybe syslog-ng should not try to respawn so quickly |
This task depends upon
Note that the Arch Linux package maintainers may choose to close this ticket, as it is not solveable on the packaging-level, as far as I know.
As Alexander says, please report this upstream.
Could it be that your syslog-ng.service file is missing a "RestartPreventExitStatus=" line?
if syslog-ng uses the exit values from sysexits.h it sould be:
[Service]
RestartPreventExitStatus=78
this will prevent systemd from restarting your service when it exits with code 78 (EX_CONFIG). see systemd.service(5) for more details