systemd vacuuming does not work for remote journals
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| systemd (Ubuntu) |
Low
|
Unassigned | ||
| Xenial |
Low
|
Dan Streetman | ||
| Bionic |
Low
|
Dan Streetman | ||
| Disco |
Low
|
Unassigned | ||
| Eoan |
Low
|
Dan Streetman |
Bug Description
[impact]
attempting to vacuum journals using -D with the 'root' (in journald terms) journal directory fails to perform any vacuuming. This can lead to journal files continually increasing in size and filling up the filesystem.
[test case]
see original description below.
[regession potential]
this removes a check in the code when iterating journal directories during vacuuming, so any regression would likely occur during vacuuming, possibly causing failure to vacuum.
[scope]
this is fixed upstream by commit c488660e6edb3c1
[original description]
systemd has an issue in regard to vacuuming remote journals: https:/
Steps to reproduce on "Description: Ubuntu 18.04.3 LTS":
root@1:~# du -hs /var/log/
8.6G /var/log/
root@1:~# journalctl -D /var/log/
root@1:~# du -hs /var/log/
8.6G /var/log/
Would it be possible to backport this trivial patch https:/
Balint Reczey (rbalint) wrote : | #1 |
Changed in systemd (Ubuntu): | |
status: | New → Fix Released |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Disco): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Eoan): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu): | |
importance: | Undecided → Low |
Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in systemd (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in systemd (Ubuntu Disco): | |
status: | New → Confirmed |
Changed in systemd (Ubuntu Eoan): | |
status: | New → Confirmed |
Changed in systemd (Ubuntu Disco): | |
status: | Confirmed → Won't Fix |
Dan Streetman (ddstreet) wrote : | #5 |
I would disagree that this is minor, having log files fill up a filesystem and being unable to vacuum to reduce their size seems important to me, especially when considering the simplicity of the patch.
description: | updated |
Changed in systemd (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Bionic): | |
status: | Confirmed → In Progress |
Changed in systemd (Ubuntu Eoan): | |
status: | Confirmed → In Progress |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Xenial): | |
assignee: | nobody → Dan Streetman (ddstreet) |
importance: | Undecided → Low |
Hello Kai, or anyone else affected,
Accepted systemd into eoan-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Changed in systemd (Ubuntu Eoan): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed verification-needed-eoan |
Łukasz Zemczak (sil2100) wrote : | #7 |
Hello Kai, or anyone else affected,
Accepted systemd into bionic-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Changed in systemd (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed-bionic |
All autopkgtests for the newly accepted systemd (242-7ubuntu3.8) for eoan have finished running.
The following regressions have been reported in tests triggered by the package:
systemd/
prometheus-
gnome-desktop3/
openssh/
snapd/2.42.1+19.10 (i386)
udisks2/unknown (armhf)
umockdev/0.13.2-1 (armhf)
sks/unknown (armhf)
network-
asterisk/unknown (armhf)
logrotate/unknown (armhf)
lxc/3.0.4-0ubuntu1 (i386)
netplan.
dbus/unknown (armhf)
gvfs/1.
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUp
https:/
[1] https:/
Thank you!
All autopkgtests for the newly accepted systemd (237-3ubuntu10.40) for bionic have finished running.
The following regressions have been reported in tests triggered by the package:
gvfs/1.
prometheus-
systemd/
umockdev/0.11.1-1 (armhf)
linux-hwe-
kde4libs/
util-linux/unknown (armhf)
nftables/unknown (armhf)
linux-raspi2-
netplan.
openssh/
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUp
https:/
[1] https:/
Thank you!
Kai Bojens (starborn) wrote : | #10 |
systemd 237-3ubuntu10.40 in bonic fixed the bug for me:
"Vacuuming done, freed 19.1G of archived journals from /var/log/
tags: |
added: verification-done-bionic removed: verification-needed-bionic |
Hello Kai, or anyone else affected,
Accepted systemd into xenial-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Changed in systemd (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed-xenial |
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (systemd/229-4ubuntu21.28) | #12 |
All autopkgtests for the newly accepted systemd (229-4ubuntu21.28) for xenial have finished running.
The following regressions have been reported in tests triggered by the package:
udisks2/
multipath-
nplan/0.32~16.04.7 (amd64)
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUp
https:/
[1] https:/
Thank you!
Dan Streetman (ddstreet) wrote : | #13 |
eoan:
ubuntu@
ii systemd 242-7ubuntu3.7 amd64 system and service manager
ubuntu@
273M /var/log/
ubuntu@
ubuntu@
273M /var/log/
ubuntu@
ii systemd 242-7ubuntu3.8 amd64 system and service manager
ubuntu@
273M /var/log/
ubuntu@
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archive...
tags: |
added: verification-done-eoan removed: verification-needed-eoan |
Dan Streetman (ddstreet) wrote : | #14 |
bionic:
ubuntu@
ii systemd 237-3ubuntu10.39 amd64 system and service manager
ubuntu@
417M /var/log/
ubuntu@
ubuntu@
417M /var/log/
ubuntu@
ii systemd 237-3ubuntu10.40 amd64 system and service manager
ubuntu@
417M /var/log/
ubuntu@
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Vacuuming done, freed 384.0M of archived journals from /var/log/
ubuntu@
33M /var/log/
Dan Streetman (ddstreet) wrote : | #15 |
sorry, i missed that it was already verified for bionic
Dan Streetman (ddstreet) wrote : | #16 |
xenial:
ubuntu@
ii systemd 229-4ubuntu21.27 amd64 system and service manager
ubuntu@
65M /var/log/
ubuntu@
ubuntu@
65M /var/log/
ubuntu@
ii systemd 229-4ubuntu21.28 amd64 system and service manager
ubuntu@
65M /var/log/
ubuntu@
Deleted archived journal /var/log/
Deleted archived journal /var/log/
Vacuuming done, freed 16.0M of archived journals on disk.
ubuntu@
49M /var/log/
tags: |
added: verification-done verification-done-xenial removed: verification-needed verification-needed-xenial |
Launchpad Janitor (janitor) wrote : | #17 |
This bug was fixed in the package systemd - 242-7ubuntu3.8
---------------
systemd (242-7ubuntu3.8) eoan; urgency=medium
* d/t/logind: skip if nonexistent /sys/power/state (LP: #1862657)
* d/p/lp1859862-
- enable ipv6 when needed (LP: #1859862)
* d/p/lp1858412-
- allow vacuuming journal 'root' dir (LP: #1858412)
* d/rules: use meson --print-errorlogs instead of cat testlog
- (LP: #1870811)
* d/p/lp1776654-
- sync journal before reading from it (LP: #1776654)
* d/p/lp1837914-
- do not crash if NULL passted to journal destructor (LP: #1837914)
* d/e/initramfs-
- Follow symlinks when finding link files to copy into initramfs
(LP: #1868892)
-- Dan Streetman <email address hidden> Mon, 20 Apr 2020 09:44:51 -0400
Changed in systemd (Ubuntu Eoan): | |
status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for systemd has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Launchpad Janitor (janitor) wrote : | #19 |
This bug was fixed in the package systemd - 237-3ubuntu10.40
---------------
systemd (237-3ubuntu10.40) bionic; urgency=medium
* d/t/logind: skip if nonexistent /sys/power/state (LP: #1862657)
* d/p/lp1839290-
- when restarting service after failure, replace existing queued jobs
(LP: #1839290)
* d/p/lp1867421-
- fix resolution of IntelliMouse (LP: #1867421)
* d/p/lp1858412-
- allow vacuuming journal 'root' dir (LP: #1858412)
* d/p/lp1862232/
d/p/
d/p/
d/p/
d/p/
d/p/
d/p/
- do not fail network setup if hostname is not valid (LP: #1862232)
* d/t/systemd-fsckd: Skip test on arm64 (LP: #1870194)
* d/p/lp1870589-
- fix test-seccomp failure (LP: #1870589)
* d/rules: use meson --print-errorlogs instead of cat testlog
- (LP: #1870811)
* d/p/lp1776654-
- sync journal before reading from it (LP: #1776654)
* d/p/lp1837914-
- do not crash if NULL passted to journal destructor (LP: #1837914)
* d/e/initramfs-
- Follow symlinks when finding link files to copy into initramfs
(LP: #1868892)
-- Dan Streetman <email address hidden> Mon, 20 Apr 2020 10:12:49 -0400
Changed in systemd (Ubuntu Bionic): | |
status: | Fix Committed → Fix Released |
Launchpad Janitor (janitor) wrote : | #20 |
This bug was fixed in the package systemd - 229-4ubuntu21.28
---------------
systemd (229-4ubuntu21.28) xenial; urgency=medium
* d/t/logind: skip if nonexistent /sys/power/state (LP: #1862657)
* d/p/lp1839290-
- when restarting service after failure, replace existing queued jobs
(LP: #1839290)
* d/t/storage:
- fix buggy test (LP: #1831459)
- without scsi_debug, skip test (LP: #1847816)
* d/p/lp1867421-
- fix resolution of IntelliMouse (LP: #1867421)
* d/p/lp1858412-
- allow vacuuming journal 'root' dir (LP: #1858412)
* d/p/lp1862232-
- do not let invalid hostname break dhcpv4 (LP: #1862232)
* d/t/systemd-fsckd: Skip test on arm64 (LP: #1870194)
* d/p/lp1837914-
- do not crash if NULL passted to journal destructor (LP: #1837914)
* d/e/initramfs-
- Follow symlinks when finding link files to copy into initramfs
(LP: #1868892)
-- Dan Streetman <email address hidden> Mon, 20 Apr 2020 10:17:40 -0400
Changed in systemd (Ubuntu Xenial): | |
status: | Fix Committed → Fix Released |
Fixed in v244, I think hits is a minor issue that does not seem to warrant a backport.