Project

General

Profile

Actions

Bug #7389

closed

Syslog fails to restart due bad line in syslog-ng.conf

Added by Janos Mattyasovszky about 9 years ago. Updated almost 9 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

During an OS-Update an agent was not disabled, and it somehow wrote a bad line into the config file:

server:~ # grep syslog_ng /etc/syslog-ng/syslog-ng.conf.2015_10_25_141708
${syslog_ng_conf}
server:~ #

This is very similar to Bug #3107, however, the parenthesis is different, in that Bug a fix was introduced to remove "\$\(syslog_ng_conf\)" via "bundle edit_line edit_syslog_conf_file".

We have had "${syslog_ng_conf}" in our config.

Investigations are still ongoing, how this could happen.


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #3107: On Rudder 2.4.0, the reports on the nodes with syslog-ng aren't send to the server since syslog-ng can't be startedReleased2012-12-26Actions
Actions #1

Updated by Jonathan CLARKE about 9 years ago

That is rather odd, indeed. I can't see why this would happen from reading the code.

A couple of questions to help us understand:

  • Do you by any chance also have /etc/rsyslog.conf or /etc/syslog.conf files on that machine?
  • Could you find the logs the rudder-agent sent from that around that time that contain "@Log system for reports@"?
Actions #2

Updated by Jonathan CLARKE almost 9 years ago

  • Related to Bug #3107: On Rudder 2.4.0, the reports on the nodes with syslog-ng aren't send to the server since syslog-ng can't be started added
Actions #3

Updated by Jonathan CLARKE almost 9 years ago

  • Target version set to 2.10.20

I really don't see how this happened, but we can at least add a similar workaround to #3107 and delete that line if it appears too. This way, the problem will be temporary and automatically get fixed rather than hang around...

If you do figure any more out about how this happened, please let us know.

Actions #4

Updated by Jonathan CLARKE almost 9 years ago

  • Status changed from New to In progress
  • Assignee set to Jonathan CLARKE
Actions #5

Updated by Jonathan CLARKE almost 9 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/790
Actions #6

Updated by Jonathan CLARKE almost 9 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #8

Updated by Vincent MEMBRÉ almost 9 years ago

  • Category changed from Techniques to System techniques
Actions #9

Updated by Vincent MEMBRÉ almost 9 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.20, 2.11.17, 3.0.12 and 3.1.5 which were released today.

Actions

Also available in: Atom PDF