Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

APC UPS communication problem

Featured Replies

Since upgrading to 6.12.8 the USB communication between the OS and the UPS continues to fail after a window of time.  If I move the USB cable to a different USB port, communication is restored. However, in a short period of time (1 - 3) hours, the connection will fail again.  Suggestions?

  • Community Expert

welcome to the club 😩

This is almost "normal" behaviour for many UPS. No idea why. Even changing to NUTS won't help

 

With some "tricks" you can get it to run, but lines like these

Feb 28 01:01:05 F upsmon[5872]: Poll UPS [[email protected]] failed - Driver not connected
Feb 28 01:01:05 F upsmon[5872]: Communications with UPS [email protected] lost
Feb 28 01:01:10 F upsmon[5872]: Communications with UPS [email protected] established
Feb 28 02:01:06 F upsmon[5872]: Poll UPS [[email protected]] failed - Driver not connected
Feb 28 02:01:06 F upsmon[5872]: Communications with UPS [email protected] lost
Feb 28 02:01:11 F upsmon[5872]: Communications with UPS [email protected] established
Feb 28 03:01:06 F upsmon[5872]: Poll UPS [[email protected]] failed - Driver not connected
Feb 28 03:01:06 F upsmon[5872]: Communications with UPS [email protected] lost
Feb 28 03:01:11 F upsmon[5872]: Communications with UPS [email protected] established
Feb 28 04:01:01 F upsmon[5872]: Poll UPS [[email protected]] failed - Driver not connected
Feb 28 04:01:01 F upsmon[5872]: Communications with UPS [email protected] lost
Feb 28 04:01:06 F upsmon[5872]: Communications with UPS [email protected] established

are constant (but still it works somehow).

The problem is that restarting the daemons on UNRAID is rather tricky and often not reliable. Also, at some point you will notice that the USB Port is totally blocked, a daemon restart is not enough, you need to pull out the cable or reboot. Of course, this is not good on UNRAID, you want a stable running reliable fileserver.

 

What I did after many tests is a quite "uncommon" and "strange" construction.

 

First of all I switched off the UNRAID ups daemon and installed NUTS instead. This talks a lot better to the UPS, but still the dropouts happen almost every hour as you can see.

So I installed another NUTS on a different, not vital, raspberry that is used for Pihole and such things and also running 24/7. There you have the full NUTS package, including some programs to check for running drivers and daemons. I do the checks every 30mins and if one fails, the driver is stopped and reloaded (not the daemon! it is the kernel part that does the evil!).

If such a restart fails 3 times in a row, the raspi is rebooted (clears the port, communication to the ups then works again for some time).

The NUT on UNRAID is just configured to be a slave of the raspi.

 

This "solution" is far from beeing "clean", but the best I could get to run.

If somebody has a better approach, please enlight me.

 

Edited by MAM59

Do you perhaps use "powertop" on your system to tune power consumption?

This post is regarding NUT but also valid for APCUPSD, might shed some insight on the backgrounds of such issues:

Mostly it's a combination of the USB implementation of the driver and one of the controllers either on machine or UPS.

Not much one can do about that unfortunately, easiest things to try being another USB port or USB cable...

 

Edited by Rysz

  • Community Expert

No powertop here, and, surely it is a fault in the linux kernel drivers for usb. It happens on ANY Linux (and no Windows, even on the same hardware).

As I said, the raspi with raspian (debian) faces the same problems, Windows and FreeBSD do not.

 

  • 10 months later...

I have the same issue. however I have another Unraid box same version and it has no problem keeping the connection. only difference is the one that loses connection also has a Zigbee dongle passed through to a VM which works just fine. both currently running 6.12.14. both use same UPS model CP1500PFCLCD

Edited by Leaf Fan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.