- Package:
- needrestart
- Source:
- needrestart
- Submitter:
- Antonio Terceiro
- Date:
- 2021-10-11 05:27:04 UTC
- Severity:
- normal
- Tags:
Dear Maintainer,
Recently every time I install something, needrestart seems to think that
rabbitmq-server needs to be restart, even when there were norelated
upgrades. I tried calling needrestart right after booting, and even then
it reported rabbitmq-server as needing a restart.
This can easily be reproduced in a clean testin VM:
----------------8<----------------8<----------------8<-----------------
root@host:~# apt update -q=2
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@host:~# apt install -q=2 -y needrestart
[...]
root@host:~# apt install -q=2 -y rabbitmq-server
[...]
Package configuration
┌────┤ Daemons using outdated libraries ├─────┐
│ │
│ │
│ Which services should be restarted? │
│ │
│ [*] rabbitmq-server.service │
│ │
│ │
│ <Ok> <Cancel> │
│ │
└─────────────────────────────────────────────┘
systemctl restart rabbitmq-server.service
No containers need to be restarted.
No user sessions are running outdated binaries.
----------------8<----------------8<----------------8<-----------------
Hi, could you please provide the output of `needrestart -lv`? TIA, Thomas
Hi, could you please provide the output of `needrestart -lv`? TIA, Thomas
Sure:----------------8<----------------8<----------------8<----------------- $ sudo needrestart -lv [main] eval /etc/needrestart/needrestart.conf [main] needrestart v3.5 [main] running in root mode [Core] Using UI 'NeedRestart::UI::stdio'... [main] systemd detected [main] #968 uses deleted /memfd:vmem [main] #968 is not a child [Core] #2617 is a NeedRestart::Interp::Python [Python] #2617: source=/home/terceiro/src/localslackirc/irc.py [Core] #65382 is a NeedRestart::Interp::Python [Python] #65382: source=/usr/bin/terminator [Core] #90184 is a NeedRestart::Interp::Python [Python] #90184: source=/usr/lib/python3/dist-packages/gbp/scripts/supercommand.py [Core] #90219 is a NeedRestart::Interp::Perl [Perl] #90219: source=/usr/bin/dpkg-buildpackage [Core] #90247 is a NeedRestart::Interp::Perl [Perl] #90247: source=/usr/bin/dh [Core] #90274 is a NeedRestart::Interp::Python [Python] #90274: source=/home/terceiro/src/debian/python/build-area/typeshed-0.0~git20211009.0142ea8.obsolete.1633904505.3296812/debian/install_stubs.py [Core] #92031 is a NeedRestart::Interp::Python [Python] #92031: source file not found, skipping [Python] #92031: reduced ARGV: install --system --target=debian/python3-typeshed/usr/lib/python3/dist-packages /tmp/tmpwowqtmgb/dist/types_httplib2-0.19.1-py3-none-any.whl [main] #968 exe => /usr/lib/erlang/erts-12.0.4/bin/beam.smp [main] trying systemctl status [main] #968 is rabbitmq-server.service Restarting services... Services to be restarted: Restart «rabbitmq-server.service»? [Ynas?] n Service restarts being deferred: systemctl restart rabbitmq-server.service No containers need to be restarted. No user sessions are running outdated binaries. ----------------8<----------------8<----------------8<-----------------
tags 995274 upstream fixed-upstream thanks Hi, thanks for the verbose output. This is due to anonymous file mapping /memfd (see also #988461). Has been already fixed upstream in needrestart 3.6+ [1]. [1] https://github.com/liske/needrestart/commit/6c87772bdc38091e9efbf4c59217fa502365dcf2#diff-5e347a5df78db1304c1f2f21e27bb9122a186cf9c772a32ccaa23b424aac21a3 Regards, Thomas