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.

  • 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.

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV 5 (current) - Hardware: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - NanoPi M4 (v.1), backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user trying to convert to Linux on a HP dx2400, Debian 10 XFCE.

  • 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.

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


    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV 5 (current) - Hardware: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - NanoPi M4 (v.1), backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user trying to convert to Linux on a HP dx2400, Debian 10 XFCE.

  • 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.

  • The UPS shuts down shortly after the server shuts down.

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV 5 (current) - Hardware: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - NanoPi M4 (v.1), backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user trying to convert to Linux on a HP dx2400, Debian 10 XFCE.

  • 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.

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

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    OMV 5 (current) - Hardware: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - NanoPi M4 (v.1), backup - Odroid XU4, Pi-Hole (DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user trying to convert to Linux on a HP dx2400, Debian 10 XFCE.

  • Agricola

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!