[Nut-upsuser] UPS configuration issue?
Stephen Davies
sdavies at sdc.com.au
Sun May 11 08:03:23 BST 2025
I installed a new UPS today and after several failed attempts with other
software, installed Nut version 2.8 on my Centos 7 server using yum nut.
Several issues followed:
1. When I started nut-server it failed because /run/nut did not exist so
I created it by hand.
2. nut-server then started but gave he following in /var/log/messages:
May 11 13:33:00 mustang systemd: Started Network UPS Tools - power
devices information server.
May 11 13:33:00 mustang nut-server: fopen /run/nut/upsd.pid: No such
file or directory
May 11 13:33:00 mustang nut-server: Could not find PID file
'/run/nut/upsd.pid' to see if previous upsd instance is already running!
May 11 13:33:00 mustang nut-server: listening on 127.0.0.1 port 3493
May 11 13:33:00 mustang upsd[30778]: listening on 127.0.0.1 port 3493
May 11 13:33:00 mustang nut-server: listening on ::1 port 3493
May 11 13:33:00 mustang upsd[30778]: listening on ::1 port 3493
May 11 13:33:00 mustang nut-server: /run/nut is world readable
May 11 13:33:00 mustang upsd[30778]: /run/nut is world readable
May 11 13:33:00 mustang nut-server: Can't connect to UPS [nutdev1]
(nutdrv_qx-nutdev1): No such file or directory
May 11 13:33:00 mustang upsd[30778]: Can't connect to UPS [nutdev1]
(nutdrv_qx-nutdev1): No such file or directory
May 11 13:33:00 mustang nut-server: Running as foreground process, not
saving a PID file
May 11 13:33:00 mustang upsd[30778]: Running as foreground process, not
saving a PID file
After a bit of manual tweeking, I now get:
May 11 16:30:05 mustang.sdc.com.au nut-server[11388]: fopen
/run/nut/upsd.pid: No such file or directory
May 11 16:30:05 mustang.sdc.com.au nut-server[11388]: Could not find PID
file '/run/nut/upsd.pid' to see if previous upsd instance is already
running!
May 11 16:30:05 mustang.sdc.com.au nut-server[11388]: listening on
127.0.0.1 port 3493
May 11 16:30:05 mustang.sdc.com.au upsd[11388]: listening on 127.0.0.1
port 3493
May 11 16:30:05 mustang.sdc.com.au nut-server[11388]: listening on ::1
port 3493
May 11 16:30:05 mustang.sdc.com.au upsd[11388]: listening on ::1 port 3493
May 11 16:30:05 mustang.sdc.com.au nut-server[11388]: Can't connect to
UPS [nutdev1] (nutdrv_qx-nutdev1): Connection refused
May 11 16:30:05 mustang.sdc.com.au upsd[11388]: Can't connect to UPS
[nutdev1] (nutdrv_qx-nutdev1): Connection refused
May 11 16:30:05 mustang.sdc.com.au nut-server[11388]: Running as
foreground process, not saving a PID file
May 11 16:30:05 mustang.sdc.com.au upsd[11388]: Running as foreground
process, not saving a PID file
3. I then tried upsdrvctl start but got:
[root at mustang ups]# upsdrvctl start
Network UPS Tools - UPS driver controller 2.8.0
Network UPS Tools - Generic Q* USB/Serial driver 0.32 (2.8.0)
USB communication driver (libusb 0.1) 0.43
No supported devices found. Please check your device availability with
'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these
options
(man 8 nutdrv_qx).
4. [root at mustang ups]# pwrstat -status
The UPS information shows as following:
Current UPS status:
State........................ Lost Communication
My ups.config has:
[nutdev1]
driver = "nutdrv_qx"
port = auto
vendorid = 0001
productid = 0000
bus = 002
protocol = hunnox
subdriver = hunnox
The UPS is Digitech 650va
[root at mustang ups]# lsusb
Bus 001 Device 005: ID 8087:0aa7 Intel Corp. Wireless-AC 3168 Bluetooth
Bus 001 Device 006: ID 0461:4e70 Primax Electronics, Ltd
Bus 001 Device 003: ID 04ca:007d Lite-On Technology Corp.
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Root Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0bda:0153 Realtek Semiconductor Corp. 3-in-1
(SD/SDHC/SDXC) Card Reader
Bus 002 Device 006: ID 0001:0000 Fry's Electronics
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(Bus 2 device 6 is the UPS.)
[root at mustang ups]# /sbin/nutdrv_qx -DD -a nutdev1
Network UPS Tools - Generic Q* USB/Serial driver 0.32 (2.8.0)
USB communication driver (libusb 0.1) 0.43
0.000000 [D1] debug level is '2'
0.001243 [D1] upsdrv_initups...
0.007948 [D2] Checking device (8087/0AA7) (001/005)
0.008175 [D1] Failed to open device (8087/0AA7), skipping:
Permission denied
0.008235 [D2] Checking device (0461/4E70) (001/006)
0.008300 [D1] Failed to open device (0461/4E70), skipping:
Permission denied
0.008350 [D2] Checking device (04CA/007D) (001/003)
0.008411 [D1] Failed to open device (04CA/007D), skipping:
Permission denied
0.008460 [D2] Checking device (0438/7900) (001/002)
0.008537 [D1] Failed to open device (0438/7900), skipping:
Permission denied
0.008593 [D2] Checking device (1D6B/0002) (001/001)
0.008654 [D1] Failed to open device (1D6B/0002), skipping:
Permission denied
0.008711 [D2] Checking device (1D6B/0003) (003/001)
0.008776 [D1] Failed to open device (1D6B/0003), skipping:
Permission denied
0.008825 [D2] Checking device (0BDA/0153) (002/002)
0.008885 [D1] Failed to open device (0BDA/0153), skipping:
Permission denied
0.008940 [D2] Checking device (0001/0000) (002/006)
0.009034 [D1] Failed to open device (0001/0000), skipping:
Permission denied
0.009089 [D2] Checking device (1D6B/0002) (002/001)
0.009154 [D1] Failed to open device (1D6B/0002), skipping:
Permission denied
0.009211 [D2] libusb0: No appropriate HID device found
0.009258 No supported devices found. Please check your device
availability with 'lsusb'
[root at mustang ups]# ls -al /run/nut
total 0
drwxrwx--- 3 nut nut 60 May 11 16:16 .
drwxr-xr-x 63 root root 1780 May 11 13:32 ..
drwxrwx--- 2 nut nut 40 May 11 13:57 nutdrv_qx-nutdev1
It looks as if I am still missing something but I can't see what.
Cheers and thanks,
Stephen
More information about the Nut-upsuser
mailing list