Nut dropping connection with UPS

  • Hello there,


    I need some help figuring out what is going on with my UPS connection to my server. I keep getting notifications from the Nut plugin that the connection with the UPS has been lost and then it reconnects and then it keeps doing it looping. I want to make sure it is not something wrong with my UPS - just got it set up and if its bad I want to return it.


    This is what I keep getting over and over again:

    Feb 1 15:57:46 -NAS1 upsmon[1006]: Poll UPS [ups] failed - Data stale

    Feb 1 15:57:47 -NAS1 upsd[1003]: UPS [ups] data is no longer stale

    Feb 1 15:57:47 -NAS1 upsd[1003]: Can't connect to UPS [ups] (usbhid-ups-ups): No such file or directory

    Feb 1 15:57:51 -NAS1 upsmon[1006]: Poll UPS [ups] failed - Driver not connected

    Feb 1 15:57:53 -NAS1 upsd[1003]: Connected to UPS [ups]: usbhid-ups-ups

    Feb 1 15:57:56 -NAS1 upsmon[1006]: Communications with UPS ups established

    Feb 1 15:57:56 -NAS1 upssched[16234]: Executing command: notify

    Feb 1 15:57:56 -NAS1 upssched-cmd: Communications with the UPS ups are established

    Feb 1 19:09:30 -NAS1 upsd[1003]: Data for UPS [ups] is stale - check driver


    Thanks for the help.


    I have tested pulling the plug on the UPS and it shuts down the server in both low battery and per a time set. But for some reason the above keeps happening and I don't want a power loss to occur and I have problems when its not communicating with the UPS.


    OMV5 - 5.5.23-1 (Usul)

    Kernel - Linux 5.9.0-0.bpo.5-amd64

    omv-nut 5.1.1-1 plugin

    UPS - CyberPower 825VA-AVR connected via usb


    I posted a response to the tread - "Communications with the UPS ups_localhost are lost" issue for current plugin: temporary workaround or final solution? And remote monitoring? but I thought that is an old thread so they may not respond.

    • Offizieller Beitrag

    I use a CyberPower CP1000AVRLCD, and I have noticed on two different times when I have set it up using the NUT plugin on two different servers is that it takes a few days for the plugin to "settle in" and then the emails will stop. I don't know why but that has been my experience. Sorry I cannot be more technical but hope that is a comfort. The fact that you have tested it and it works as expected should be some comfort.

    System Backup Typo alert: Under the Linux section the command should be sudo umount /dev/sda1 NOT sudo unmount /dev/sda1

    Backup Data Disk to Backup Disk on Same Machine: In a Scheduled Job:rsync -av --delete /srv/dev-disk-by-uuid-f8814ed9-9a5c-4e1c-8830-426968c20ea3/ /srv/dev-disk-by-uuid-e67439d5-00a3-4942-bd5f-b84ab86aa850/ Don't forget trailing slashes, and BE CAREFUL. (HT: Getting Started with OMV5)

    Equipment - Thinkserver TS140, NanoPi M4 (v.1), Odroid XU4 (Using DietPi): PiHole

  • Thanks. It has been up and runner for about 3 weeks and still kicking out the notifications. Not sure why. I am hoping someone can point me in the right directions for trouble shooting.

    • Offizieller Beitrag

    bnSevn Here's a screen shot of my UPS settings. As I said above I am using the CyberPower CP1000AVRLCD. Hope it helps:


  • Agricola- I didn't have the "pollinterval=15" in the driver config. I also was shutting down at low battery. So I changed mine to match your configuration and I will see what happens and test the shutdown. Thanks for the insight.


    After the server shuts down does it turn off your UPS immediately? I was having that "problem". I wanted the UPS to remain on battery to power my router & wifi as long as possible so to counter act this I changed it to power down the server at low battery.

    • Offizieller Beitrag

    The UPS shuts down shortly after the server shuts down.

  • Thanks Agricola your settings worked. I got side tracked but finally got back to it and adding the following driver config line stopped the endless loop of notifications - pollinterval=15 does not appear to effect its function; both shutdown modes in the plugin (UPS reaches low battery, and UPS goes on battery) work perfectly.


    I really appreciate the help.


    I remember reading somewhere that changing another setting would prevent the server from shutting down the UPS so you could keep other attached devices up and running until the low batter indication internal to the UPS shuts down the UPS. That would be helpful for me. At the moment I have it set at "UPS reaches low battery" - that way my other connected devices remain active but it does drain the battery faster.

    • Offizieller Beitrag

    Thanks for replying that your problem was solved. Glad to hear all is working now! Blessed day to you.

    System Backup Typo alert: Under the Linux section the command should be sudo umount /dev/sda1 NOT sudo unmount /dev/sda1

    Backup Data Disk to Backup Disk on Same Machine: In a Scheduled Job:rsync -av --delete /srv/dev-disk-by-uuid-f8814ed9-9a5c-4e1c-8830-426968c20ea3/ /srv/dev-disk-by-uuid-e67439d5-00a3-4942-bd5f-b84ab86aa850/ Don't forget trailing slashes, and BE CAREFUL. (HT: Getting Started with OMV5)

    Equipment - Thinkserver TS140, NanoPi M4 (v.1), Odroid XU4 (Using DietPi): PiHole

  • Agricola

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!