NUT APC Smart UPS 1500 Service Failed to Start
-
After configuring Nut I am getting service failed to start
Here is my configuration
UPS Monitoring: Local UPS
Local UPS Name: Battery2
Local UPS Model: APC Smart-UPS USB
Local UPS Port: auto (usb only)the rest of the fields are blank
I have also tried witha serial cable and got the same result.
Any ideas?
-
The UPS might not be supported with NUT 2.0.4. Try starting it from the console and see what the error is.
/usr/local/etc/rc.d/nut.sh start
Regarding your other post.
Since pfSense is based on FreeBSD 6.2 we won't be moving to NUT 2.2.0 until either the 6.2 package is updated or pfSense moves to FreeBSD 6.3.
This is NOT supported, but you can install NUT 2.2.0 from the console with the following commands. This is using the 6.3 package, but it seemed to work when I tested it.
pkg_delete nut-2.0.4
pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/All/nut-2.2.0.tbzThen you would need to modify /usr/local/pkg/nut.xml and change newhidups to usbhid-ups.
After that navigate to the NUT pfSense webgui page, select the APC Smart-UPS USB model and click Change.
Again this is all the help I can provide on this. Only try this if you are comfortable with the console and are willing to reinstall pfSense if you mess up your install.
-
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.4so 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 instaldthen 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.xmlpwd
/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 -
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.
-
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 starti 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
-
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/killpowerthanks for your help!
guess usb is still in development
-
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!
-
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.
-
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.
-
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.tbzedit /usr/local/pkg/nut.xml
under APC Smart-UPS USB
changed newhidups05 to usbhid-ups00webgui-
nut, config, select APC Smart-UPS USB, save -
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?
-
pkg_info shows which packages are installed.
-
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.
-
Does pkg_info show any installed net-snmp… infos?
-
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
-
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) -
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?