Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1005953: needrestart: user session restart needing detection broken probably by cgroupv2 from systemd 247.2-4

42 views
Skip to first unread message

Paul Wise

unread,
Feb 17, 2022, 8:50:03 PM2/17/22
to
Package: needrestart
Version: 3.5-5
Severity: serious
X-Debbugs-CC: sys...@packages.debian.org
User: pkg-systemd...@lists.alioth.debian.org
Usertags: cgroupv2

needrestart detects that us...@1000.service needs to be restarted,
instead of that the pabs user sessions have outdated binaries.

The session detection definitely used to work at one point though.

I've filed this at severity serious because it means that the user
notification scripts in the needrestart package don't work, which means
the needrestar-session package is not very useful any more.

Looking at my mail archives, that started 2021-01-07 12:27 and in the
upgrade before that systemd was upgraded from 247.1-3+deb11u1 to
systemd 247.2-4, so that was probably the cause.

Aside from the minor new upstream version, systemd 247.2-4 moved some
libraries from /lib to /usr/lib.

systemd upstream seems to have deleted their 247.2 git tag and there is
no reference to it in their NEWS files.

Looking at the Debian NEWS file, systemd 247.2-2 switched to cgroupv2,
so I think that is probably the cause of this bug.

I will test this theory next time I reboot.

-- System Information:
Debian Release: bookworm/sid
APT prefers testing-debug
APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages needrestart depends on:
ii binutils 2.38-1
ii dpkg 1.21.1
ii gettext-base 0.21-4
ii libintl-perl 1.26-3
ii libmodule-find-perl 0.15-1
ii libmodule-scandeps-perl 1.31-1
ii libproc-processtable-perl 0.634-1+b1
ii libsort-naturally-perl 1.03-2
ii libterm-readkey-perl 2.38-1+b3
ii perl 5.34.0-3
ii xz-utils 5.2.5-2

Versions of packages needrestart recommends:
ii libpam-systemd 250.3-2

Versions of packages needrestart suggests:
ii iucode-tool 2.3.1-1
ii libnotify-bin 0.7.9-3
ii needrestart-session 0.3-9

-- no debconf information

--
bye,
pabs

https://wiki.debian.org/PaulWise
signature.asc

Paul Wise

unread,
May 17, 2022, 2:00:04 AM5/17/22
to
Control: tags -1 + fixed-upstream
Control: forwarded -1 https://github.com/liske/needrestart/commit/29fcd57cd89a962bb94adbf116acd9a61036b6eb https://github.com/liske/needrestart/issues/213 https://github.com/liske/needrestart/issues/235

On Fri, 18 Feb 2022 09:42:03 +0800 Paul Wise wrote:

> needrestart detects that us...@1000.service needs to be restarted,
> instead of that the pabs user sessions have outdated binaries.

This has been fixed upstream and it looks like upstream will soon make
a new release 3.6 that fixes this issue. Please include the new release
in Debian unstable once the release has happened.

https://github.com/liske/needrestart/commits/master
signature.asc
0 new messages