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.

Clean shutdown when running on UPS

Featured Replies

Yesterday, we had a power outage around midnight, and my server was on

I have a UPS to power my modem, router and switch as well as the server

But the server drained it quite fast, and I realized I didn't have internet anymore because of that

How do I configure the server (plugin?) to automatically shut down when it's powered by the UPS (CyberPower 1350VA from Costco)

Thanks

  • Community Expert

These are my settings:

image.png

The circled one is the one that actually does the shutdown. (I have determined that if a power outage last thirty seconds, it will be hours before power is restored.) I have nothing else connected to my server UPS so this provides battery reserves if after power restoration, there is a second outage, there will be enough battery to make a second clean shutdown!

image.png

One more setting. Determine the time required to stop the array and set this variable to make sure that the array is stopped before a force shutdown is force by this timer. Sometimes, a Docker container will refuse to release a file lock and the array can not be stopped. If you find one of these you will have to figure out a way to deal with it.

Edited by Frank1940

  • Author
3 minutes ago, Frank1940 said:

These are my settings:

image.png

The circled one is the one that actually does the shutdown. (I have determined that if a power outage last thirty seconds, it will be hours before power is restored.) I have nothing else connected to my server UPS so this provides battery reserves if after power restoration, there is a second outage, there will be enough battery to make a second clean shutdown!

One more setting. Determine the time required to stop the array and set this variable to make sure that the array is stopped before a force shutdown is force by this timer. Sometimes, a Docker container will refuse to release a file lock and the array can not be stopped. If you find one of these you will have to figure out a way to deal with it.

On 3/17/2025 at 3:50 AM, JorgeB said:

Enable the mover logging, run the mover and post new diags and the name of the share(s) you expected moved.

 

Also, make sure you confirm the download in Chrome so that you post the actual diags zip.

But how does the server know it's running on battery?

8 minutes ago, Frank1940 said:

These are my settings:

image.png

The circled one is the one that actually does the shutdown. (I have determined that if a power outage last thirty seconds, it will be hours before power is restored.) I have nothing else connected to my server UPS so this provides battery reserves if after power restoration, there is a second outage, there will be enough battery to make a second clean shutdown!

image.png

One more setting. Determine the time required to stop the array and set this variable to make sure that the array is stopped before a force shutdown is force by this timer. Sometimes, a Docker container will refuse to release a file lock and the array can not be stopped. If you find one of these you will have to figure out a way to deal with it.

But how does the server know it's running on battery?

  • Community Expert
2 hours ago, French-Guy said:

But how does the server know it's running on battery?

Because the UPS communicates with the Unraid UPS software! That is how it 'knows' how much battery remains as well as the nominal power being used by the load connected to the UPS. So the mains power is interrupted, it sends notification to the UPS software that the shutdown timer can start. If the timer elapses without a signal from the UPS that the power is restored, the shutdown sequence will begin!

If your UPS will not communicate properly with the default UPS software in Unraid, you can install the NUT plugin which has support for more UPS's.

You connect your UPS with a USB cable to your server. Then go to the UPS setting and turn on 'Help' by clicking on this icon image.png on the Toolbar of the GUI.

Edited by Frank1940

  • Author
11 hours ago, Frank1940 said:

Because the UPS communicates with the Unraid UPS software! That is how it 'knows' how much battery remains as well as the nominal power being used by the load connected to the UPS. So the mains power is interrupted, it sends notification to the UPS software that the shutdown timer can start. If the timer elapses without a signal from the UPS that the power is restored, the shutdown sequence will begin!

If your UPS will not communicate properly with the default UPS software in Unraid, you can install the NUT plugin which has support for more UPS's.

You connect your UPS with a USB cable to your server. Then go to the UPS setting and turn on 'Help' by clicking on this icon image.png on the Toolbar of the GUI.

I did a quick test, and it seems to work perfectly without having to install any plugins

Thank you for your help

Edited by French-Guy

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.