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

    NUT APC Smart UPS 1500 Service Failed to Start

    Scheduled Pinned Locked Moved pfSense Packages
    17 Posts 6 Posters 23.3k 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.
    • U Offline
      UnderCover
      last edited by

      i get this error when i try to manually uninstall

      pkg_delete nut-2.0.4

      pkg_delete: package 'nut-2.0.4' is required by these other packages
      and may not be deinstalled:
      nut-usb-2.0.4

      so i went ot the gui and hit the x on th nut package in installed packages and it deleted ok

      then i did this and it gave me the warning below

      pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/All/nut-2.2.0bz

      Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/All/nut-2.2.0.z… Done.
      pkg_add: warning: package 'nut-2.2.0' requires 'perl-5.8.8_1', but 'perl-5.8.8' is instald

      then i navigated to /usr/local/pkg/

      and there is no nut.xml

      ls

      bandwidthd.inc          miniupnpd.xml           openvpn_cli.xml
      bandwidthd.xml          olsrd.xml               openvpn_csc.xml
      carp.xml                openntpd.inc            pf
      carp_settings.xml       openntpd.xml            routed
      miniupnpd.inc           openvpn.xml             sasyncd.xml

      pwd

      /usr/local/pkg

      also on the web gui there is no installed package with the word nut in it

      so where do i go from next?

      Thanks for your time and help

      EDIT:

      just for testing..

      I uninstalled 2.2.0 and installed the nut 2.0.4 from the web interface and reconfigured the nut gui to SMART-UPS USB and ran the command you told me

      /usr/local/etc/rc.d/nut.sh start

      starting newhidups
      Network UPS Tools - UPS driver controller 2.0.4
      Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)

      No matching USB/HID UPS found
      Driver failed to start (exit status=1)
      newhidups failed to start

      1 Reply Last reply Reply Quote 0
      • R Offline
        rsw686
        last edited by

        Did you try to start it from the console with nut.sh??

        Like I said it is NOT supported. I might not give directions next time as I really don't want to deal with this. The correct thing would have been to uninstall nut-usb-2.0.4 like it mentioned when you went to delete nut-2.0.4. Then you could have removed it.

        The reason the nut.xml file isn't there is you removed the package from the gui. That removes the pfSense gui files for it. I'm thinking you will need to uninstall nut-2.2.0 from the console, reinstall the package, remove nut-2.0.4, then reinstall nut-2.2.0.

        1 Reply Last reply Reply Quote 0
        • U Offline
          UnderCover
          last edited by

          thank you for your help

          /usr/local/etc/rc.d/nut.sh start

          starting usbhid-ups
          Network UPS Tools - UPS driver controller 2.2.0
          Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.2.0)

          No matching HID UPS found
          Driver failed to start (exit status=1)
          usbhid-ups failed to start

          i still get this error… i guess my APC Smart UPS 1500 is not supported, i am going to try my serial cable and see if i can get any luck out of that

          1 Reply Last reply Reply Quote 0
          • U Offline
            UnderCover
            last edited by

            SUCCESS

            i got the serial cable to work with it

            /usr/local/etc/rc.d/nut.sh start

            starting apcsmart
            Network UPS Tools - UPS driver controller 2.2.0
            Network UPS Tools (version 2.2.0) - APC Smart protocol driver
                    Driver version 1.99.8, command table version 2.0
            Detected Smart-UPS 1500 [AS0741231626(] on /dev/ttyd0
            starting upsd
            Network UPS Tools upsd 2.2.0
            listening on 0.0.0.0 port 3493
            Connected to UPS [Battery2]: apcsmart-Battery2
            starting upsmon
            Network UPS Tools upsmon 2.2.0
            UPS: Battery2@localhost (master) (power value 1)
            Using power down flag file /etc/killpower

            thanks for your help!

            guess usb is still in development

            1 Reply Last reply Reply Quote 0
            • U Offline
              UnderCover
              last edited by

              btw….

              I reverted to the offical 2.0.4 beta package

              i changed the settings to use my APC Smart UPS 1500 to use a black serial cable

              it works perfectly

              thanks for all your help!

              1 Reply Last reply Reply Quote 0
              • dotdashD Offline
                dotdash
                last edited by

                FWIW, I had a similar issue. Did a fresh install on RC3 on a box that was previously running an older version- beta2, rc1, I forget. Nut was monitoring an APC Smart-UPS 1500 via USB. Re-loaded the packages after restoring the config, but nut would not start. Deleted nut-usb and nut 2.0.4, and loaded nut 2.2.0. Modified the nut.xml, re-selected Smart-UPS (USB), and saved. Worked fine for me.

                1 Reply Last reply Reply Quote 0
                • V Offline
                  Visseroth
                  last edited by

                  How did you go about getting around the required packages?

                  And forgive me for asking but how do you install nut 2.2? Where is the package located once downloaded.

                  We have had quite a winter here and people and trees are constantly hitting power lines and messing up the power and I would really love to have this working.

                  I have a APC 750 VA UPS and it only has a USB interface.

                  1 Reply Last reply Reply Quote 0
                  • dotdashD Offline
                    dotdash
                    last edited by

                    Here are the notes, adjusted to the currently available package.
                    I haven't had to try it recently, so It may work or it may not. The process is after all, unsupported.
                    Hope these help, but I can't really provide any more help- I was just following rsw686's notes:

                    fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/All/nut-2.2.0_1.tbz
                    pkg_delete nut-usb-2.0.4
                    pkg_delete nut-2.0.4
                    fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/All/net-snmp-5.3.2_1.tbz
                    pkg_add net-snmp-5.3.2_1.tbz
                    pkg_add nut-2.2.0_1.tbz

                    edit /usr/local/pkg/nut.xml

                    under APC Smart-UPS USB
                    changed newhidups05 to usbhid-ups00

                    webgui-
                    nut, config, select APC Smart-UPS USB, save

                    1 Reply Last reply Reply Quote 0
                    • V Offline
                      Visseroth
                      last edited by

                      I am getting the error…...

                      # pkg_add net-snmp-5.3.2_1.tbz
                      pkg_add: package 'net-snmp-5.3.2_1' or its older version already installed
                      

                      unfortunately I don't know what prior version is installed. Any help?

                      1 Reply Last reply Reply Quote 0
                      • jahonixJ Offline
                        jahonix
                        last edited by

                        pkg_info shows which packages are installed.

                        1 Reply Last reply Reply Quote 0
                        • V Offline
                          Visseroth
                          last edited by

                          Well thank you  for the reply. Apparently I'm not having any luck and am afraid of breaking my box so I just hope that some time soon nut 2.2 will be added to the packages.

                          1 Reply Last reply Reply Quote 0
                          • jahonixJ Offline
                            jahonix
                            last edited by

                            Does pkg_info show any installed net-snmp… infos?

                            1 Reply Last reply Reply Quote 0
                            • V Offline
                              Visseroth
                              last edited by

                              Well, don't know now. I gave up and maybe for the better, for the reason posted in http://forum.pfsense.org/index.php/topic,7832.0.html

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                DAPBENJAMIN
                                last edited by

                                Hi,

                                I made the change as suggested above:
                                "
                                Then you would need to modify /usr/local/pkg/nut.xml and change newhidups to usbhid-ups.
                                "

                                And now my Back-UPS ES 650 works perfectly.

                                ![Back-UPS ES 650.jpg](/public/imported_attachments/1/Back-UPS ES 650.jpg)
                                ![Back-UPS ES 650.jpg_thumb](/public/imported_attachments/1/Back-UPS ES 650.jpg_thumb)

                                1 Reply Last reply Reply Quote 0
                                • U Offline
                                  UnderCover
                                  last edited by

                                  since we have gone to freebsd 7….

                                  are you going to update nut 2.0.4 to the latest out and make it available for the 1.2.1 test snapshots to download?

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