Bug 433525

Summary: Restart required notification at every login
Product: [Applications] Discover Reporter: Marco Ambu <marco.ambu>
Component: NotifierAssignee: Aleix Pol <aleixpol>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate, null, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.20.5   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of notification
attachment-14004-0.html

Description Marco Ambu 2021-02-24 08:31:43 UTC
SUMMARY
Every time a user logs in to plasma, the notification "Restart is required" is shown. However, restarting does not have any effect, nothing different than a normal restart happens and the notification is shown again.


STEPS TO REPRODUCE
1. Login to plasma
2. restart system as instructed by the notification
3. Login to plasma

OBSERVED RESULT
The notification that a restart is required is shown every time regardless the number of times I restart the system.

EXPECTED RESULT
The notification that a restart is required should only show up when a restart is really needed (or at least say why it is needed).

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Debian bullseye, kernel 5.10.0-3-amd64
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-02-25 04:15:34 UTC
This comes from Discover; moving there.
Comment 2 Aleix Pol 2021-02-26 02:35:41 UTC
That's weird, can you tell us what's the contents of the following file?
/var/lib/PackageKit/offline-update-competed

Also can you please show us a screenshot of the notification you see?
Comment 3 Marco Ambu 2021-02-26 08:50:24 UTC
Created attachment 136184 [details]
Screenshot of notification

$ cat /var/lib/PackageKit/offline-update-action 
power-off
Comment 4 Aleix Pol 2021-02-28 00:36:28 UTC
Discover never set this, this must be coming from another tool as we only ever set it to "reboot". Would you know what that could be?

Maybe you can check the date it was created (with ls -l) and we can infer where it's coming from.

Ultimately, if it's very old maybe you can consider just removing the file, it might have been a past bug in PackageKit.
Comment 5 Marco Ambu 2021-03-01 08:44:17 UTC
Created attachment 136275 [details]
attachment-14004-0.html

The file looks to be old. Not sure if we can guess which package created it
from the info below.
Anyway, I removed it manually and the notification has now gone.

$ ll /var/lib/PackageKit/offline-update-action
-rw-r--r-- 1 root root 9 Nov  6 16:36
/var/lib/PackageKit/offline-update-action
Comment 6 Bug Janitor Service 2021-03-16 04:33:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!