Linux not shutting down

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
CygXanadu
Level 2
Level 2
Posts: 57
Joined: Sun Nov 24, 2019 6:33 pm

Re: Linux not shutting down

Post by CygXanadu »

karlchen wrote:
Sat Feb 22, 2020 10:12 am
Hello, CygXanadu.

Thank you for trying to capture the output of "journalctl -b -1 -r". :)
Sadly, I have to tell you that 57 lines are not sufficient. :(

Telling from my own systems, I can tell state that systemd writes between 200 and 300 lines,
+ between the time where it says, systemd-logind[799]: System is powering down.
+ and the final line where it says, systemd-journald[381]: Journal stopped

As a consequence, I cannot find anything in the 57 final lines which give a hint why the system should not power off.

In my previous post I had mentioned a timespan of 90 seconds, because this is the default timeout, which systemd will wait before killing a process which refuses to terminate cleanly.
Waiting for more than 90 seconds while staring at the Mint logo will appear like an eternity.

How long do you really wait before pressing the power button for 5 seconds thus interrupting the power supply?

I suggest next time you notice shutdown takes long, press the ESC key while the Mint Logo is on the screen.
This should make the messages displayed "behind the curtain" visible.
What does systemd tell?
What is the final message which you read?
(If you can, then you might take a picture of this final screen. It might be helpful, provided the messages are readable.)

If you take the time to wait for let us say 3 minutes, does the machine power off itself?

Best regards,
Karl
cygxanadu@cygxanadu-p7-1142:~$ journal -b -1 -r

Command 'journal' not found, did you mean:

command 'xournal' from deb xournal

Try: sudo apt install <deb name>

cygxanadu@cygxanadu-p7-1142:~$ journalctl -b -1 -r
-- Logs begin at Thu 2020-02-20 12:14:14 MST, end at Tue 2020-02-25 00:04:44 MST
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-journald[429]: Journal stopped
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-shutdown[1]: Sending SIGTERM to remain
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-shutdown[1]: Syncing filesystems and b
Feb 24 23:53:48 cygxanadu-p7-1142 kernel: printk: systemd-shutdow: 35 output lin
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Shutting down.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Starting Power-Off...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Final Step.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Started Shuts down the "live" prei
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Starting Shuts down the "live" pre
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Shutdown.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Remount Root and Kernel Fi
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Unmount All Filesys
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Deactivated swap /swapfile.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Deactivating swap /swapfile...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Swap.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Monitoring of LVM2 mirror
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Create Static Device Nodes
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Local File Systems
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounted /run/user/1000.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Removed slice system-systemd\x2dfs
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped File System Check on /dev/
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounted /boot/efi.
lines 1-23...skipping...
-- Logs begin at Thu 2020-02-20 12:14:14 MST, end at Tue 2020-02-25 00:04:44 MST. --
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-journald[429]: Journal stopped
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-shutdown[1]: Syncing filesystems and block devices.
Feb 24 23:53:48 cygxanadu-p7-1142 kernel: printk: systemd-shutdow: 35 output lines suppressed due to ratelimiting
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Shutting down.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Starting Power-Off...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Final Step.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Started Shuts down the "live" preinstalled system cleanly.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Starting Shuts down the "live" preinstalled system cleanly...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Shutdown.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Remount Root and Kernel File Systems.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Unmount All Filesystems.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Deactivated swap /swapfile.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Deactivating swap /swapfile...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Swap.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Create Static Device Nodes in /dev.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Local File Systems (Pre).
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounted /run/user/1000.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Removed slice system-systemd\x2dfsck.slice.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped File System Check on /dev/disk/by-uuid/C844-D0F0.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounted /boot/efi.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounting /run/user/1000...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounting /boot/efi...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Local File Systems.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Create Volatile Files and Directories.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Update UTMP about System Boot/Shutdown.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Load/Save Random Seed.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Network Time Synchronization.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target User and Group Name Lookups.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Load Kernel Modules.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Apply Kernel Variables.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Update UTMP about System Boot/Shutdown...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Load/Save Random Seed...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Local Encrypted Volumes.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Network Time Synchronization...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target System Initialization.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed CUPS Scheduler.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed D-Bus System Message Bus Socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed ACPID Listen Socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed Syslog Socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed UUID daemon activation socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed Avahi mDNS/DNS-SD Stack Activation Socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Sockets.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Removed slice User and Session Slice.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Slices.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Forward Password Requests to Plymouth Directory Watch.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped ACPI Events Check.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped CUPS Scheduler.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Paths.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Basic System.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Login Service.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Raise network interfaces.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped D-Bus System Message Bus.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping D-Bus System Message Bus...
lines 1-57
this what I see again after waiting 5 mins.

CygXanadu
Level 2
Level 2
Posts: 57
Joined: Sun Nov 24, 2019 6:33 pm

Re: Linux not shutting down

Post by CygXanadu »

CygXanadu wrote:
Tue Feb 25, 2020 3:09 am
karlchen wrote:
Sat Feb 22, 2020 10:12 am
Hello, CygXanadu.

Thank you for trying to capture the output of "journalctl -b -1 -r". :)
Sadly, I have to tell you that 57 lines are not sufficient. :(

Telling from my own systems, I can tell state that systemd writes between 200 and 300 lines,
+ between the time where it says, systemd-logind[799]: System is powering down.
+ and the final line where it says, systemd-journald[381]: Journal stopped

As a consequence, I cannot find anything in the 57 final lines which give a hint why the system should not power off.

In my previous post I had mentioned a timespan of 90 seconds, because this is the default timeout, which systemd will wait before killing a process which refuses to terminate cleanly.
Waiting for more than 90 seconds while staring at the Mint logo will appear like an eternity.

How long do you really wait before pressing the power button for 5 seconds thus interrupting the power supply?

I suggest next time you notice shutdown takes long, press the ESC key while the Mint Logo is on the screen.
This should make the messages displayed "behind the curtain" visible.
What does systemd tell?
What is the final message which you read?
(If you can, then you might take a picture of this final screen. It might be helpful, provided the messages are readable.)

If you take the time to wait for let us say 3 minutes, does the machine power off itself?

Best regards,
Karl
cygxanadu@cygxanadu-p7-1142:~$ journal -b -1 -r

Command 'journal' not found, did you mean:

command 'xournal' from deb xournal

Try: sudo apt install <deb name>

cygxanadu@cygxanadu-p7-1142:~$ journalctl -b -1 -r
-- Logs begin at Thu 2020-02-20 12:14:14 MST, end at Tue 2020-02-25 00:04:44 MST
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-journald[429]: Journal stopped
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-shutdown[1]: Sending SIGTERM to remain
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-shutdown[1]: Syncing filesystems and b
Feb 24 23:53:48 cygxanadu-p7-1142 kernel: printk: systemd-shutdow: 35 output lin
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Shutting down.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Starting Power-Off...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Final Step.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Started Shuts down the "live" prei
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Starting Shuts down the "live" pre
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Shutdown.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Remount Root and Kernel Fi
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Unmount All Filesys
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Deactivated swap /swapfile.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Deactivating swap /swapfile...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Swap.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Monitoring of LVM2 mirror
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Create Static Device Nodes
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Local File Systems
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounted /run/user/1000.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Removed slice system-systemd\x2dfs
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped File System Check on /dev/
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounted /boot/efi.
lines 1-23...skipping...
-- Logs begin at Thu 2020-02-20 12:14:14 MST, end at Tue 2020-02-25 00:04:44 MST. --
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-journald[429]: Journal stopped
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd-shutdown[1]: Syncing filesystems and block devices.
Feb 24 23:53:48 cygxanadu-p7-1142 kernel: printk: systemd-shutdow: 35 output lines suppressed due to ratelimiting
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Shutting down.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Starting Power-Off...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Final Step.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Started Shuts down the "live" preinstalled system cleanly.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Starting Shuts down the "live" preinstalled system cleanly...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Shutdown.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Remount Root and Kernel File Systems.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Reached target Unmount All Filesystems.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Deactivated swap /swapfile.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Deactivating swap /swapfile...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Swap.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Create Static Device Nodes in /dev.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Local File Systems (Pre).
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounted /run/user/1000.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Removed slice system-systemd\x2dfsck.slice.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped File System Check on /dev/disk/by-uuid/C844-D0F0.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounted /boot/efi.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounting /run/user/1000...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Unmounting /boot/efi...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Local File Systems.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Create Volatile Files and Directories.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Update UTMP about System Boot/Shutdown.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Load/Save Random Seed.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Network Time Synchronization.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target User and Group Name Lookups.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Load Kernel Modules.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Apply Kernel Variables.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Update UTMP about System Boot/Shutdown...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Load/Save Random Seed...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Local Encrypted Volumes.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping Network Time Synchronization...
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target System Initialization.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed CUPS Scheduler.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed D-Bus System Message Bus Socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed ACPID Listen Socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed Syslog Socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed UUID daemon activation socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Closed Avahi mDNS/DNS-SD Stack Activation Socket.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Sockets.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Removed slice User and Session Slice.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Slices.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Forward Password Requests to Plymouth Directory Watch.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped ACPI Events Check.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped CUPS Scheduler.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Paths.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped target Basic System.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Login Service.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped Raise network interfaces.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopped D-Bus System Message Bus.
Feb 24 23:53:48 cygxanadu-p7-1142 systemd[1]: Stopping D-Bus System Message Bus...
lines 1-57
this what I see again after waiting 5 mins.
I left it for over 30 mins it never shutdown.

asinoro
Level 5
Level 5
Posts: 618
Joined: Mon Feb 12, 2018 11:43 am

Re: Linux not shutting down

Post by asinoro »

To get better help run this command at the terminal and post it by copy and paste between the code tags selecting the button with the symbol </> at the menu, which will look like this command.

Code: Select all

inxi -Fxxxrz

Post Reply

Return to “Cinnamon”