Bug #7389
closedSyslog fails to restart due bad line in syslog-ng.conf
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.
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
@"?
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
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.
Updated by Jonathan CLARKE almost 9 years ago
- Status changed from New to In progress
- Assignee set to Jonathan CLARKE
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
Updated by Jonathan CLARKE almost 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-techniques|25ef145a64d914ea567576106b77c30d01cc99d5.
Updated by Benoît PECCATTE almost 9 years ago
Applied in changeset rudder-techniques|48fb15cc783151bc07679091d819bd5d386eaa82.
Updated by Vincent MEMBRÉ almost 9 years ago
- Category changed from Techniques to System techniques
Updated by Vincent MEMBRÉ almost 9 years ago
- Status changed from Pending release to Released