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

    NUT Package (2.8.1 and above)

    Scheduled Pinned Locked Moved UPS Tools
    288 Posts 40 Posters 135.8k 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.
    • D
      DavidIr @dennypage
      last edited by DavidIr

      @dennypage Not sure if this is because I did something stupid but I have updated the package as instructed and as soon as I restarted the NUT service my router immediately shut down completely. Below is what my SSH session showed as it happened.

      [23.09-RELEASE][admin@pfSense.irwazu.co.uk]/tmp: pkg remove -fy nut
      Checking integrity... done (0 conflicting)
      Deinstallation has been requested for the following 1 packages (of 0 packages in                                                       the universe):
      
      Installed packages to be REMOVED:
              nut: 2.8.0_23
      
      Number of packages to be removed: 1
      
      The operation will free 7 MiB.
      [1/1] Deinstalling nut-2.8.0_23...
      [1/1] Deleting files for nut-2.8.0_23: 100%
      ==> You should manually remove the "nut" user.
      ==> You should manually remove the "nut" group
      You may need to manually remove /usr/local/etc/nut/ups.conf if it is no longer n                                                      eeded.
      You may need to manually remove /usr/local/etc/nut/upsd.conf if it is no longer                                                       needed.
      You may need to manually remove /usr/local/etc/nut/upsd.users if it is no longer                                                       needed.
      You may need to manually remove /usr/local/etc/nut/upsmon.conf if it is no longe                                                      r needed.
      [23.09-RELEASE][admin@pfSense.irwazu.co.uk]/tmp: pkg install -fy /tmp/armv7_nut-                                                      devel-2023.10.07_1.pkg
      Updating pfSense-core repository catalogue...
      Fetching meta.conf:   0%
      pfSense-core repository is up to date.
      Updating pfSense repository catalogue...
      Fetching meta.conf:   0%
      pfSense repository is up to date.
      All repositories are up to date.
      Checking integrity... done (0 conflicting)
      The following 1 package(s) will be affected (of 0 checked):
      
      New packages to be INSTALLED:
              nut-devel: 2023.10.07_1 [unknown-repository]
      
      Number of packages to be installed: 1
      
      The process will require 9 MiB more space.
      [1/1] Installing nut-devel-2023.10.07_1...
      ===> Creating groups.
      Using existing group 'nut'.
      Using existing group 'dialer'.
      ===> Creating users
      Using existing user 'nut'.
      Extracting nut-devel-2023.10.07_1: 100%    124 B   0.1kB/s    00:01
      
      Broadcast Message from root@pfSense.irwazu.co.uk
              (no tty) at 17:21 GMT...
      
      Communications with UPS EatonUPS lost
      
      
      Broadcast Message from root@pfSense.irwazu.co.uk
              (no tty) at 17:21 GMT...
      
      Communications with UPS EatonUPS established
      
      
      Broadcast Message from root@pfSense.irwazu.co.uk
              (no tty) at 17:21 GMT...
      
      UPS EatonUPS: administratively OFF or asleep
      
      
      Broadcast Message from root@pfSense.irwazu.co.uk
              (no tty) at 17:21 GMT...
      
      UPS EatonUPS on battery
      
      
      Broadcast Message from root@pfSense.irwazu.co.uk
              (no tty) at 17:21 GMT...
      
      Executing automatic power-fail shutdown
      
      
      
      Broadcast Message from root@pfSense.irwazu.co.uk
              (no tty) at 17:21 GMT...
      
      Auto logout and shutdown proceeding
      
      
      *** FINAL System shutdown message from root@pfSense.irwazu.co.uk ***
      
      System going down IMMEDIATELY
      
      
      
      Broadcast Message from root@pfSense.irwazu.co.uk
              (/dev/console) at 17:22 GMT...
      
      NUT killing power...
      

      I had not removed the "interruptonly" from the configuration.

      I unplugged the USB, power cycled the router, removed the "interruptonly" setting, and re-connected the USB from the UPS. After doing this everything appears to work as expected.

      Hardware: Eaton Ellipse Eco 650
      Driver: usbhid
      I have the "LISTEN" configuration to make the daemon available to other kit connected to the UPS.

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

        @DavidIr That is strange to say the least. Are you sure the NUT service was down? Do you have a service watchdog that might have restarted it?

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

          @dennypage for step 6 of the installation instructions I went in to the pfsense UI and pressed the restart button on the NUT service. Was that the step I got wrong?

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

            @DavidIr I don't see anything that you did wrong. Trying to understand how the shutdown could have been triggered.

            M 1 Reply Last reply Reply Quote 1
            • M
              mcury @dennypage
              last edited by

              Hello, I installed this version following the step-by-step provided above, and everything is working.
              Send a PM to the OP as he said is preferred. Device: SG-4100 | UPS: Eaton E5 650USB

              dead on arrival, nowhere to be found.

              1 Reply Last reply Reply Quote 1
              • W
                wirehead @dennypage
                last edited by

                @dennypage

                So far so good, resolves my issues also with a CP1500AVRLCDa via USB

                1 Reply Last reply Reply Quote 1
                • V
                  vizi0n
                  last edited by

                  nothing for CE 2.7.0 yet ? :(

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

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

                    nothing for CE 2.7.0 yet ?

                    I believe 2.7.1 will be the minimum version on the CE side, similar to how 23.09 is required on the Plus side.

                    V 1 Reply Last reply Reply Quote 1
                    • V
                      vizi0n @dennypage
                      last edited by

                      @dennypage indeed, installing 2.7.1RC also installed nut-devel-2023.10.07_1 under the 2.8.1 name.

                      So far, USB connectivity is already better ! Yay. Thanks

                      1 Reply Last reply Reply Quote 1
                      • UnoptanioU
                        Unoptanio @dennypage
                        last edited by Unoptanio

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

                        rican Power Conversion Smart-UPS1000 FW:UPS 16.1 / ID1047>

                        Hello,

                        for my RIELLO model Vision VST1100
                        https://www.riello-ups.it/products/1-gruppi-di-continuita/54-vision

                        [2.7.0-RELEASE][admin@xxxxxxxxxxx-pfSense.home.arpa]/root: usbconfig -d ugen2.2 show_ifdrv
                        ugen2.2: <Cypress Semiconductor USB to Serial> at usbus2, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
                        
                        

                        in pfsense i have this data from command usbconfig -v

                        ugen2.2: <Cypress Semiconductor USB to Serial> at usbus2, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
                        
                          bLength = 0x0012
                          bDescriptorType = 0x0001
                          bcdUSB = 0x0200
                          bDeviceClass = 0x0000  <Probed by interface class>
                          bDeviceSubClass = 0x0000
                          bDeviceProtocol = 0x0000
                          bMaxPacketSize0 = 0x0008
                          idVendor = 0x04b4
                          idProduct = 0x5500
                          bcdDevice = 0x0001
                          iManufacturer = 0x0001  <Cypress Semiconductor>
                          iProduct = 0x0002  <USB to Serial>
                          iSerialNumber = 0x0000  <no string>
                          bNumConfigurations = 0x0001
                        
                        
                         Configuration index 0
                        
                            bLength = 0x0009
                            bDescriptorType = 0x0002
                            wTotalLength = 0x0029
                            bNumInterfaces = 0x0001
                            bConfigurationValue = 0x0001
                            iConfiguration = 0x0003  <Sample HID>
                            bmAttributes = 0x0080
                            bMaxPower = 0x0032
                        
                            Interface 0
                              bLength = 0x0009
                              bDescriptorType = 0x0004
                              bInterfaceNumber = 0x0000
                              bAlternateSetting = 0x0000
                              bNumEndpoints = 0x0002
                              bInterfaceClass = 0x0003  <HID device>
                              bInterfaceSubClass = 0x0000
                              bInterfaceProtocol = 0x0000
                              iInterface = 0x0004  <EndPoint1 Interrupt Pipe>
                        
                              Additional Descriptor
                        
                              bLength = 0x09
                              bDescriptorType = 0x21
                              bDescriptorSubType = 0x11
                               RAW dump:
                               0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x25,
                               0x08 | 0x00
                        
                             Endpoint 0
                                bLength = 0x0007
                                bDescriptorType = 0x0005
                                bEndpointAddress = 0x0081  <IN>
                                bmAttributes = 0x0003  <INTERRUPT>
                                wMaxPacketSize = 0x0008
                                bInterval = 0x000a
                                bRefresh = 0x0000
                                bSynchAddress = 0x0000
                        
                             Endpoint 1
                                bLength = 0x0007
                                bDescriptorType = 0x0005
                                bEndpointAddress = 0x0002  <OUT>
                                bmAttributes = 0x0003  <INTERRUPT>
                                wMaxPacketSize = 0x0008
                                bInterval = 0x000a
                                bRefresh = 0x0000
                                bSynchAddress = 0x0000
                        
                        

                        [2.7.0-RELEASE][admin@xxxxxx-pfSense.home.arpa]/root:
                        [2.7.0-RELEASE][admin@xxxxxx-pfSense.home.arpa]/root: usbconfig -d ugen2.2 detach_kernel_driver
                        [2.7.0-RELEASE][admin@xxxxxx-pfSense.home.arpa]/root: usbconfig -d ugen2.2 show_ifdrv
                        ugen2.2: <Cypress Semiconductor USB to Serial> at usbus2, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
                        [2.7.0-RELEASE][admin@xxxxxx-pfSense.home.arpa]/root:
                        [2.7.0-RELEASE][admin@xxxxxx-pfSense.home.arpa]/root: usbconfig dump_device_quirks | grep HID_IGNORE
                        VID=0x0b05 PID=0x1726 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x051d PID=0x0002 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x051d PID=0x0003 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x050d PID=0x0375 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x050d PID=0x0551 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x050d PID=0x0750 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x050d PID=0x0751 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x050d PID=0x0900 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x050d PID=0x0910 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x050d PID=0x0912 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x050d PID=0x0980 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x050d PID=0x1100 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0764 PID=0x0005 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0764 PID=0x0501 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0764 PID=0x0601 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x047c PID=0xffff REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x04b4 PID=0xfd13 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x1163 PID=0x0100 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x1d34 PID=0x0004 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x04d8 PID=0x0002 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x04d8 PID=0xc001 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x06da PID=0xffff REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x10af PID=0x0004 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x10af PID=0x0001 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0463 PID=0x0001 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0463 PID=0xffff REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0d9f PID=0x00a2 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0d9f PID=0x00a3 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0d9f PID=0x00a4 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0d9f PID=0x00a5 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0d9f PID=0x00a6 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x1003 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x1007 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x1008 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x1f06 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x1f0a REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x2005 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x2007 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x3012 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x3014 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x4001 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x4002 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x09ae PID=0x4003 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x05ac PID=0x1290 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x05ac PID=0x1292 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x0665 PID=0x5161 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x04b4 PID=0x0bad REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x1781 PID=0x083e REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x1781 PID=0x083f REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        VID=0x1dd5 PID=0x5000 REVLO=0x0000 REVHI=0xffff QUIRK=UQ_HID_IGNORE
                        [2.7.0-RELEASE][admin@xxxxxx-pfSense.home.arpa]/root:

                        Is THIS my new quirk for Riello VST1100?

                        hw.usb.quirk.0="0x04b4 0x5500 0x0000 0xffff UQ_HID_IGNORE"

                        50b59b8f-ac59-40c0-bcc7-e81cb4c9aaa1-image.png

                        It seems like the new quirk isn't working

                        one moment....correction....I disconnected the USB cable and reconnected...I re-executed the command: "/usr/local/etc/rc.d/nut.sh start"

                        Result:

                        34955a35-ae6c-4d18-b4c9-ce83d57c26b0-image.png

                        Have we reached the final solution? 🤔 🤔 🤔

                        Can I add my new quirk into the bootloader?

                        Can you write me the complete command?

                        .......
                        maybe I found it, can you confirm?
                        nano /boot/loader.conf

                        30fec345-bb25-409e-b383-ce02d9d6c0b2-image.png

                        I shut down the system and restart

                        OK!!!

                        UPS Working after system reboot.
                        Without any settings Extra arguments to the driver (optional)

                        151207c0-08ce-46f4-9194-92dea52e8113-image.png

                        8217b401-0d01-42be-8e01-bbee351a2f7b-image.png

                        9207c99e-5e16-4362-8c06-16cfc57e9c5a-image.png

                        hw.usb.quirk.0="0x04b4 0x5500 0x0000 0xffff UQ_HID_IGNORE"

                        I also own UPS Riello Sentinel Pro 2200 and Riello Sentinel Dual SDU 6Kw.

                        As soon as I have time I'll check if the quirk also applies to this other UPS or if it has a different one

                        .Test in progress ........
                        Confirm: Quirk for Riello VST1100 also works on Riello Sentinel Pro 2200

                        51e9cbf1-d87c-4049-8add-8f633e93bd0f-image.png
                        de48f55c-748c-459d-b1f5-508128733eef-image.png
                        6a7db0b8-1c18-4193-8ff7-8e4afdbfef66-image.png

                        pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
                        CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
                        n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

                        dennypageD GertjanG 2 Replies Last reply Reply Quote 1
                        • UnoptanioU Unoptanio referenced this topic on
                        • dennypageD
                          dennypage @Unoptanio
                          last edited by

                          @Unoptanio Good job!

                          1 Reply Last reply Reply Quote 0
                          • dennypageD dennypage referenced this topic on
                          • GertjanG Gertjan referenced this topic on
                          • dennypageD dennypage referenced this topic on
                          • D
                            dmitri
                            last edited by

                            I'm on 2.7CE, recently updated to NUT package 2.8.1 and started to have issues connecting to the remote NUT server. I have a UPS plugged into another machine (truenas) and pfSense connects to that machine over the network to get the UPS data. Has been working great since I've set this up a couple of years ago, but now the NUT service fails to start. Nothing in the System logs.

                            I've added "RUN_AS_USER root" to the upsmon.conf and "user=root" to ups.conf. But those didn't have any effect.

                            Any other suggestions?

                            K dennypageD 3 Replies Last reply Reply Quote 0
                            • K
                              KarB1NE @dmitri
                              last edited by

                              @dmitri I believe you need to be either on pfSense CE 2.7.1 or pfSense Plus 23.09 for NUT 2.8.1 to work.

                              D 1 Reply Last reply Reply Quote 1
                              • D
                                dmitri @KarB1NE
                                last edited by

                                @KarB1NE hmm. I'll give that a try in the coming days. I'm surprised that being on 2.7 it allows you to update to a package not compatible with that version. But certainly, that could be the issue. Thanks!

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

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

                                  I'm on 2.7CE, recently updated to NUT package 2.8.1

                                  Can you clarify? Did you update the NUT package my hand?

                                  Currently, for pfSense 23.09 or 2.7.0 I would expect NUT 2.8.0_2 as the package version. NUT 2.8.1 would be expected with either pfSense 23.09 or 2.7.1 only as a test version only.

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

                                    @dennypage I didn't update by hand, used the Package Manager. But, I think I know what may have happened: I was trying to update to CE 2.7.1-RC and changed the branch (even though I'm still on 2.7), and that may have caused the new NUT package to show up.

                                    Now I'm unable to upgradeto 2.7.1, however. The Update page says I'm on the latest 2.7. Even if I change to 2.7.1-RC branch. May need to force-upgrade it.

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

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

                                      I've added "RUN_AS_USER root" to the upsmon.conf and "user=root" to ups.conf. But those didn't have any effect.

                                      FYI, if you are using a remote nut connection, you are not running upsd.

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

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

                                        I didn't update by hand, used the Package Manager. But, I think I know what may have happened: I was trying to update to CE 2.7.1-RC and changed the branch (even though I'm still on 2.7), and that may have caused the new NUT package to show up.

                                        Okay, now that makes more sense.

                                        The upsmon from 2.8.1 isn't going to be able to start in a 2.7.0 system because libraries that it needs, such as OpenSSL 3, are not there.

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

                                          @dennypage

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

                                          FYI, if you are using a remote nut connection, you are not running upsd.

                                          Yeah, I guess I was just shooting in the dark at this point :). I've since removed those lines.

                                          After upgrading to 2.7.1-RC the issues went away. Thanks for the help!

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

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

                                            After upgrading to 2.7.1-RC the issues went away.

                                            Are you running NUT 2.8.1 there?

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