non persistent logging after cleaning log files on disk
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | rsyslog (Ubuntu) |
High
|
Martin Pitt | ||
Bug Description
Using current vivid with systemd init, I've cleaned the log on disk (*.log syslog dmesg) and rebooted my test box, since then it stopped logging to syslog.
journalctl has the log from the current boot but not from previous ones
the behaviour there is a bit confusing, I first though that I would get a fresh syslog on next boot and not an auto conversion to use journald, then the journal should keep record from previous boots as well...
Related branches
| Martin Pitt (pitti) wrote : | #2 |
rsyslog's postinst seems fine. I have a gut feeling that this is due to /usr/lib/
| affects: | rsyslog (Ubuntu) → systemd (Ubuntu) |
| Martin Pitt (pitti) wrote : | #3 |
Ah, our rsyslog has a delta, so let's stick a matching tmpfiles.d/ snippet into rsyslog.
| affects: | systemd (Ubuntu) → rsyslog (Ubuntu) |
| Changed in rsyslog (Ubuntu): | |
| assignee: | nobody → Martin Pitt (pitti) |
| status: | New → In Progress |
| Changed in rsyslog (Ubuntu): | |
| importance: | Undecided → High |
| status: | In Progress → Fix Committed |
| tags: | added: systemd-boot |
| Didier Roche (didrocks) wrote : | #4 |
Note that the bug will still be present under upstart, but nothing new, for reference: http://
| Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package rsyslog - 7.4.4-1ubuntu12
---------------
rsyslog (7.4.4-1ubuntu12) vivid; urgency=medium
* Install debian/
group can write into /var/log/. (LP: #1401984)
-- Martin Pitt <email address hidden> Tue, 16 Dec 2014 14:33:34 +0100
| Changed in rsyslog (Ubuntu): | |
| status: | Fix Committed → Fix Released |


Actually, this is not a systemd behavior but seems to be a syslog one.
1. rm /var/log/syslog
2. reboot
-> no log (under systemd or upstart)
3. touch /var/log/syslog
4. chmod syslog:adm /var/log/syslog
5. reboot
-> logs availables
The cause is that /var/log is 755 and root:syslog (I wonder why it's in syslog group as it's not 775?), and so can't recreate the file.
If I chmod syslog, indeed, /var/log/syslog is created, but with other rights, being syslog:syslog instead of syslog:adm.
So, it worths more discussion (retargetting to syslog), pinging Martin on this.