Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NUT: Data Stale!

    2.0-RC Snapshot Feedback and Problems - RETIRED
    3
    13
    16.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      ericab
      last edited by

      my log is chock full of this:

      Mar 2 16:40:05 upsmon[28156]: Poll UPS [Cyberpower@localhost] failed - Data stale
      Mar 2 16:40:05 upsmon[28156]: Poll UPS [Cyberpower@localhost] failed - Data stale
      Mar 2 16:40:00 upsmon[28156]: Poll UPS [Cyberpower@localhost] failed - Data stale
      Mar 2 16:40:00 upsmon[28156]: Poll UPS [Cyberpower@localhost] failed - Data stale
      Mar 2 16:39:55 upsmon[28156]: Poll UPS [Cyberpower@localhost] failed - Data stale

      over and over and over and over.

      if i reset the pfsense box, everything goes back to normal, and then maybe an hour later ? the logs start filling up again.

      whats going on here ?

      here is the contents of my 'ups.conf'

      user=root
      [Cyberpower]
      driver=usbhid-ups
      port=auto
      
      

      edit:
      under status –> services it shows NUT as running.

      under services --> NUT, it shows

      Monitoring: 	Local UPS
      ERROR: 	Data stale!
      

      i should mention this has been occurring for about 2 weeks or so.

      1 Reply Last reply Reply Quote 0
      • B
        bardelot
        last edited by

        You could try and increase the polling frequency, e.g. add "pollinterval=5" to your ups.conf

        1 Reply Last reply Reply Quote 0
        • E
          ericab
          last edited by

          ups.conf, or upsmon.conf ?

          upsmon.conf already contains "POLLFREQ 3"

          1 Reply Last reply Reply Quote 0
          • E
            ericab
            last edited by

            bump  ???

            1 Reply Last reply Reply Quote 0
            • B
              bardelot
              last edited by

              In the ups.conf file you define how frequently the local UPS status is refreshed. The default pollinterval is 2 seconds, however that might be too often in some cases, thus you can try to increase the interval e.g. 5 seconds.

              The upsmon.conf configures the monitoring part, that decides when it has to shutdown the system. The polling frequency (POLLFREQ) is by default 5 seconds, and should be larger than the configured pollinterval. You may even use a larger POLLFREQ and additionally configure POLLFREQALERT (default 5 seconds), that is the polling frequency if the UPS is detected to run on battery. The POLLFREQALERT should always be equal or lower than the POLLFREQ.

              1 Reply Last reply Reply Quote 0
              • E
                ericab
                last edited by

                ive done this and there is no change.

                1 Reply Last reply Reply Quote 0
                • B
                  bardelot
                  last edited by

                  The configured POLLFREQ in upsmon.conf might be too small. Try to use the default values:

                  ups.conf: "pollinterval=2"
                  upsmon.conf: "POLLFREQ 5"

                  1 Reply Last reply Reply Quote 0
                  • E
                    ericab
                    last edited by

                    id like to add that i have not changed these config files since i first set nut up…

                    but alright i will give this a try, and get back to you.

                    thanks for the help

                    1 Reply Last reply Reply Quote 0
                    • E
                      ericab
                      last edited by

                      overnight, my logs are just FULL of this again.

                      Mar 5 10:11:31 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                      Mar 5 10:11:31 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                      Mar 5 10:11:26 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                      Mar 5 10:11:26 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                      Mar 5 10:11:21 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                      Mar 5 10:11:21 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale

                      1 Reply Last reply Reply Quote 0
                      • C
                        ColdFusion
                        last edited by

                        This has been an issue for a very long time. If you search for "Stale data" you'll see. I just restart nut every 15 minutes in cron and that keeps it going. I've fiddled with all kinds of settings to no avail. Anyway, this seems to work for me.

                        1 Reply Last reply Reply Quote 0
                        • E
                          ericab
                          last edited by

                          thanks coldfusion;
                          thats a good idea.

                          what cron entry do you have in your setup to achieve this ?

                          1 Reply Last reply Reply Quote 0
                          • C
                            ColdFusion
                            last edited by

                            /usr/local/etc/rc.d/nut.sh start

                            minute hour mday month wday who  command

                            */15  *          *          *            *      root    /usr/local/etc/rc.d/nut.sh start

                            1 Reply Last reply Reply Quote 0
                            • E
                              ericab
                              last edited by

                              coldfusion,

                              this has worked perfectly, thanks.
                              hopefully the devs will work on a fix for this.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.