| Summary: | rsyslog starts, runs, does not log into /var/log/(etc) | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | jim l <jiml> |
| Component: | RPM Packages | Assignee: | Chris Denice <eatdirt> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | doktor5000, eatdirt, mageia, mageia, marja11, warrendiogenese |
| Version: | 5 | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| See Also: |
https://bugs.mageia.org/show_bug.cgi?id=16263 https://bugs.mageia.org/show_bug.cgi?id=20712 |
||
| Whiteboard: | |||
| Source RPM: | rsyslog-8.4.2-6.mga5.src.rpm | CVE: | |
| Status comment: | |||
|
Description
jim l
2015-08-23 20:39:21 CEST
Marja Van Waes
2015-08-24 14:41:23 CEST
CC:
sysadmin-bugs =>
mageia, marja11, warrendiogenese @Chris: IIRC you added some of the glue for forwarding journal messages to rsyslog, would be nice if you could take a look. Some more details also in the relevant forums thread: https://forums.mageia.org/en/viewtopic.php?f=7&t=10144 Thanks in advance. CC:
(none) =>
dirteat, doktor5000 yes sure, just wait a bit, I am off till the end of the month. Cheers. No haste :) FWIW, after Jim explicitly added ForwardToSyslog=yes (wasn't present before) it worked again. But this whole thing seems pretty flaky (see also e.g. https://bugs.mageia.org/show_bug.cgi?id=16263 ) and it should also be clearly documented or enforced if e.g. rsyslog-journald is required for forwarding or not. See Also:
(none) =>
https://bugs.mageia.org/show_bug.cgi?id=16263 Ok, I have checked. There is indeed a bug in the *upgrade* of the rsyslog package that affects only the transition from mga4 to mga5. As Jim found by himself, the option ForwardToSyslog should be now set to yet in /etc/systemd/journald.conf to allow rsyslog (and other syslog) grabbing the logs. This is taken care automatically if you *install* rsyslog; and that option is reverted to default no when you uninstall rsyslog. So, for those hitting this bug, the simplest fix is simply to uninstall and reinstall rsyslog. NB: syslog-ng is affected in the same way. Uninstalling and reinstalling it will fix the issue. Thanks for the feedback :) (In reply to Florian Hubold from comment #3) > and it should also be > clearly documented or enforced if e.g. rsyslog-journald is required for > forwarding or not. Chris, can you verify if that package is required nowadays for forwarding journal messages to rsyslog? Colin's comment https://bugs.mageia.org/show_bug.cgi?id=16263#c7 seems to indicate this would be the case since systemd >= 216 but I'd like to get a definitive statement about this. If yes, wouldn't it make sense to simply add a Requires on rsyslog-journald for rsyslog? Related question, if rsyslog-journald is not mandatory for forwarding, what _is_ the actual purpose of that package? I'd be curious to know that one. No rsyslog-journald is another package. It allows rsyslog to directly grab logs from systemd (so it should work without even specifying forwarding=yes). I tested it for mga4 and it suffered the issues mentioned in the description: Description : Provides the ability to import structured log messages from systemd journal to rsyslog (and conversely). Note that this module reads the journal database, what is considered a relativly performance-intense operation. As such, the performance of a configuration utilizing this module may be notably slower. Some versions of systemd journal have problems with database corruption, which leads to the journal to return the same data endlessly in a thight loop. It is strongly recommended to use this plugin only if there is hard need to do so. I packaged it hoping that this issue will be fix at some point; but the normal method to use rsyslog is the one already implemented in the rsyslog package, namely with forwarding=yes in systemd. The only bugs with the packages rsyslog and syslog-ng is that the %post script is not executed during distro upgrade and I don't understand why. If someone has an idea, please post it! Since this bug affects only the transition mga4->mga5, no one added any info on how this should happen and I have no clue how it happened knowing that the package works as expected, I am closing it as WONTFIX. Of course, if someone has an idea, please reopen it and post some comments here, as it is likely that this will happen again from mga5->mga6. I am inclined to think that the installer switches off the post scriplet, is that possible? Cheers. Status:
NEW =>
RESOLVED
Bruno Cornec
2017-04-21 12:33:02 CEST
See Also:
(none) =>
https://bugs.mageia.org/show_bug.cgi?id=20712 |