-
@dennypage said in NUT package:
I've been patiently waiting for 2.8.1, but it keeps getting pushed out so I've started working on moving to dev. I remain utterly convinced that 2.8.1 will be released the day after I complete the move to dev.
Hah, a fellow believer in Saint Murphy the patron saint of software development! (Amongst many other things.)
Of course if you DON’T move to dev, nut 2.8.1 will never see the light of day. Sigh.
Oh, and USB is a crazy collection of not-particularly-well-defined-standards where weird… stuff happens on a regular basis. It’s the worst possible interface… except for all the others. Shrug.
-
Hi folks
hope you're doing well
I got big issues with nut on multiple sites.
see : https://redmine.pfsense.org/issues/14795
Correct me if i'm wrong i need to use the devel package instead of the 2.8.0 port right ?
I need a little hint on how i can install the devel package which presumably correct the problem.
i tried make the package :
git clone https://github.com/pfsense/FreeBSD-ports.git cd sysutils/nut-devel/ make package
i got :
make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk make: "/root/nut-devel/Makefile" line 149: Malformed conditional (${PORT_OPTIONS:MUSB}) make: "/root/nut-devel/Makefile" line 156: Malformed conditional (${PORT_OPTIONS:MBASH}) make: "/root/nut-devel/Makefile" line 160: Malformed conditional (${PORT_OPTIONS:MDOCS}) make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk make: Fatal errors encountered -- cannot continue make: stopped in /root/nut-devel
so i tried with gmake :
gmake package
i got this :
Makefile:137: *** missing separator. Stop.
Can someone give me some hint here ?
Thank you ;)
-
@abs0new farther back in this thread you will find dev build executables that have been shared.
-
Hi!
I came across this problem and I can't seem to find the answer in the thread.
I have a PFsense 6100 MAX , its on 23.05.1-Release at the moment.Installed NUT services and connected my Lenovo UPS (55942KX) via USB to the firewall.
I am using an SRS232 to USB cable.The summary says its failed to retrieve status.
Logs:
Oct 11 12:04:43 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
Oct 11 12:04:45 upsd 56388 Can't connect to UPS [Lenovo_UPS] (usbhid-ups-Lenovo_UPS): No such file or directory
Oct 11 12:04:53 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
Oct 11 12:04:58 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
Oct 11 12:05:03 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
Oct 11 12:05:08 upsmon 54986 Poll UPS [Lenovo_UPS] failed - Driver not connected
Oct 11 12:05:08 upsmon 54986 UPS Lenovo_UPS is unavailableI have tried with all of the drivers from the drop-down menu without success.
I am sure I am missing something from the configuration, but I am technically stuck at this point. Maybe I am just dumb to even try to use the USB option, but unfortunatly I don't have other solutions for this UPS.Can you guys show me a path where should I start poking around?
Kind regards,
Zee Muffin man, -
That should probably be using a serial driver, not USB. The serial port is connected via USB, but the UPS is connected via serial. I.e., the UPS isn't going to show up as a USB device for the USB driver to communicate with.
-
@zeemaffin said in NUT package:
Installed NUT services and connected my Lenovo UPS (55942KX) via USB to the firewall.
I am using an SRS232 to USB cable.Does the UPS have a direct USB interface? If so, you absolutely should use that interface instead of a USB to serial cable.
Now, assuming that it does not have a native USB interface and that you have no choice other than to use a USB serial emulator cable...
If the emulator chip in the cable is supported by FreeBSD, the device will show up as a serial port in /dev when you connect the USB cable to the pfSense system. If it doesn't, you're out of luck.
To use a serial port emulator, in the NUT configuration you would select "Local Serial" as the UPS Type, and then select the correct port in the Serial port drop-down list (Hint: on the 6100, it's not cuau0 or cuau1).
Now comes the hard part. You will have to select the correct driver, and it's a long list to choose from. Without knowing who actually made the UPS that Lenovo rebranded, you have to guess and test. My best guess would be mge-shut, but that is only a guess.
-
Did the USB Cyber Power connection drop issue ever get resolved? I noticed they closed that redline....
-
@JonathanLee The new NUT version is still pending. I'm switching from nut (8.0) to nut-devel (pre 8.1), which unfortunately has required some fixes in the upstream BSD Port. The fixes are completed, but now have to flow down to pfSense. I don't know how long that will take.
-
@dennypage Thank you for your suggestion.
Do i need to search through 1212 posts to find the executable ?
-
When its ready, you see it here, signaled as "an update has arrived" :
There will be a yellow sign after the "i".
-
@dennypage Hi!
Thank you for the tips, I am going through the serial drivers.
In the UPS settings page the serial port is a drop down menu and /dev/cuau0 and /dev/cuau1 is the 2 option, theres nothing else.
SO this case can't understand your hint regarding the 6100.Sofar I had no luck... Would you suggest and USB-B to USB-A cable? ( the UPS has the usb port similiar to printers do)
Kind regards,
-
@zeemaffin said in NUT package:
In the UPS settings page the serial port is a drop down menu and /dev/cuau0 and /dev/cuau1 is the 2 option, theres nothing else.
SO this case can't understand your hint regarding the 6100.The 6100 has two hidden/unconnected serial ports on the motherboard. These will show up as cuau0 and cuau1. That there is not another option strongly implies that the serial emulator chip is not supported by FreeBSD.
Sofar I had no luck... Would you suggest and USB-B to USB-A cable? ( the UPS has the usb port similiar to printers do)
Absolutely. If the UPS has a native USB interface, it would always be preferred over a serial emulator cable.
-
@abs0new said in NUT package:
Do i need to search through 1212 posts to find the executable ?
LOL.
It's from earlier this year.
-
HI Denny!
News!
With the USB cable I see the UPS via the command usbconfig, however its not showing up in the graphical interface dropdown menu.
I mean the cuau 0-1 shows up only, but the usbus0 wont.Would you suggest a restart of the firewall, or is there another package I need to be able to use the usbbus for this purpose?
Sorry for the dummy questions.Kind Regards,
Maffin -
@zeemaffin said in NUT package:
With the USB cable I see the UPS via the command usbconfig, however its not showing up in the graphical interface dropdown menu.
I mean the cuau 0-1 shows up only, but the usbus0 wont.With a regular USB connection, there isn't a pulldown to select the port. I expect that you still have "Local Serial" set as the UPS Type.
Change the UPS Type to be "Local USB". The Driver field then has a list of usb drivers that are available. Always try "usbhid" before trying anything else.
-
@dennypage Jesus I feel so dumb right now :D
Thank you for your help!!!
I wont sturggle next time for sure.... now I have to make the timeouts and the other stuff :D
-
@zeemaffin Timeouts? Do you mean for NUT? If so, I recommend that you don't configure any times unless you are trying to address a specific problem.
-
@dennypage Happy Halloween! NUT 2.8.1 is out, when will we see it in pfSense?
-
I gave up waiting for a NUT 8.1 release a while back. The new NUT package is based on nut-devel (git) rather than the nut-2.8.1 release version. At the moment, they are effectively the same thing, but I'm currently thinking to stay with nut-devel until I see how stable the 2.8.1 release actually is.
If you like detail, you can read Redmine issue #14795, and pull requests #1295, #1296, #1310.
The new pfSense NUT package should start with 23.09.
-
@dennypage so if the current nut-2.8.0_23 package from pfSense still loses connectivity with my CyberPower CP1500AVRLCD3, the 2.8.1 release won't be better ?