Bug 1309345

Summary: syslog-ng fails to start on boot
Product: [Fedora] Fedora EPEL Reporter: Emma Laurijssens <emma>
Component: syslog-ngAssignee: Jose Pedro Oliveira <jose.p.oliveira.oss>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: jose.p.oliveira.oss, mrunge, peter, rayvd, Speeddymon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-08 22:22:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Proposed patch none

Description Emma Laurijssens 2016-02-17 14:28:51 UTC
Description of problem:
syslog-ng fails to start after a reboot

Version-Release number of selected component (if applicable):
syslog-ng-3.5.6-3

How reproducible:
Always

Steps to Reproduce:
1. Install syslog-ng and configure to log to remote syslog
2. Start, will work
3. Reboot host, syslog-ng fais to start
4. Manually start syslog through systemctl, works again

Actual results:
Feb 17 13:39:38 df-lin-jumphost systemd[1]: Starting System Logger Daemon...
Feb 17 13:39:38 df-lin-jumphost systemd[1]: Starting Network Time Service...
....
Feb 17 13:39:38 df-lin-jumphost systemd[1]: syslog-ng.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 17 13:39:38 df-lin-jumphost systemd[1]: Failed to start System Logger Daemon.
Feb 17 13:39:38 df-lin-jumphost systemd[1]: Unit syslog-ng.service entered failed state.
Feb 17 13:39:38 df-lin-jumphost systemd[1]: syslog-ng.service failed.
Feb 17 13:39:38 df-lin-jumphost systemd[1]: syslog-ng.service holdoff time over, scheduling restart.
Feb 17 13:39:38 df-lin-jumphost systemd[1]: Starting System Logger Daemon...
Feb 17 13:39:38 df-lin-jumphost systemd[1]: syslog-ng.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 17 13:39:38 df-lin-jumphost systemd[1]: Failed to start System Logger Daemon.
Feb 17 13:39:38 df-lin-jumphost systemd[1]: Unit syslog-ng.service entered failed state.
Feb 17 13:39:38 df-lin-jumphost systemd[1]: syslog-ng.service failed.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service holdoff time over, scheduling restart.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Starting System Logger Daemon...
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Failed to start System Logger Daemon.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Unit syslog-ng.service entered failed state.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service failed.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service holdoff time over, scheduling restart.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Starting System Logger Daemon...
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Failed to start System Logger Daemon.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Unit syslog-ng.service entered failed state.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service failed.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service holdoff time over, scheduling restart.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Starting System Logger Daemon...
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Failed to start System Logger Daemon.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Unit syslog-ng.service entered failed state.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service failed.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service holdoff time over, scheduling restart.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: start request repeated too quickly for syslog-ng.service
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Failed to start System Logger Daemon.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: Unit syslog-ng.service entered failed state.
Feb 17 13:39:39 df-lin-jumphost systemd[1]: syslog-ng.service failed.

Expected results:
Feb 17 13:45:36 df-lin-jumphost systemd[1]: Starting System Logger Daemon...
Feb 17 13:45:36 df-lin-jumphost systemd[1]: Started System Logger Daemon.
Feb 17 13:45:56 df-lin-jumphost systemd[1]: Started System Logger Daemon.

Additional info:
Nothing else is logged anywhere. Playing with service startup order showed that adding a dependency to network.service and network.target in /usr/lib/systemd/system/syslog-ng.service resolves the issue, though that might not be the ideal solution.

Comment 1 Thomas Spear 2016-11-22 23:37:32 UTC
I can confirm the same on CentOS 7 using EPEL-provided packages.

One server is producing this issue, while another is not.

The former is configured to receive logs from other hosts, the latter is configured to send them. Both are running CentOS 7 with the EPEL-provided packages.

Both have journald configured to persistently save the journal, and syslog-ng configured to copy the syslog messages from the journal to /var/log/messages.

This is explicitly configured this way to facilitate remote storage of system logs, as journald does not currently support that feature.

Comment 2 Thomas Spear 2016-11-22 23:45:01 UTC
Created attachment 1222902 [details]
Proposed patch

Adds "After=network.target" to the service file

Comment 3 Troy Dawson 2024-07-08 22:22:11 UTC
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.