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

    NUT package (2.8.0 and below)

    Scheduled Pinned Locked Moved UPS Tools
    1.2k Posts 128 Posters 4.1m Views
    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.
    • dennypageD
      dennypage @4o4rh
      last edited by

      @gwaitsi said in NUT package:

      i mean a dumb power pack, not a ups. I use a dumb power pack on my J1900 with a remote connection to the NAS which has the UPS

      I'm assuming that "J1900" is a computer system...

      If the computer system is powered by the UPS, and the UPS is controlled by the NAS, you should have a NUT client (slave) on that system that talks to the NUT server (master) to coordinate the shutdown. Do you? How does the dumb power pack fit into this?

      1 Reply Last reply Reply Quote 0
      • dennypageD dennypage referenced this topic on
      • JonathanLeeJ
        JonathanLee
        last edited by

        Hello fellow Netgate community members can you please help?

        I have never had any issues with NUT until I upgraded to 23.01 I keep having the driver disconnect now until I re-apply the settings. The pFsense software is working great, it runs so much better with the internet traffic and proxy speeds, however I found a bug. I have removed rebooted pkg cleaned and reinstalled the and error returned. Keep in mind prior to update this was not a issue. If I reapply the settings the driver recovers and dashboard displays correctly. Again this only lasts for a short time and it is disconnected again.

        Screenshot 2023-02-16 at 8.04.50 PM.png
        (Errors: Driver not connected)

        Screenshot 2023-02-16 at 8.04.17 PM.png
        (Current pfSense Version)

        Screenshot 2023-02-16 at 8.04.01 PM.png
        (2.8.0_2)

        Does anyone know what would cause this change, prior to this I never had any errors on the older version of pFsense 21.

        Make sure to upvote

        1 Reply Last reply Reply Quote 0
        • JonathanLeeJ
          JonathanLee
          last edited by JonathanLee

          Screenshot 2023-02-16 at 8.10.58 PM.png
          (connection refused?)

          Screenshot 2023-02-16 at 8.11.31 PM.png
          (Unavailable)

          Make sure to upvote

          1 Reply Last reply Reply Quote 0
          • JonathanLeeJ
            JonathanLee
            last edited by

            Changing it off of port = auto and setting it to what the sockets was showing seemed to resolve this. I always wanted to see the GUI monitor like the website has, has anyone set that up where you can just go to for example https://192.168.1.1:3493 and access a login prompt and monitor the ups?

            Screenshot 2023-02-16 at 9.21.45 PM.png

            Make sure to upvote

            4 dennypageD 2 Replies Last reply Reply Quote 0
            • 4
              4o4rh @JonathanLee
              last edited by

              @jonathanlee did you check the contents of ups.conf after reboot? if the contents are being lost, you might be able to use the Filer plugin to work around it

              1 Reply Last reply Reply Quote 1
              • dennypageD
                dennypage @JonathanLee
                last edited by dennypage

                @jonathanlee In the Advanced settings -> Additional configuration lines for ups.conf, you have entries that are not allowed there. That section is for global directives only. What you have there are UPS Fields (driver configuration).

                All entries in that section should be removed. If you wish, the "desc" line can be moved into the Extra Arguments to driver section, but all the others should be removed. Those entries are in conflict with the driver configuration.

                4 JonathanLeeJ 2 Replies Last reply Reply Quote 1
                • 4
                  4o4rh @dennypage
                  last edited by 4o4rh

                  @dennypage the stuff he has in the "additional configuration lines for ups.conf" should be in the "extra arguements to driver" section no?

                  dennypageD 1 Reply Last reply Reply Quote 1
                  • dennypageD
                    dennypage @4o4rh
                    last edited by

                    @gwaitsi said in NUT package:

                    @dennypage the stuff he has in the "additional configuration lines for ups.conf" should be in the "extra arguements to driver" section no?

                    No. See the post immediately above. The lines should be not be present in either section.

                    1 Reply Last reply Reply Quote 1
                    • T
                      tman222
                      last edited by

                      Hi @dennypage - I ran into the same issue as @JonathanLee after upgrading to 23.01. I have a CyperPower UPS hooked up via USB using the usbhid NUT driver that worked fine up to now (i.e. in 22.05). After the upgrade, the NUT driver can't seem to keep a connection to the UPS. If I reload the NUT service / restart NUT, it will work anywhere from 5-20 minutes before disconnecting again. I have tried reinstalling the package and also manually setting the port line in "Extra Arguments to driver" section to the actual USB port/device the UPS is attached to, but no dice. The only left to try is a different USB port on the system to see if that fixes it. Is there anything else can you think of that is worth checking into to try to resolve this? Thanks in advance.

                      A dennypageD 3 Replies Last reply Reply Quote 1
                      • A
                        azdeltawye @tman222
                        last edited by

                        Hello,
                        I am experiencing the same issue with my Tripp Lite rack mount UPS; NUT not able to connect after upgrading pfSense to 23.01. Re-installing NUT package did not help.

                        dennypageD JonathanLeeJ 2 Replies Last reply Reply Quote 1
                        • JonathanLeeJ
                          JonathanLee
                          last edited by

                          Dang I said 'seemed' to resolve this issue to soon.:( it is now doing the disconnect again so because of this I have now normalized my config and removed the old settings now as it is doing the same thing, and everyone is recommending removing it.

                          Screenshot 2023-02-17 at 7.24.42 AM.png

                          Make sure to upvote

                          dennypageD 1 Reply Last reply Reply Quote 0
                          • JonathanLeeJ
                            JonathanLee @dennypage
                            last edited by

                            @dennypage

                            Thanks for the reply,

                            I have corrected this test config per your response.

                            Screenshot 2023-02-17 at 7.29.24 AM.png

                            Make sure to upvote

                            1 Reply Last reply Reply Quote 0
                            • JonathanLeeJ
                              JonathanLee
                              last edited by

                              Does Squid need NUT's port to be listed on the acl page if you are also running the proxy on the loopback?

                              Make sure to upvote

                              1 Reply Last reply Reply Quote 0
                              • dennypageD
                                dennypage @JonathanLee
                                last edited by

                                @jonathanlee said in NUT package:

                                Dang I said 'seemed' to resolve this issue to soon.:( it is now doing the disconnect again so because of this I have now normalized my config and removed the old settings now as it is doing the same thing, and everyone is recommending removing it.

                                There are multiple uses of the term "port" in nut, the port setting for the driver and the port setting for upsd. The port setting you had was for upsd (default 3493), but it was in the driver section. It was being ignored.

                                The other lines you had created a duplicate entry for what the package configurator was already doing, so if you looked in ups.conf you would have seen [CyberPower] twice.

                                JonathanLeeJ 1 Reply Last reply Reply Quote 1
                                • dennypageD
                                  dennypage @tman222
                                  last edited by

                                  @tman222 said in NUT package:

                                  I have a CyperPower UPS hooked up via USB using the usbhid NUT driver that worked fine up to now (i.e. in 22.05). After the upgrade, the NUT driver can't seem to keep a connection to the UPS. If I reload the NUT service / restart NUT, it will work anywhere from 5-20 minutes before disconnecting again.

                                  What shows in the system log? Anything containing the strings "ups" or "usb" please.

                                  1 Reply Last reply Reply Quote 1
                                  • JonathanLeeJ
                                    JonathanLee @dennypage
                                    last edited by

                                    @dennypage yes that was only done to test, I did check the actual path to the config files and they are listed with duplicates. Thanks the system logs just fill up because of this similar to the post before with the screenshot of the logs.

                                    Make sure to upvote

                                    dennypageD 1 Reply Last reply Reply Quote 0
                                    • dennypageD
                                      dennypage @JonathanLee
                                      last edited by

                                      @jonathanlee Please post the log entries surrounding the disconnect. I don't care about the upsmon entries, just the usbusps-hid and kernel usb entries.

                                      So what specifically I would like you to do, is to re-save the config (so nut starts), wait for the disconnect, and then post everything from the system log from just before you did the re-save to just after the disconnect. Redact anything that is a privacy issue before you post.

                                      JonathanLeeJ 1 Reply Last reply Reply Quote 1
                                      • JonathanLeeJ
                                        JonathanLee @dennypage
                                        last edited by

                                        @dennypage I currently have the package removed as the logs generated are overwhelming everything else for the firewall. I did a search this is what I found so far.

                                        8a090660-d191-4973-8e86-f614267e01c3-image.png
                                        (Image: HID showing connection refused)

                                        d4a8b0c3-dc25-4247-ab09-501c312f40d4-image.png
                                        (Image: Error on disconnect)

                                        I can reinstall nut package and check the logs again for you, thanks for looking into this. It was working perfectly prior to the update to 23.01

                                        Make sure to upvote

                                        1 Reply Last reply Reply Quote 0
                                        • dennypageD
                                          dennypage
                                          last edited by

                                          @jonathanlee Not looking for upsd or upsmon messages. I'm looking for the messages from the driver (usbhid-hid) and from the kernel (usb).

                                          Yes, please re-install the package. A log message or two every min isn't going to hurt. I need information in order to try and help.

                                          Please do the following, in order:

                                          • open a console window (ssh into pfSense)
                                          • note the time (begin time)
                                          • unplug the usb connection to the ups
                                          • wait 10 seconds
                                          • replug the usb connection to the ups
                                          • run "usbconfig -v" in the console window
                                          • go into the ui and resave the nut configuration (this will restart the nut service)
                                          • confirm that the service is started and that you see device information on the status page
                                          • wait for the disconnect to happen
                                          • run "usbconfig -v" in the console window
                                          • note the time (end time)

                                          Please post the entire system log from begin time to end time, and the output of both usbconfig commands. Redact anything you need to for privacy reasons.

                                          JonathanLeeJ 1 Reply Last reply Reply Quote 1
                                          • dennypageD
                                            dennypage @tman222
                                            last edited by dennypage

                                            @tman222, @azdeltawye

                                            Can you also run through the instructions immediately above please? Thanks

                                            [Edit: You can skip the above instructions. Please check your system logs for a usbhid-ups error similar to that reported by @shaffergr shown in post 972.]

                                            dennypageD JonathanLeeJ 2 Replies Last reply Reply Quote 1
                                            • dennypageD dennypage referenced this topic on
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.