Jump to content

Gooserhino

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Gooserhino

  1. I seem to have found a way to resolve my issues with NUT by using a scheduled script to reset the USB once NUT reports "data stale." Using the user script plugin here and this USB reset script here. https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line I used the command below in the user script plugin to call the usbreset script and execute by searching for the bus and device IDs of my UPS. To configure for a different UPS replace [American Power Conversion] with whatever your UPS is labeled as when using "lsusb" in the unraid terminal. Finally adjust the schedule setting in the user scripts plugin to however long it typically takes until NUT starts reporting "data stale" errors. https://crontab.guru/ is helpful for determining custom scheduling times. #!/bin/bash echo $(lsusb | grep "American Power Conversion"); APC=$( lsusb | grep "American Power Conversion" | perl -nE "/\D+(\d+)\D+(\d+).+/; print qq(\$1/\$2)") /path/to/usbreset/script /dev/bus/usb/$APC
  2. Hello All, Recently purchased a brand new APC UPS (BGM1500b) and am having issues connecting with both the built in UPS settings as well as the NUT plugin. Batteries are brand new and have passed a self-test. Using Unraid version 6.9.2. When connecting via the built in UPS settings I have the same error as detailed in this post with the UPS reporting "On Battery" status once it has reached 100% charge even though it is currently online. I have tried every variation of USB cable and type available in UPS settings and can only get unraid to recognize the UPS with cable and type both set to USB. When connecting to a windows machine the UPS status is reported correctly in powerchute software. After failing to get the built in UPS management to function properly I setup the NUT plugin and have issues with the UPS disconnecting after a day or two. I continue to get "Poll UPS failed - Data stale" errors with NUT that can only be corrected by pulling the USB and reinserting. Error is persistent regardless of USB port on my server and I have verified there are no USB power saving settings in my bios. I have also tried adjusting config values for MAXAGE, DEADTIME, and POLLINTERVAL to no avail. At this point I'm at a loss on a path forward and would appreciate any help that can be provided.
×
×
  • Create New...