liske / needrestart

Restart daemons after library updates.
GNU General Public License v2.0
426 stars 67 forks source link

false-positive graylog-server #237

Closed smutel closed 2 years ago

smutel commented 2 years ago

Needrestart is telling that graylog-server needs to be restarted.
I restarted but the alert is still there.

Here is the log:

needrestart -v -b                                                             
[main] eval /etc/needrestart/needrestart.conf
[main] needrestart v3.4                                                                                  
[main] running in root mode              
[main] systemd detected                     
[main] vm detected                              
NEEDRESTART-VER: 3.4
[Core] #513 is a NeedRestart::Interp::Python
[Python] #513: source=/usr/share/unattended-upgrades/unattended-upgrade-shutdown
[main] #872 uses deleted /var/lib/graylog-server/.cache/JNA/temp/jna9813714574390699375.tmp
[main] #872 is a child of #518                                                                           
[main] #518 exe => /usr/bin/dash
[main] #518 is graylog-server.service                                                                    
[main] inside container or vm, skipping microcode checks
[Kernel] Linux: kernel release 4.19.0-18-amd64, kernel version #1 SMP Debian 4.19.208-1 (2021-09-29)
[Kernel/Linux] /boot/vmlinuz-4.19.0-18-amd64 => 4.19.0-18-amd64 (debian-kernel@lists.debian.org) #1 SMP Debian 4.19.208-1 (2021-09-29) [4.19.0-18-amd64]*
[Kernel/Linux] /boot/vmlinuz-4.19.0-17-amd64 => 4.19.0-17-amd64 (debian-kernel@lists.debian.org) #1 SMP Debian 4.19.194-3 (2021-07-18) [4.19.0-17-amd64]
[Kernel/Linux] Expected linux version: 4.19.0-18-amd64                
NEEDRESTART-KCUR: 4.19.0-18-amd64
NEEDRESTART-KEXP: 4.19.0-18-amd64 
NEEDRESTART-KSTA: 1
NEEDRESTART-SVC: graylog-server.service
liske commented 2 years ago

Newer releases of needrestart are ignoring those JNA mappings by default. You could add the appropriate regex to blacklist_mappings (see also 1b9eaf7c72be15baa62d5abbdd0d87ca6dc230c7).

smutel commented 2 years ago

Thanks @liske