Project

General

Profile

Bug #34327

Add note to Guide for UPS polling interval

Added by nood lehead over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
Timothy Moore II
Category:
Documentation
Target version:
Severity:
Low
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I am on the latest 11.2 snapshot and /var/log/debug.log has following error being spammed every 2 seconds:
I changed the password but the issue is still there.

May 30 23:34:00 nas uwsgi: [services.forms:1349] Failed to decrypt UPS mon password
Traceback (most recent call last):
  File "./freenasUI/services/models.py", line 1347, in __init__
    self.ups_monpwd = notifier().pwenc_decrypt(self.ups_monpwd)
  File "./freenasUI/middleware/notifier.py", line 3246, in pwenc_decrypt
    encrypted = base64.b64decode(encrypted)
  File "/usr/local/lib/python3.6/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
May 30 23:34:01 nas usbhid-ups[27042]: libusb_get_interrupt: Unknown error
May 30 23:34:15 nas usbhid-ups[27042]: libusb_get_interrupt: Unknown error
May 30 23:34:21 nas usbhid-ups[27042]: libusb_get_interrupt: Unknown error
May 30 23:34:36 nas usbhid-ups[27042]: libusb_get_interrupt: Unknown error
UPS-pollingTip-2018-08-24.png (22.3 KB) UPS-pollingTip-2018-08-24.png Michael Reynolds, 08/24/2018 03:32 PM
25691

History

#1 Updated by Dru Lavigne over 1 year ago

  • Private changed from No to Yes
  • Reason for Blocked set to Need additional information from Author

Please attach a debug (System -> Advanced -> Save Debug) to this ticket.

#2 Updated by nood lehead over 1 year ago

  • File debug-nas-20180531072031.tgz added

#3 Updated by Dru Lavigne over 1 year ago

  • Assignee changed from Release Council to Alexander Motin
  • Severity changed from Med High to New
  • Seen in changed from 11.2-RC2 to Master - FreeNAS Nightlies
  • Reason for Blocked deleted (Need additional information from Author)

#4 Updated by Alexander Motin over 1 year ago

  • Assignee changed from Alexander Motin to William Grzybowski

"Failed to decrypt UPS mon password" sounds like some middleware issue.

#5 Updated by William Grzybowski over 1 year ago

  • Category changed from OS to Middleware
  • Status changed from Unscreened to Closed
  • Target version changed from Backlog to N/A
  • Reason for Closing set to Third Party to Resolve

"Failed to decrypt UPS mon password" can be fixed by re-entering your UPS password in services config page.

"libusb_get_interrupt: Unknown error" is some error from the "nut" software, which is not for us to fix. Its possible its very related to your UPS so there isnt much we can do ourselves here.

#6 Updated by Dru Lavigne over 1 year ago

  • File deleted (debug-nas-20180531072031.tgz)

#7 Updated by Dru Lavigne over 1 year ago

  • Private changed from Yes to No

#8 Updated by Alexander Motin over 1 year ago

AFAIK libusb is a part of the FreeBSD base system:

root@tn11-b:~ # ls /usr/lib/libusb.*
/usr/lib/libusb.so      /usr/lib/libusb.so.3

#9 Updated by nood lehead over 1 year ago

Alexander Motin wrote:

AFAIK libusb is a part of the FreeBSD base system:
[...]

Yeah just realized that sorry deleted my post.

#10 Updated by nood lehead over 1 year ago

I was reading: https://networkupstools.org/docs/man/usbhid-ups.html

The messages went away after setting pollinterval to 10

Some models tends to be unresponsive with the default polling frequency. The result is that your system log will have lots of messages like:

usb 2-1: control timeout on ep0in
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 128 rq 6 len 256
ret -110
In this case, simply modify the general parameter "pollinterval" to a higher value (like 10 for 10 seconds). This should solve the issue.

#11 Updated by Dru Lavigne over 1 year ago

  • Category changed from Middleware to Documentation
  • Status changed from Closed to Unscreened
  • Assignee changed from William Grzybowski to Warren Block
  • Target version changed from N/A to 11.2-RC2
  • Severity changed from New to Low

Thanks for the update. We'll add a note to the Guide.

#12 Updated by Dru Lavigne over 1 year ago

  • Target version changed from 11.2-RC2 to 11.2-BETA3

#14 Updated by Dru Lavigne over 1 year ago

  • Subject changed from nas usbhid-ups[27042]: libusb_get_interrupt: Unknown error /// nas uwsgi: [services.forms:1349] Failed to decrypt UPS mon password to Add note to Guide for UPS polling interval
  • Assignee changed from Warren Block to Timothy Moore II

#15 Updated by Dru Lavigne over 1 year ago

  • Reason for Closing deleted (Third Party to Resolve)

#16 Updated by Timothy Moore II over 1 year ago

  • Status changed from Unscreened to In Progress
  • Needs Doc changed from Yes to No

#17 Updated by Timothy Moore II over 1 year ago

  • Status changed from In Progress to Ready for Testing
  • Needs Merging changed from Yes to No

#18 Updated by Michael Reynolds over 1 year ago

25691

verified the text has been added

see UPS-pollingTip-2018-08-24.png

#19 Updated by Dru Lavigne over 1 year ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF