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.2m 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.
    • keyserK
      keyser Rebel Alliance @daplumber
      last edited by

      @daplumber I would just like to add, that while there are “bad” UPS’s out there, I think the BSD crowd should take a long breath and have a look in its own backyard. I have suffered the disconnect issues on two different pfSenses (x64 and Arm) with two different UPS’s (Eaton and CyperPower), and the only stable solution was to connect the UPSes to my Windows Server or my Linux Raspberry Pi. None of those platforms suffered the disconnect issue and both UPS’s were perfectly stable there.
      So I would still argue your issue is just as likely with the USB implementation in BSD.

      Love the no fuss of using the official appliances :-)

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

        @keyser The disconnect issue with CyberPower UPSs is fairly well known. It happens on Linux and Windows as well. Usually it is not a real issue because the reconnect logic covers it. The issue which exposes it here is that we are using the 2.8.0 release of NUT, which has some significant USB library issues. Almost all other distributions have abandoned 2.8.0 and moved to the dev version.

        I've been patiently waiting for 2.8.1, but it keeps getting pushed out so I've started working on moving to dev. I remain utterly convinced that 2.8.1 will be released the day after I complete the move to dev. 😧

        D 1 Reply Last reply Reply Quote 1
        • D
          daplumber @dennypage
          last edited by daplumber

          @dennypage said in NUT package:

          I've been patiently waiting for 2.8.1, but it keeps getting pushed out so I've started working on moving to dev. I remain utterly convinced that 2.8.1 will be released the day after I complete the move to dev. 😧

          Hah, a fellow believer in Saint Murphy the patron saint of software development! (Amongst many other things.)

          Of course if you DON’T move to dev, nut 2.8.1 will never see the light of day. Sigh.

          Oh, and USB is a crazy collection of not-particularly-well-defined-standards where weird… stuff happens on a regular basis. It’s the worst possible interface… except for all the others. Shrug.

          –--------
          This user has been carbon dated to the 8-bit era...

          1 Reply Last reply Reply Quote 0
          • A
            abs0new Rebel Alliance
            last edited by

            Hi folks

            hope you're doing well

            I got big issues with nut on multiple sites.

            see : https://redmine.pfsense.org/issues/14795

            Correct me if i'm wrong i need to use the devel package instead of the 2.8.0 port right ?

            I need a little hint on how i can install the devel package which presumably correct the problem.

            i tried make the package :

            git clone https://github.com/pfsense/FreeBSD-ports.git
            cd sysutils/nut-devel/
            make package
            

            i got :

            make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk
            make: "/root/nut-devel/Makefile" line 149: Malformed conditional (${PORT_OPTIONS:MUSB})
            make: "/root/nut-devel/Makefile" line 156: Malformed conditional (${PORT_OPTIONS:MBASH})
            make: "/root/nut-devel/Makefile" line 160: Malformed conditional (${PORT_OPTIONS:MDOCS})
            make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk
            make: Fatal errors encountered -- cannot continue
            make: stopped in /root/nut-devel
            

            so i tried with gmake :

            gmake package
            

            i got this :

            Makefile:137: *** missing separator.  Stop.
            

            Can someone give me some hint here ?

            Thank you ;)

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

              @abs0new farther back in this thread you will find dev build executables that have been shared.

              A 1 Reply Last reply Reply Quote 1
              • zeemaffinZ
                zeemaffin
                last edited by

                Hi!

                I came across this problem and I can't seem to find the answer in the thread.
                I have a PFsense 6100 MAX , its on 23.05.1-Release at the moment.

                Installed NUT services and connected my Lenovo UPS (55942KX) via USB to the firewall.
                I am using an SRS232 to USB cable.

                The summary says its failed to retrieve status.
                Logs:
                Oct 11 12:04:43 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
                Oct 11 12:04:45 upsd 56388 Can't connect to UPS [Lenovo_UPS] (usbhid-ups-Lenovo_UPS): No such file or directory
                Oct 11 12:04:53 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
                Oct 11 12:04:58 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
                Oct 11 12:05:03 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
                Oct 11 12:05:08 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
                Oct 11 12:05:08 upsmon 54986 UPS Lenovo_UPS is unavailable

                I have tried with all of the drivers from the drop-down menu without success.
                I am sure I am missing something from the configuration, but I am technically stuck at this point. Maybe I am just dumb to even try to use the USB option, but unfortunatly I don't have other solutions for this UPS.

                Can you guys show me a path where should I start poking around?
                Kind regards,
                Zee Muffin man,

                M dennypageD 2 Replies Last reply Reply Quote 0
                • M
                  Maltz @zeemaffin
                  last edited by

                  @zeemaffin

                  That should probably be using a serial driver, not USB. The serial port is connected via USB, but the UPS is connected via serial. I.e., the UPS isn't going to show up as a USB device for the USB driver to communicate with.

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

                    @zeemaffin said in NUT package:

                    Installed NUT services and connected my Lenovo UPS (55942KX) via USB to the firewall.
                    I am using an SRS232 to USB cable.

                    Does the UPS have a direct USB interface? If so, you absolutely should use that interface instead of a USB to serial cable.

                    Now, assuming that it does not have a native USB interface and that you have no choice other than to use a USB serial emulator cable...

                    If the emulator chip in the cable is supported by FreeBSD, the device will show up as a serial port in /dev when you connect the USB cable to the pfSense system. If it doesn't, you're out of luck.

                    To use a serial port emulator, in the NUT configuration you would select "Local Serial" as the UPS Type, and then select the correct port in the Serial port drop-down list (Hint: on the 6100, it's not cuau0 or cuau1).

                    Now comes the hard part. You will have to select the correct driver, and it's a long list to choose from. Without knowing who actually made the UPS that Lenovo rebranded, you have to guess and test. My best guess would be mge-shut, but that is only a guess.

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

                      Did the USB Cyber Power connection drop issue ever get resolved? I noticed they closed that redline....

                      Make sure to upvote

                      dennypageD I 2 Replies Last reply Reply Quote 0
                      • dennypageD
                        dennypage @JonathanLee
                        last edited by

                        @JonathanLee The new NUT version is still pending. I'm switching from nut (8.0) to nut-devel (pre 8.1), which unfortunately has required some fixes in the upstream BSD Port. The fixes are completed, but now have to flow down to pfSense. I don't know how long that will take.

                        1 Reply Last reply Reply Quote 1
                        • A
                          abs0new Rebel Alliance @dennypage
                          last edited by

                          @dennypage Thank you for your suggestion.

                          Do i need to search through 1212 posts to find the executable ?

                          GertjanG dennypageD 2 Replies Last reply Reply Quote 1
                          • GertjanG
                            Gertjan @abs0new
                            last edited by

                            @abs0new

                            When its ready, you see it here, signaled as "an update has arrived" :

                            b8756bce-0332-444d-be05-bec97dbd7f3f-image.png

                            There will be a yellow sign after the "i".

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

                            1 Reply Last reply Reply Quote 0
                            • zeemaffinZ
                              zeemaffin @dennypage
                              last edited by

                              @dennypage Hi!

                              Thank you for the tips, I am going through the serial drivers.
                              In the UPS settings page the serial port is a drop down menu and /dev/cuau0 and /dev/cuau1 is the 2 option, theres nothing else.
                              SO this case can't understand your hint regarding the 6100.

                              Sofar I had no luck... Would you suggest and USB-B to USB-A cable? ( the UPS has the usb port similiar to printers do)

                              Kind regards,

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

                                @zeemaffin said in NUT package:

                                In the UPS settings page the serial port is a drop down menu and /dev/cuau0 and /dev/cuau1 is the 2 option, theres nothing else.
                                SO this case can't understand your hint regarding the 6100.

                                The 6100 has two hidden/unconnected serial ports on the motherboard. These will show up as cuau0 and cuau1. That there is not another option strongly implies that the serial emulator chip is not supported by FreeBSD.

                                Sofar I had no luck... Would you suggest and USB-B to USB-A cable? ( the UPS has the usb port similiar to printers do)

                                Absolutely. If the UPS has a native USB interface, it would always be preferred over a serial emulator cable.

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

                                  @abs0new said in NUT package:

                                  Do i need to search through 1212 posts to find the executable ?

                                  LOL.

                                  It's from earlier this year.

                                  1 Reply Last reply Reply Quote 1
                                  • zeemaffinZ
                                    zeemaffin @dennypage
                                    last edited by

                                    @dennypage

                                    HI Denny!

                                    News!

                                    With the USB cable I see the UPS via the command usbconfig, however its not showing up in the graphical interface dropdown menu.
                                    I mean the cuau 0-1 shows up only, but the usbus0 wont.

                                    Would you suggest a restart of the firewall, or is there another package I need to be able to use the usbbus for this purpose?
                                    Sorry for the dummy questions.

                                    Kind Regards,
                                    Maffin

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

                                      @zeemaffin said in NUT package:

                                      With the USB cable I see the UPS via the command usbconfig, however its not showing up in the graphical interface dropdown menu.
                                      I mean the cuau 0-1 shows up only, but the usbus0 wont.

                                      With a regular USB connection, there isn't a pulldown to select the port. I expect that you still have "Local Serial" set as the UPS Type.

                                      Change the UPS Type to be "Local USB". The Driver field then has a list of usb drivers that are available. Always try "usbhid" before trying anything else.

                                      zeemaffinZ 1 Reply Last reply Reply Quote 0
                                      • zeemaffinZ
                                        zeemaffin @dennypage
                                        last edited by

                                        @dennypage Jesus I feel so dumb right now :D

                                        Thank you for your help!!!

                                        I wont sturggle next time for sure.... now I have to make the timeouts and the other stuff :D

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

                                          @zeemaffin Timeouts? Do you mean for NUT? If so, I recommend that you don't configure any times unless you are trying to address a specific problem.

                                          K 1 Reply Last reply Reply Quote 1
                                          • K
                                            KarB1NE @dennypage
                                            last edited by

                                            @dennypage Happy Halloween! NUT 2.8.1 is out, when will we see it in pfSense?

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