Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unclean shutdown

Featured Replies

Recently lost power and had an unclean shutdown, I just assumed the server timed out trying to shut down before the UPS ran out of power...

Today I tested that theory and the server shut itself down while the UPS was still providing power and it still had an unclean shutdown!

Diagnostics attached, please help!

 

Thanks,

 

--Phil

homeserver-diagnostics-20230709-1606.zip

  • Community Expert

Time how long it takes to stop the array, then add 30 secs to add and set it as the shutdown timeout (Settings -> Disk Settings)

  • Author

Hey Jorge,

 

Wouldn't that not fix the underlying issue? Why did the server shutdown unclean - as in the test it didn't lose power?

 

Thanks,

 

--Phil

  • Community Expert

If the timeout is not long enough every shutdown/reboot will be an unclean shutdown.

  • Author

Hey Jorge,

 

What if there is an open ssh session preventing shutdown/reboot or something else? Is there anything that the shutdown script will not be able to overcome?

As a note I had previously set up a timeout that worked but it appears that somewhere between 6.11 and 6.12.2 my settings were reset.

 

Thanks,

 

--Phil

  • Community Expert
3 minutes ago, PSteward said:

What if there is an open ssh session preventing shutdown/reboot or something else?

That will cause an unclean shutdown.

  • Author

Hey Jorge,

 

There is no kill scripts to ensure a clean shutdown? Power outages are an unknown variable, you never know when or what is happening with a server at that time, what's the point of UPS if the server can't even kill open sessions to shut down cleanly?

 

Thanks,

 

--Phil

  • Author

Hey Jorge,

 

It appears to be a bug:

I cannot even stop my array...:
 

Jul 10 09:00:37 HOMESERVER emhttpd: Unmounting disks...
Jul 10 09:00:37 HOMESERVER emhttpd: shcmd (432479): umount /mnt/cache
Jul 10 09:00:37 HOMESERVER root: umount: /mnt/cache: target is busy.
Jul 10 09:00:37 HOMESERVER emhttpd: shcmd (432479): exit status: 32
Jul 10 09:00:37 HOMESERVER emhttpd: Retry unmounting disk share(s)...

 

lsof shows nothing open for /mnt/cache

 

Thanks,

 

--Phil

 

  • Community Expert
1 hour ago, PSteward said:

There is no kill scripts to ensure a clean shutdown?

By default it will not kill that, it does kill other things, do you need to leave an SSH session always opened? I believe the tweaks and tips plugin has an option to kill that.

  • Author

Hey Jorge,

I don't have any sessions open typically but power failures don't wait for you to close your ssh session!!! Besides I have a the plugin to kill them anyways. At this point it looks like an issue with the version 6.12.2 as per that other post.
Before updating I didn't have these issues when I tested.

 

Thanks,

 

--Phil

Edited by PSteward

  • Community Expert

Wait for v6.12.3, that should fix the 12.2 issue.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.