Bug 1309345 - syslog-ng fails to start on boot
Summary: syslog-ng fails to start on boot
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: syslog-ng
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jose Pedro Oliveira
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-17 14:28 UTC by Emma Laurijssens
Modified: 2016-11-22 23:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Proposed patch (275 bytes, patch)
2016-11-22 23:45 UTC, Thomas Spear
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.