TS-431 hung on shutdown from SSH

Hello, I noticed when I send poweroff via ssh the nas doesn’t shut down. In the GUI I can see “ The system is stopping following processes” and freezes. Only way to proper shutdown is the power button or kill -9 -1.

The same when you poweroff via GUI ?

It will eventually shut down. It may take a while…

The GUI shutdown work fine, only console method has issues. Waiting is not an option, as initialy I left it overnight and it was still running in the morning…

Oh that isn’t right. Strange why it won’t shutdown from console…

Are you logged in as the “true” admin user?

Also, just to verify, you are running the “poweroff” command, not shutdown or something else?

You could try “/sbin/poweroff”. You could also try the “restart” command just to see if it cycles properly.

Lastly, take a look at the running processes to see what could be getting “stuck”. If kill -9 -1 works, then it sounds like a hung process or permission issue to me.

Never thought about how the OP may be using a different command. I’ve never used a shutdown command from the SSH shell. I’ve never had an issue with sudo reboot - in fact one time, it was the only way I could my NAS to reboot as CPU load was so high for some reason the webpage wouldn’t load.

Once or twice, when using the GUI, it was “stuck” shutting down so I did a kill -9 -1 to clear it and it continued to finish shutdown.

I’ve never tried a shutdown directly from SSH though.

1 Like

Additionally, if convenient, could you please try setting a “Scheduled Shutdown”? We would like to confirm whether the system shuts down normally when triggered by a schedule, or if it still gets stuck as you mentioned in your post.

Thanks!

Scheduled Shutdown is OK. SSH shutdown used to work but I suspect firmware/apps issue, so NAS will be factory-reseted to cleanup configuration residue . What I found is WebGUI shutdown uses cgi script to close some processes/services first , which are hard to kill via ssh as they are respawned almost instantly. Sadly no API reference couild be found … so will rely on community support.