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

    NUT with Riello Sentinel Pro 2200 USB connection cant make it work

    Scheduled Pinned Locked Moved UPS Tools
    66 Posts 3 Posters 13.0k 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.
    • UnoptanioU
      Unoptanio @dennypage
      last edited by

      @dennypage

      In your opinion, why doesn't it start when pfsense is started for the first time?

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

        @Unoptanio All that stuff from upsd and upsmon simply indicate that your driver (usbhid-ups) is not running.

        You need the log entries for usbhid-ups. Those are the ones you care about.

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

          @Unoptanio said in NUT with Riello Sentinel Pro 2200 USB connection cant make it work:

          In your opinion, why doesn't it start when pfsense is started for the first time?

          If you do a normal reboot (not reroot), does it work at startup?

          If not, please post the log entries for usbhid-ups.

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

            @dennypage
            with normal reboot same problem
            8c701a8b-f2b0-4165-a9b1-21a6b041f994-image.png
            b4414bde-5026-446c-a750-14b5a3154d57-image.png

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

              @Unoptanio As noted, you need the log entries for usbhid-ups. You do not need to post any log entries for upsd or upsmon.

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

                @dennypage said in NUT with Riello Sentinel Pro 2200 USB connection cant make it work:

                usbhid-up

                can't find anything for usbhid-up
                30c40005-1f8b-43e0-ac56-74ea24cc3d26-image.png

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

                  @Unoptanio said in NUT with Riello Sentinel Pro 2200 USB connection cant make it work:

                  can't find anything for usbhid-up

                  Well, that's a problem. 😕

                  If you have anything left in the Extra Arguments to driver section or the Additional configuration lines for upsmon.conf section, please remove it and try again.

                  Also, if you have a bunch of stuff filling your logs, it might be easier to log into the system and execute this command instead:

                  grep usbhid-ups /var/log/system.log*
                  
                  UnoptanioU 1 Reply Last reply Reply Quote 0
                  • UnoptanioU
                    Unoptanio @dennypage
                    last edited by Unoptanio

                    @dennypage

                    null

                    fba42959-418e-47b2-8ff5-30a9ae364b23-image.png
                    974d6a5a-266b-4874-8765-7f7d483a63e9-image.png
                    e164dfef-0ee5-479a-83af-07c5a378a3c0-image.png

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

                      @Unoptanio

                      I clicked on SAVE now it goes. but the next reboot same problem

                      Very strange it only happens with this Riello Sentinel Pro 2200

                      44316c27-065c-4d3c-aa4b-6f068986a209-image.png

                      a352891d-dc06-4139-a4a8-40e7ec789957-image.png

                      dae5eb11-d4cb-4283-bc6e-7fc651755a7f-image.png

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

                        @Unoptanio

                        @dennypage said in NUT with Riello Sentinel Pro 2200 USB connection cant make it work:

                        If you have anything left in the Extra Arguments to driver section or the Additional configuration lines for upsmon.conf section, please remove it and try again.

                        You still have debug_min = 6 in the Extra Arguments to driver section. Please remove it.

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

                          @dennypage said in NUT with Riello Sentinel Pro 2200 USB connection cant make it work:

                          ncora debug_min = 6 nella sezione Argomenti aggiuntivi al driver. Per favore rimuovilo.

                          Rispondi al preventivo 0

                          ok. removed debug_min = 6 Save and now i reboot one moment....

                          😥 😥 😥
                          same problem

                          c7e2f7e6-c652-4724-a0b4-9c830fca26b7-image.png

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

                            click on restart.....now work
                            When I first start pfsense it never works

                            1f69c048-0699-4718-af25-f9e942540f9d-image.png

                            7315fcaa-1b9f-4c64-b63a-8b73e40ae82a-image.png

                            all empty
                            cadcb105-0b61-4568-9b57-1f7687c9fb7c-image.png

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

                              @Unoptanio We still need the log entries for usbhid-ups. I suggest that you log into the system and use the grep command show above to get the entries.

                              If you can't find anything for usbhid-ups, then post the entire log for the first two minutes following a reboot. If you are worried about sensitive information, you can PM me instead.

                              While you are there, can you also get the content of these two files please:

                              /usr/local/etc/nut/ups.conf
                              /usr/local/etc/rc.d/nut.sh
                              
                              UnoptanioU 1 Reply Last reply Reply Quote 0
                              • UnoptanioU
                                Unoptanio @dennypage
                                last edited by Unoptanio

                                @dennypage

                                ups.conf

                                #!/bin/sh
                                # This file was automatically generated
                                # by the pfSense service handler.
                                
                                rc_start() {
                                	echo starting NUT
                                	/usr/bin/killall -q -9 upsmon
                                	/usr/bin/killall -q -9 upsd
                                	/usr/bin/killall -q -9 upsdrvctl
                                	/usr/bin/killall -q -9 riello_usb
                                	/usr/local/sbin/upsmon
                                	/usr/local/sbin/upsdrvctl start &
                                	sleep 1
                                	/usr/local/sbin/upsd -u root
                                	return 0
                                }
                                
                                rc_stop() {
                                	echo stopping NUT
                                	/usr/bin/killall -q upsmon
                                	/usr/bin/killall -q upsd
                                	/usr/bin/killall -q upsdrvctl
                                	/usr/bin/killall -q riello_usb
                                	return 0
                                }
                                
                                rc_restart() {
                                	rc_stop
                                	rc_start
                                
                                }
                                
                                case $1 in
                                	start)
                                		rc_start
                                		;;
                                	stop)
                                		rc_stop
                                		;;
                                	restart)
                                		rc_restart
                                		;;
                                esac
                                
                                
                                

                                nut.sh

                                [SentinelPro]
                                driver=riello_usb
                                port=auto
                                
                                UnoptanioU dennypageD 2 Replies Last reply Reply Quote 0
                                • UnoptanioU
                                  Unoptanio @Unoptanio
                                  last edited by Unoptanio

                                  This post is deleted!
                                  UnoptanioU dennypageD 2 Replies Last reply Reply Quote 0
                                  • UnoptanioU
                                    Unoptanio @Unoptanio
                                    last edited by Unoptanio

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • dennypageD
                                      dennypage @Unoptanio
                                      last edited by

                                      @Unoptanio said in NUT with Riello Sentinel Pro 2200 USB connection cant make it work:

                                      riello_usb

                                      Well, there's the first issue. My bad. I was telling you to look for usbhid-ups, but your driver is riello_usb.

                                      Sorry about that!

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

                                        @Unoptanio The full logs were very insightful.

                                        NUT is being started twice in quick succession at boot. It looks like all packages are being stopped and restarted due to high initial packet loss on the WAN immediately after startup.

                                        It's not clear clear to me why the riello driver unable able to properly communicate with the UPS on the second attempt. The first connection takes ~1 second, while the second takes ~9. Definitely not normal. Perhaps the USB connection is lingering somehow, or perhaps the UPS is overly stateful and isn't in a welcoming state for the second connection. I don't know--those are just guesses.

                                        There are a couple of things I can suggest:

                                        1. If you haven't already installed the 2.8.1 test version discussed in the main NUT support thread, I would recommend doing so. There are a lot of changes in the riello driver post 2.8.0.
                                        2. You can try adding maxretry=10 to the Extra Arguments to driver section. This will instruct the driver to retry the initial connection to the riello up to 10 times, with a 5 second delay between each attempt.

                                        In bocca al lupo

                                        UnoptanioU 2 Replies Last reply Reply Quote 0
                                        • UnoptanioU
                                          Unoptanio @dennypage
                                          last edited by Unoptanio

                                          @dennypage

                                          whit

                                          maxretry=10
                                          

                                          it never works

                                          😭 😭 😭

                                          I'll try changing the USB port and also the USB cable

                                          OK thanks for the support.
                                          Do you know when there will be an automatic update of the Nut 2.8.1 package in pfsense?

                                          I saw that the official stable version of free BSD 14 should be released soon. (14 november)
                                          I think that after November 14th a new version of Pfsense will be released accordingly
                                          https://redmine.pfsense.org/projects/pfsense/roadmap
                                          https://docs.netgate.com/pfsense/en/latest/releases/versions.html

                                          6285c52d-3cb8-4e9d-a0b6-84a338984e14-image.png

                                          https://www.freebsd.org/releases/14.0R/schedule/
                                          a8a0208c-15fb-46e8-8ec2-680e55e597b9-image.png

                                          https://networkupstools.org/
                                          09ba35d0-aca7-40c7-9771-840417df952c-image.png

                                          dennypageD 2 Replies Last reply Reply Quote 0
                                          • UnoptanioU
                                            Unoptanio @dennypage
                                            last edited by Unoptanio

                                            @dennypage

                                            Can you take care of reporting the Riello VST1100 UPS quirk to freeBSD to automatically insert it into the operating system?
                                            hw.usb.quirk.0="0x04b4 0x5500 0x0000 0xffff UQ_HID_IGNORE"

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