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.

Server gracefully shutting down as soon as UPS goes on battery

Featured Replies

Hello! 
So a few months back I got a UPS and finally got around to setting it up. My problem is as soon as the UPS switches to battery, the server shuts downs. 
Here is my NUT settings:
image.thumb.png.492b334fec4ef7e657bcbf45b6172ed7.png

image.thumb.png.9cafe13aabeaacecf8bf8c2a652b4f8c.png


I hooked up a monitor so I can watch what gets displayed on the terminal and it is this:
image.png.59c776eadb83041d2486a6d5107ea26a.png
 After that it displays the normal shut down stuff and shuts down cleanly. 

From that picture it looks like two things are going one:
1: something is saying there is a power-fail and is forcing a shutdown
2: NUT is working and is attempting to wait for 5 mins before shutting down 

I jump to the idea that my UPS is not working correctly and the server sees a bad voltage for a second, but it is still on so it cant be that bad, can it?
Anyone have a better idea, or see something I missed?
 

Solved by InCaseOf

What UPS are you using? I recently upgraded my UPS and via USB I am able to utilize the built in UPS plugin

 

I went with a CyberPower 1500VA 900 W that has the same Eth and coax in/out options. But my cyber power had USB B also.

Then it worked for my setup.  My first UPS with USB A both ends was a no go

This setting worked for me at least. image.png.521a24ff5ea65354e46dc72cf1534eea.png

  • Author

Thanks! Just tried the built in one, and it set it like this:
image.thumb.png.093ae9e80ba3aed86102f8f440f7d6b8.png
Gonna have to wait till tomorrow to shut the breaker to test it but hopefully it was that , Thanks for the pic 

Edit:
I just saw Time b4 shutdown is in seconds on this one, whoops 
Here's updated version:
image.thumb.png.fc5c8486be8d7ce96aba688ea57b55fc.png

image.thumb.png.93d2587787a42b7b3a587dbcceb18f69.png

Edited by InCaseOf

  • Author

I was able to test the new setup shown in the previous pictures just now and as soon as I flip the breaker off, the ups kicks to battery, Unraid starts a clean shutdown, despite the ups shutdown settings not being met. I do have my modem connected to the UPS and that hasn't power cycled once. I did this with the updated 300 second shutdown timer

Maybe tomorrow I can turn off all the Unraid UPS daemons and test the ups, if it still shuts Unraid down then its a UPS problem, I think that makes sense 

Edited by InCaseOf

Awesome, yeah i have my modem, router, camera nvr, server, and couple other misc. things connected. After spinning up grafana dashboard i average about 120ish watts pull on it.

 

  • Author

Very nice!  Yeah man UPS-s are awesome when they work lol. Still trying to figure out this thing, I can't imagine it should be this difficult to setup, probobly gonna reach out to APC depending on how tomorrow goes, thanks for the help though! 

Well i guess one way to test is just unplug it from the wall outlet 😆 Looking at your screenshots if that information is populated and you're getting stat readouts

should be good to go.

It is not a great idea to unplug the UPS as everything on it with loose GROUND. It is safer to flip a breaker.

  • Author
  • Solution

So, I went back to the default UPS daemon and it reported that my ups was OFFLINE which made unraid shut off. 

I did a bit more digging  Found this tread


Which led me to this comment 
image.thumb.png.6597087a0ebad5f0062ae001ebbc72be.png
I re-installed NUT and everything is working as it should be, maybe a bug with NUT? No clue since my was detecting the UPS

Anyway, thanks for the help! Just wanted to add this here in case someone else runs into this problem 

 

Edited by InCaseOf

Glad you figured it out. Anything's possible in the world of IT 🤓

 

  • Author

Lol for real! Thanks again Moose! 

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.