Is it a known issue? Any known workaround? I suspect the recent kernel update but I’m not sure.
I’m using Fedora 42 with Cinnamon DE. Don’t think Cinnamon has any connection to this issue, but just FYI.
One time it finished shutdown after very very long wait. After that it’s stuck forever during shutdowns or I just loose my patience and hard-rebooting it before that very long time period is elapsed.
When reporting a problem, please provide enough detail to allow others to reproduce the issue. I suggest posting (as pre-formatted text using the </> button from the top line of the text entry panel) hardware details from running inxi -Fzxx in a terminal. Then run journalctl --no-hostname -b -1 scroll down to the and use timestamps to see if there are errors associated with the long delay (see man journalctl for explanations of the options). Here I see:
Apr 23 09:58:02 systemd-shutdown[1]: Syncing filesystems and block devices.
Apr 23 09:58:02 systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Apr 23 09:58:02 systemd-journald[614]: Received SIGTERM from PID 1 (systemd-shutdow).
Apr 23 09:58:02 systemd-journald[614]: Journal stopped
If you are using external devices (storage, RF dongles, etc), does the problem occur when non-essential devices are removed?
I waited a few minutes longer befor doing a long press on the power button, this all I have in the logs, from the time I’ve initiated the reboot using Cinnamon DE:
Also one time I tried doing reboot by running sudo reboot and it rebooted my system very quickly.
The time gap is between Apr 26 01:57:33 and Apr 26 02:02:03 when dnf5daemon-server started to log something related repositories sync during the reboot.
Could the following be also related to this issue fix of which was adopted by the dnfdragora package maintainer?
Will try restarting Fedora when dnfdragora-updater is not running.
Ok, I’ve tried to restart Fedora with Cinnamon DE several times when dnfdragora-updater is not running (I disabled it to be ran on startup) the original issue never happened.
So the root of this issue seems to be a bug in the dnf5daemon-server or in some other part of the DNF5 infrastructure that seems to be not interruptible (when it checks for new upgrades) during a graceful system shutdown. And the right fix should be just making it always interruptible.
Before the 2360093 issue was fixed the dnfdragora-updater was broken in Fedora 42 and was unable to initiate any periodic dnf check-upgrade. And before Fedora 42 dnfdragora worked with DNF4 and not with DNF5. Maybe now dnfdragora-updater does those checks too often but I think it’s not guilty in the current restart/shutdown stuck issue.