OPNsense Forum
Archive => 23.1 Legacy Series => Topic started by: IsaacFL on February 22, 2023, 01:01:44 am
-
I can not get NUT plugin to work, since upgrading to 23.1. This worked prior to the update to 23.1. The nut_daemon crashes
I thought there was potentially a problem with the UPS itself, and bout a new UPS, and still having the same error.
I did a new fresh install of the Router, using old config.
I tried uninstalling the NUT plugin and reinstalling. It just doesn't work consistently.
2023-02-21T15:53:10-08:00 Error upsmon upsmon parent: read
2023-02-21T15:53:10-08:00 Error upsd mainloop: Interrupted system call
2023-02-21T15:53:09-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:53:07-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:53:06-08:00 Error upsmon Poll UPS [CyberPower] failed - Data stale
2023-02-21T15:53:05-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:53:03-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:53:01-08:00 Error upsmon Poll UPS [CyberPower] failed - Data stale
2023-02-21T15:53:01-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:52:59-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:52:57-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:52:56-08:00 Error upsmon Poll UPS [CyberPower] failed - Data stale
2023-02-21T15:52:55-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:52:53-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:52:51-08:00 Error upsmon Poll UPS [CyberPower] failed - Data stale
2023-02-21T15:52:51-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-21T15:52:49-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
-
Hi,
What version you are running 23.1? Because in 23.1_6 and newer it should be fixed and you should not apply this patch.
See here (https://forum.opnsense.org/index.php?topic=32100.msg155171#msg155171).
KH
-
I'm on version:
OPNsense 23.1.1_2-amd64
FreeBSD 13.1-RELEASE-p6
OpenSSL 1.1.1t 7 Feb 2023
-
Hi,
ok, I suggest a health audit.
And check the output of ls -al /var/db/nut/
on the command line.
KH
-
results of ls:
root@OPNsense:~ # ls -al /var/db/nut/
total 10
drwxr-x--- 2 nut nut 3 Feb 22 14:08 .
drwxr-xr-x 21 root wheel 32 Feb 22 14:08 ..
-rw-r--r-- 1 nut nut 6 Feb 22 14:08 upsmon.pid
root@OPNsense:~ #
Results of Health audit:
***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 23.1.1_2 at Wed Feb 22 14:03:39 PST 2023
>>> Check installed kernel version
Version 23.1.1 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 23.1.1 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check installed repositories
OPNsense
>>> Check installed plugins
os-acme-client 3.15
os-ddclient 1.11_1
os-dmidecode 1.1_1
os-nut 1.8.1_2
os-smart 2.2
os-wol 2.4_1
>>> Check locked packages
No locks found.
>>> Check for missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Core package "opnsense" has 66 dependencies to check.
Checking packages: .................................................................... done
***DONE***
-
I never was able to get it to work. Did see the following warning, if thats a clue. Finally removed pluggin.
/usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
-
I have NUT runnung on 23.1.1_2 with a APS Smart UPS 750. I also had problems to get NUT stated because of permission problems.
This is what helped in my case:
https://www.reddit.com/r/OPNsenseFirewall/comments/uos0ee/comment/i8kpa1l/ (https://www.reddit.com/r/OPNsenseFirewall/comments/uos0ee/comment/i8kpa1l/)
Screenshots of configurations attached.
Hans
-
What seemed to work was adding the tunable making sure that I included the quotes
So System - Settings - Tunables:
hw.usb.quirk.0
Needed for NUT
"0x0764 0x0501 0 0xffff UQ_HID_IGNORE"
The "" were needed. Didn't work without it, and the values were obtained by using usbconfig as the thread said
I did not create permissions files.
After multiple trys and reboots it started working.
-
Spoke too soon.
Still broke, with logs full of:
2023-02-27T10:48:49-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-27T10:48:47-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything
2023-02-27T10:48:45-08:00 Warning usbhid-ups libusb1: Could not open any HID devices: insufficient permissions on everything