Unable to shutdown OS, but rebooting is ok

ChewAhSoon

Cadet
Joined
Jul 14, 2023
Messages
7
Hi All,

New to truenas scale and have gotten it install and testing for a few weeks. One gripe I had is that I cant seem to properly shutdown the OS, either from the GUI interface at the top right hand corner or entering in the shell the following:
Code:
sudo shutdown -P now


There are no error messages, I can see that when connected to a monitor, all the logs stop appearing and the screen became blank, and yet the fans are still spinning and light is still on. I could either hold the power button to force it to turn off or turn off the PSU switch at this point.

Oddly, if I were to reboot it from the GUI interface. No issues, it reboots fine.

May I know if I can troubleshoot this with any logs?

My system specs in my signature below.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
if you use midclt call system.shutdown instead, it will do what's being done by the GUI shutdown function instead of a hard OS stop with no middleware awareness.
 
Joined
Jun 15, 2022
Messages
674
Are you running anything other than vanillia TrueNAS on bare metal?
 
Last edited:

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Hello @ChewAhSoon

Do you know if you're booting in BIOS or EFI mode? Your motherboard is listed as "generic B75" in your signature, so it's possible that it might have an incomplete EFI implementation - we saw this surface as similar symptoms with CORE 13 users, but I see you've posted in the SCALE forum.

If that's the case, there may be a kernel parameter we can pass to tell the Linux kernel to use a legacy power off method instead.
 

ChewAhSoon

Cadet
Joined
Jul 14, 2023
Messages
7
if you use midclt call system.shutdown instead, it will do what's being done by the GUI shutdown function instead of a hard OS stop with no middleware awareness.
Yes with this command I get the same behavior of getting stuck.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
OK so your next steps will be to answer @HoneyBadger and see if you can work out what's blocking it.
 

ChewAhSoon

Cadet
Joined
Jul 14, 2023
Messages
7
Hello @ChewAhSoon

Do you know if you're booting in BIOS or EFI mode? Your motherboard is listed as "generic B75" in your signature, so it's possible that it might have an incomplete EFI implementation - we saw this surface as similar symptoms with CORE 13 users, but I see you've posted in the SCALE forum.

If that's the case, there may be a kernel parameter we can pass to tell the Linux kernel to use a legacy power off method instead.
Thank you. I am on EFI mode. Will test and get back.
 

ChewAhSoon

Cadet
Joined
Jul 14, 2023
Messages
7
Hi All, would like to confirm that changing to legacy mode did not fix the issue.

While I am booting the SSD over USB, I have also verified by plugging in direct to the motherboard sata header and still having the same problem.
 
Top