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.3m 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.
    • J
      JPP 0 @JPP 0
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • J
        JPP 0 @whoami TM
        last edited by JPP 0

        @whoami-tm have you tried this

        [23.01-RELEASE][root@gatekeeper]/root: upsrw -s ups.delay.shutdown tripplite
        Username (root): admin
        Password: 
        Enter new value for ups.delay.shutdown: 59
        OK
        

        sub in your ups name and get the password for admin from /usr/local/etc/nut/upsd.users

        ups.delay.shutdown seems to be the only value you can program but if I'm reading it correctly it should let you make it wait longer before powering off.

        1 Reply Last reply Reply Quote 0
        • D
          dreadful9278
          last edited by

          I'm using a CyberPower UPS, and I'm experiencing the same signal 10 error. I've found the interruptonly setting to work until the USB issue is resolved.

          If there is anything I can do to help/test a fix then let me know :-)

          Anecdotally I've noticed my firewall's processor is running hotter than it used to, I don't think the CPU is idling properly not sure if anyone else is noticing a similar problem and if it is related in some way.

          1 Reply Last reply Reply Quote 0
          • L
            LamaZ
            last edited by

            @dennypage I just wanted to thank you again sincerely for this post and for finding my erroneous post. This research has made the upgrade to pfSense+ 23.01 stable.

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

              @lamaz You're welcome. Glad it's working for you.

              1 Reply Last reply Reply Quote 0
              • demD dem referenced this topic on
              • demD dem referenced this topic on
              • demD dem referenced this topic on
              • T
                trentk10
                last edited by trentk10

                Thanks for the work everyone has put into this so far.

                Decided to upgrade from 2.6 CE to plus 23.01 today. Having the same issues as others are too. Looks to be with the usb driver. Started happening shortly after updrade completed.

                I am getting the same results after adding root as a user.

                
                Mar  8 21:53:35 pfSense upsd[9141]: Can't connect to UPS [eaton9130rm] (usbhid-ups-eaton9130rm): Connection refused
                Mar  8 21:53:35 pfSense kernel: pid 8842 (usbhid-ups), jid 0, uid 0: exited on signal 10
                Mar  8 21:53:39 pfSense upsmon[1672]: Poll UPS [eaton9130rm] failed - Driver not connected
                Mar  8 21:53:39 pfSense upsmon[1672]: Communications with UPS eaton9130rm lost
                Mar  8 21:53:45 pfSense upsmon[1672]: Poll UPS [eaton9130rm] failed - Driver not connected
                Mar  8 21:53:50 pfSense upsmon[1672]: Poll UPS [eaton9130rm] failed - Driver not connected
                Mar  8 21:53:55 pfSense upsmon[1672]: Poll UPS [eaton9130rm] failed - Driver not connected
                
                
                dennypageD 1 Reply Last reply Reply Quote 0
                • dennypageD
                  dennypage @trentk10
                  last edited by

                  @trentk10 said in NUT package:

                  Mar 8 21:53:35 pfSense kernel: pid 8842 (usbhid-ups), jid 0, uid 0: exited on signal 10

                  Unfortunately, this is being hit by a lot of people with NUT 8.0. See this post for information.

                  1 Reply Last reply Reply Quote 1
                  • dennypageD dennypage referenced this topic on
                  • D
                    DavidIr @dennypage
                    last edited by

                    @dennypage I seem to have a similar but possibly different problem.

                    My UPS is an Eaton Eclipse ECO 650 connected by USB to my Netgate-3100 running 23.01-RELEASE (arm) with NUT 2.8.0_2.

                    Note: the setup worked perfectly before my update to 23.01 and 2.8.0 for over 6 months, there have been no powercuts/surges or hardware changes.

                    As with others I am seeing repeated log entries from upsmon.

                    Mar 12 09:57:09	upsmon	80760	Poll UPS [EatonUPS] failed - Driver not connected
                    Mar 12 09:57:04	upsmon	80760	Poll UPS [EatonUPS] failed - Driver not connected
                    

                    If I filter my logs to upshid-ups I only see the following:

                    Mar 9 22:26:16	usbhid-ups	91631	Startup successful
                    Mar 9 22:26:09	usbhid-ups	70838	Signal 15: exiting
                    Mar 9 22:20:46	usbhid-ups	70838	Startup successful
                    Mar 9 22:20:41	usbhid-ups	47718	Signal 15: exiting
                    Mar 9 22:13:14	usbhid-ups	47718	Startup successful
                    Mar 9 22:10:05	usbhid-ups	75991	Signal 15: exiting
                    Mar 9 21:57:06	usbhid-ups	75991	Startup successful
                    

                    If I filter the logs to upsd I see:

                    Mar 12 09:07:25	upsd	82791	Can't connect to UPS [EatonUPS] (usbhid-ups-EatonUPS): Connection refused
                    Mar 12 09:02:25	upsd	82791	Can't connect to UPS [EatonUPS] (usbhid-ups-EatonUPS): Connection refused
                    Mar 12 08:57:25	upsd	82791	Can't connect to UPS [EatonUPS] (usbhid-ups-EatonUPS): Connection refused
                    Mar 12 08:52:25	upsd	82791	Can't connect to UPS [EatonUPS] (usbhid-ups-EatonUPS): Connection refused
                    Mar 9 22:26:16	upsd	82791	Connected to UPS [EatonUPS]: usbhid-ups-EatonUPS
                    Mar 9 22:26:14	upsd	82791	User local-monitor@::1 logged into UPS [EatonUPS]
                    Mar 9 22:26:10	upsd	82791	Startup successful
                    Mar 9 22:26:10	upsd	82791	Can't connect to UPS [EatonUPS] (usbhid-ups-EatonUPS): No such file or directory
                    Mar 9 22:26:10	upsd	82791	not listening on 127.0.0.1 port 3493
                    Mar 9 22:26:10	upsd	82791	listening on ::1 port 3493
                    Mar 9 22:26:10	upsd	82791	listening on 127.0.0.1 port 3493
                    Mar 9 22:26:10	upsd	82791	not listening on 192.168.200.254 port 3493
                    Mar 9 22:26:10	upsd	82791	listening on pfsense.{internaldomainname} port 3493
                    Mar 9 22:26:09	upsd	62680	Signal 15: exiting
                    Mar 9 22:26:09	upsd	62680	mainloop: Interrupted system call
                    Mar 9 22:26:09	upsd	62680	User local-monitor@::1 logged out from UPS [EatonUPS]
                    

                    This morning the failure occurred at 08:52 (from notification email):

                    8:52:27 UPS Notification from pfSense.irwazu.co.uk - Sun, 12 Mar 2023 08:52:27 +0000
                    
                    Communications with UPS EatonUPS lost
                    

                    My configuration is extra arguments to driver:

                    pollfreq=90
                    

                    Additional configuration lines for upsmon.conf

                    RUN_AS_USER root
                    

                    Additional configuration lines for ups.conf

                    user=root
                    pollinterval=15
                    

                    Other than using the "interruptonly" option is there anything I can do to resolve or help debug the cause? Is this likely the same issue as for CyberPower UPSs you've already identified?

                    Full logs of a restart of the UPS service are as follows:

                    Mar 12 10:05:19	upsmon	69168	Communications with UPS EatonUPS established
                    Mar 12 10:05:16	upsd	70834	Connected to UPS [EatonUPS]: usbhid-ups-EatonUPS
                    Mar 12 10:05:15	usbhid-ups	80232	Startup successful
                    Mar 12 10:05:14	upsmon	69168	UPS EatonUPS is unavailable
                    Mar 12 10:05:14	upsmon	69168	Poll UPS [EatonUPS] failed - Driver not connected
                    Mar 12 10:05:14	upsd	70834	User local-monitor@::1 logged into UPS [EatonUPS]
                    Mar 12 10:05:10	upsd	70834	Startup successful
                    Mar 12 10:05:10	upsd	70834	Can't connect to UPS [EatonUPS] (usbhid-ups-EatonUPS): Connection refused
                    Mar 12 10:05:10	upsd	70834	not listening on 127.0.0.1 port 3493
                    Mar 12 10:05:10	upsd	70834	listening on ::1 port 3493
                    Mar 12 10:05:10	upsd	70834	listening on 127.0.0.1 port 3493
                    Mar 12 10:05:10	upsd	70834	not listening on 192.168.200.254 port 3493
                    Mar 12 10:05:10	upsd	70834	listening on pfsense.irwazu.co.uk port 3493
                    Mar 12 10:05:09	upsmon	69168	Communications with UPS EatonUPS lost
                    Mar 12 10:05:09	upsmon	69168	UPS [EatonUPS]: connect failed: Connection failure: Connection refused
                    Mar 12 10:05:09	upsmon	69168	Startup successful
                    Mar 12 10:05:08	upsd	82791	Signal 15: exiting
                    Mar 12 10:05:08	upsd	82791	mainloop: Interrupted system call
                    Mar 12 10:05:08	upsd	82791	User local-monitor@::1 logged out from UPS [EatonUPS]
                    Mar 12 10:05:08	upsmon	80760	Signal 15: exiting
                    Mar 12 10:05:07	upsmon	80760	Poll UPS [EatonUPS] failed - Driver not connected
                    

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

                      @davidir Your log messages do not show anything particularly unusual. Signal 15 indicates that the usbhid-ups process was terminated via a kill signal. This is usually triggered by a package restart such was when your DHCP WAN address changes.

                      Btw, not sure what you are intending to do with the poll interval settings. Given that you are using a usb connection, there is a good reason to be setting these, particularly pollinterval in ups.conf which may negatively affect your shutdown. Unless you have a very concrete problem that you are fixing, I would recommend that you remove both of them. As well as the RUN_AS_USER setting in upsmon.conf.

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

                        I've received several requests for the dev build of usbhid-ups, so I thought I would upload the file here.

                        usbhid-ups.gz

                        For reference, the shasum and sha256sum checksums of the unzipped file are:

                        49ce9131502bfb8b789ee97b7fb3fc81fc9f8fff  usbhid-ups
                        999a2653559dbc50ecc8ba592a67587b1e307a1495f6e8ebbd3d8e90e3967133  usbhid-ups
                        

                        If you use the file, please post and let me know if it resolves an issue for you.

                        P O demD J M 6 Replies Last reply Reply Quote 6
                        • P
                          PatRyan @dennypage
                          last edited by

                          @dennypage thank you very much for this. I loaded it up today and so far, it has continued to run for about 5 hours. I'll report back tomorrow to let you know if it hangs up overnight.

                          For other folks' information, I put the file Denny shared into /usr/local/libexec/nut replacing the file already there. (Be sure to make a copy of the original in case this doesn't work for you.) Make sure that the permissions are set to rwxr-xr-x (0755). Also I had to include "user=root" in the ups.conf section in pfSense.

                          Thanks again Denny.

                          dennypageD P 2 Replies Last reply Reply Quote 2
                          • dennypageD
                            dennypage @PatRyan
                            last edited by

                            @patryan said in NUT package:

                            Thanks again Denny.

                            Welcome!

                            1 Reply Last reply Reply Quote 0
                            • P
                              PatRyan @PatRyan
                              last edited by

                              Update - No issues overnight still running fine and serving my network as a NUT Server. Updated to the latest 2.7.0 Devel build this morning and UPS service started up without a hiccup. Very pleased.

                              FYI, I have a CyberPower CP1500PFCLCD and it is connected to my pfSense box via the supplied USB cable.

                              1 Reply Last reply Reply Quote 1
                              • O
                                OffstageRoller @dennypage
                                last edited by

                                @dennypage said in NUT package:

                                I've received several requests for the dev build of usbhid-ups, so I thought I would upload the file here.

                                usbhid-ups.gz

                                For reference, the shasum and sha256sum checksums of the unzipped file are:

                                49ce9131502bfb8b789ee97b7fb3fc81fc9f8fff  usbhid-ups
                                999a2653559dbc50ecc8ba592a67587b1e307a1495f6e8ebbd3d8e90e3967133  usbhid-ups
                                

                                If you use the file, please post and let me know if it resolves an issue for you.

                                So far so good for me with a Trip Lite SMART1500LCD! It's only been an hour, but it has stayed connected and my logs are no longer getting spammed by disconnects/connects.

                                O 1 Reply Last reply Reply Quote 1
                                • V viragomann referenced this topic on
                                • V viragomann referenced this topic on
                                • O
                                  OffstageRoller @OffstageRoller
                                  last edited by

                                  @offstageroller said in NUT package:

                                  @dennypage said in NUT package:

                                  I've received several requests for the dev build of usbhid-ups, so I thought I would upload the file here.

                                  usbhid-ups.gz

                                  For reference, the shasum and sha256sum checksums of the unzipped file are:

                                  49ce9131502bfb8b789ee97b7fb3fc81fc9f8fff  usbhid-ups
                                  999a2653559dbc50ecc8ba592a67587b1e307a1495f6e8ebbd3d8e90e3967133  usbhid-ups
                                  

                                  If you use the file, please post and let me know if it resolves an issue for you.

                                  So far so good for me with a Trip Lite SMART1500LCD! It's only been an hour, but it has stayed connected and my logs are no longer getting spammed by disconnects/connects.

                                  I'm at about 8 hours now, with no issues to report. All is well again with my USB connection to my UPS!

                                  1 Reply Last reply Reply Quote 0
                                  • knight-of-niK
                                    knight-of-ni
                                    last edited by knight-of-ni

                                    Hey guys. Mind if I join the party?

                                    I upgraded from from 2.6 CE to 23.01 plus today, to get support for the 2.5Gbps nics in my firewall.

                                    Unfortunately after the upgrade, NUT started failing because it couldn't claim the USB device:

                                    Can't claim USB device [051d:0003]@0/0: Other error
                                    

                                    UPS is a APC Smart-UPS 1500.

                                    Did a little searching, found it was a permission error, and eventually found this thread.

                                    Looks like I found the right place.

                                    I've gone back through this thread about a month and started reading.

                                    Adding user=root to ups.conf got things going again. However, I'd call that a workaround. If I read right, looks like I need to wait for the next release of NUT for a real fix.

                                    At the moment I am not using @dennypage's custom usbhid-ups. If my UPS does not stay online, I'll apply it and post results.

                                    I'll be keeping an eye on this thread for new information.

                                    dennypageD 1 Reply Last reply Reply Quote 0
                                    • dennypageD
                                      dennypage @knight-of-ni
                                      last edited by

                                      @knight-of-ni said in NUT package:

                                      Adding user=root to ups.conf got things going again. However, I'd call that a workaround. If I read right, looks like I need to wait for the next release of NUT for a real fix.

                                      While the next release of nut is expected to address the CyberPower issue, it will not address the APC issue. The APC issue is a usb quirk issue, and this requires a new version of the kernel in pfSense to permanently resolve. I don't expect that to happen soon.

                                      See here for further details of the APC issue. I recommend using the /boot/loader.conf.local solution if you can take a reboot.

                                      JeGrJ 1 Reply Last reply Reply Quote 1
                                      • dennypageD dennypage referenced this topic on
                                      • demD
                                        dem @dennypage
                                        last edited by

                                        @dennypage said in NUT package:

                                        If you use the file, please post and let me know if it resolves an issue for you.

                                        Your version of usbhid-ups has been working fine with my CyberPower for 48 hours now. Thanks.

                                        1 Reply Last reply Reply Quote 1
                                        • J
                                          jwfox5150 @dennypage
                                          last edited by jwfox5150

                                          @dennypage said in NUT package:

                                          If you use the file, please post and let me know if it resolves an issue for you.

                                          I was experiencing the same issue and using this version of usbhid-ups has resolved the issue. Many thanks, that was driving me NUTS (pun intended)

                                          1 Reply Last reply Reply Quote 1
                                          • JeGrJ
                                            JeGr LAYER 8 Moderator @dennypage
                                            last edited by

                                            @dennypage Quick question: is the NUT package somehow dependent on other services or is integrated into a service hook since 23.01? After upgrading I have NUT alert messages all over the place for things that are completely unrealted to the UPS.
                                            E.g. resetting or reconfiguring a gateway, doing configurations on WAN or VPNs if the interface is assigned etc. all seem to trigger "problems" with NUT loosing and regaining connection to the UPS. UPS attached is an APC BackUPS via USB that ran well before without being trigger happy with notifications when interface/gateway/routing things are happening. Now just touching some of those things seem to trigger a connection loss from NUT. Really confusing 😵
                                            😄

                                            Cheers
                                            \jens

                                            Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                                            If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

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