Netgate Discussion Forum
    • 版面
    • 最新
    • 標籤
    • 熱門
    • 使用者
    • 搜尋
    • 註冊
    • 登入

    NUT Package (2.8.1 and above)

    已排程 已置頂 已鎖定 已移動 UPS Tools
    296 貼文 41 Posters 176.3k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • dennypageD
      dennypage @rarlup
      最後由 編輯

      @rarlup said in NUT Package (2.8.1 and above):

      you have a lot of pogo
      what do you mean? bouncing back and forth / up and down?

      Yes.

      @rarlup said in NUT Package (2.8.1 and above):

      The thing is it didn't lose the connection with the UPS it just showed On Battery after WAN down event and stayed with that status.

      There was a persistent connection loss in the logs you posted. Feb 14 12:35:26.

      @rarlup said in NUT Package (2.8.1 and above):

      Previously, just breathing near the cable could cause a WAN down event so this may be the actual cause - faulty wiring on one of the pfSense interfaces can/will cause weird UPS status?

      Yes, this could be the cause of the pogo.

      R 1 條回覆 最後回覆 回覆 引用 0
      • dennypageD
        dennypage @Gertjan
        最後由 編輯

        A common mistake people make is to directly connect a PC or Mac to a port on pfSense rather than through a switch. The frequent sleep/wake cycles of these systems, which bring link down/up on their ports, wreak havoc on the pfSense.

        GertjanG R 2 條回覆 最後回覆 回覆 引用 1
        • GertjanG
          Gertjan @dennypage
          最後由 編輯

          @dennypage said in NUT Package (2.8.1 and above):

          A common mistake people make is to directly connect a PC or Mac to a port on pfSense rather than through a switch. The frequent sleep/wake cycles of these systems, which bring link down/up on their ports, wreak havoc on the pfSense.

          Yeah ... big +1 that one.
          No excuse if they have an UPS : the upstream ISP device (router, modem, powered ONT, whatever, pfSense itself, and all the LAN attached switch(es) should be powered by the same - or linked - UPS.
          This solves a load of potential pitfalls.
          (admin) Live is so easy ones you reached this conclusion / setup ^^

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 條回覆 最後回覆 回覆 引用 0
          • R
            rarlup @dennypage
            最後由 rarlup 編輯

            @dennypage
            Not the case - that pfsense box has 9 interfaces (5 rj45 and 4 sfp+)
            0 - wan pppoe
            1 - another pfsense box
            2 - not used yet
            3 - not used
            4 - switch A

            0 - lacp to switch B
            1 - lacp to switch B
            2 - not used
            3 - not used

            Checked the UPS logs and no new events. Guess that & fixed it.

            1 條回覆 最後回覆 回覆 引用 1
            • R
              rarlup @dennypage
              最後由 編輯

              @dennypage said in NUT Package (2.8.1 and above):

              There was a persistent connection loss in the logs you posted. Feb 14 12:35:26.

              So WAN glitched, triggered package restart and somehow it detected the UPS as on battery before losing connection to it?

              GertjanG 1 條回覆 最後回覆 回覆 引用 0
              • GertjanG
                Gertjan @rarlup
                最後由 編輯

                @rarlup said in NUT Package (2.8.1 and above):

                detected the UPS as on battery

                If that state was known at the moment, then it is because NUT got that state from the UPS.
                An UPS on battery, yeah, something has glitched - and the WAN agrees ^^

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 條回覆 最後回覆 回覆 引用 0
                • R
                  rarlup
                  最後由 編輯

                  I see and it makes sense. Thank you both!
                  Looking to purchase a few more UPSes - any particular model that is 100% compatible with NUT and you can truly recommend?
                  min 700VA, cheap (<$200) and rack mountable would be ideal

                  dennypageD 1 條回覆 最後回覆 回覆 引用 1
                  • dennypageD
                    dennypage @rarlup
                    最後由 編輯

                    @rarlup said in NUT Package (2.8.1 and above):

                    Looking to purchase a few more UPSes - any particular model that is 100% compatible with NUT and you can truly recommend?

                    NUT is compatible with a wide variety of UPSs. That said, some UPSs have more quirks than others.

                    Specific recommendations are difficult, but I would generally stay with usb-hid capable units from one of the big manufacturers such as APC, Cyber Power or Tripp Lite.

                    My personal preference is for APC, but they tend to be a bit more expensive.

                    1 條回覆 最後回覆 回覆 引用 0
                    • J
                      j.koopmann
                      最後由 編輯

                      Hi @dennypage

                      thanks so much for your tremendous effort on this package. For months now after upgrading pfSense my previously working (most likely pre nut 2.8.x) Eaton 9SX 3000i keeps loosing the USB connection. A restart of nut fixes it immediately. I tried to work my way through the thread but seem to be at a loss. Everything is running as root already. I have not applied quirks. I am on nut 2.8.2. I have not set things to interrupt. Using usbhid-ups with no additional parameters.

                      Any (!) hint on how to further debug this, where to look in the logs, make adjustments whatever would be greatly appreciated!

                      GertjanG 1 條回覆 最後回覆 回覆 引用 0
                      • GertjanG
                        Gertjan @j.koopmann
                        最後由 編輯

                        @j-koopmann said in NUT Package (2.8.1 and above):

                        Any (!) hint on how to further debug this

                        Check also NUT suddenly stops working every app. 6 minutes.
                        It's also a "The UPS is a usb connected Eaton 9SX 3000i.".

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        J 1 條回覆 最後回覆 回覆 引用 0
                        • J
                          j.koopmann @Gertjan
                          最後由 編輯

                          @Gertjan turns out it is my thread and still an unresolved problem. I just had forgotten I was already working on it here in the forum. :-)

                          No quirks installed. Problem persisting.

                          GertjanG 1 條回覆 最後回覆 回覆 引用 0
                          • GertjanG
                            Gertjan @j.koopmann
                            最後由 編輯

                            @j-koopmann

                            Do you see the disconnect in the system log ?

                            Normally, like a mouse, or a printer, ones the USB link is made, it stays up until 'something' happens'.
                            Btw : I said 'link', be ware a simple USB connection it a lot more more then an simple electrical link. USB connectors, the wire (the cable) etc can be in a bad shape. USB concentrator (the USB chip) used on both side can be 'military grade' or worse then 'alibaba' grade.
                            "APC", as mentioned above, delivers the close to set it and forget it (and their battery still dies at a worst moment ... )

                            To test your UPS : forget about the genric NUT = pfSense for now. Hook it up using a desktop top PC, with the software that came long with it.
                            Check for some time if you see 'disconnect issues'.

                            Have look at this page : https://networkupstools.org/docs/man/ and locate (couldn't find it myself right now) the schema that lays out how all this stuff is interconnected.
                            You'll find details about upsd - the ups deamon, the connection method, which is 'USB' in this case, the driver (usbhid) used, "upsmon".
                            There are command line tools that can give you a lot of details :

                            [25.03-BETA][root@pfSense.bhf.tld]/root: upsc UPS
                            battery.charge: 100
                            battery.charge.low: 10
                            battery.charge.warning: 50
                            battery.date: 2001/09/25
                            battery.mfr.date: 2024/06/19
                            battery.runtime: 500
                            battery.runtime.low: 120
                            battery.type: PbAc
                            battery.voltage: 13.3
                            battery.voltage.nominal: 12.0
                            device.mfr: American Power Conversion
                            ...
                            

                            but a USB that 'disconnects' is, imho, more a hardware issue, like a cable or connector, or a bad power issue.
                            UPSs have often internally bad power ( 😊 ) as they do ugly things with power - it's their job.

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            J 1 條回覆 最後回覆 回覆 引用 0
                            • J
                              j.koopmann @Gertjan
                              最後由 編輯

                              @Gertjan is it fair to assume that I would be seeing and usb disconnects the kernel is aware of in dmesg?

                              I just intentionally pulled the USB:

                              ugen0.2: <EATON Eaton 9SX> at usbus0 (disconnected)
                              ugen0.2: <EATON Eaton 9SX> at usbus0
                              

                              However when nut stops working there is NOTHING in dmsg indicating an issue. Moreover: Once it stops working a simple restart of the nut service makes it work again immediately. If the USB stops working due to a hardware issue I would suspect that the problem would persist. Vice versa: When I pulled the USB and reinserted it, NUT was immediately happy again and did NOT loose its connection. Indeed it did not even throw an error in syslog...

                              So if this was a problem on the Eaton or a physical problem I would assume that I should be seeing usb related dmesg/syslog output. I do not.

                              Moreover the problem started pretty much when I upgraded from 23.x to 24.x. What was the nut version with 23.x? I read somewhere that nut 2.8 has introduced some usb related regressions. Agreed it could be unrelated but the timing is very suspicious.

                              GertjanG 1 條回覆 最後回覆 回覆 引用 0
                              • GertjanG
                                Gertjan @j.koopmann
                                最後由 編輯

                                @j-koopmann said in NUT Package (2.8.1 and above):

                                I upgraded from 23.x to 24.x.

                                For what it's worth : I switched to 25.03 Beta 6, the one that came out last week, and its rock solid.
                                I only use the beta on my work, at home I still use 24.x as I can only upgrade @home to the offciial version as per my boss's rules (the home wife).
                                At work, Im' the boss (a hotel with many connected clients) so I can use the beta over there.
                                It's, imho, perfect.

                                No "help me" PM's please. Use the forum, the community will thank you.
                                Edit : and where are the logs ??

                                1 條回覆 最後回覆 回覆 引用 0
                                • dennypageD
                                  dennypage
                                  最後由 編輯

                                  One thread please...

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • dennypageD
                                    dennypage
                                    最後由 編輯

                                    There is now a UPS Tools section, so I ask everyone to use problem specific threads rather than continuing this thread. Thank you.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • dennypageD dennypage locked this topic on
                                    • 第一個貼文
                                      最後的貼文
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.