#1078162 nut-server: riello_usb, Failed to open device

Package:
nut-server
Source:
nut-server
Description:
network UPS tools - core system
Submitter:
Daniele Nuzzo
Date:
2024-08-17 18:27:03 UTC
Severity:
normal
Tags:
#1078162#5
Date:
2024-08-07 13:50:02 UTC
From:
To:
Dear maintainer,

Here goes the description of a critical bug in the driver for the Riello
UPS SPW 5000 A3 (riello_usb), perhaps affecting other Riello UPS models.



Environment
-----------
Computer with Debian Bookworm 64 bit - USB cable - Riello UPS SPW 5000 A3

# uname -a
Linux nodo1 6.8.8-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.8-4
(2024-07-26T11:15Z) x86_64 GNU/Linux

# lsusb | grep "Cypress"
Bus 001 Device 005: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM RS232
Adapter

# /usr/lib/nut/riello_usb -a accettazione -D
Network UPS Tools - Riello USB driver 0.07 (2.8.0)
Warning: This is an experimental driver.
Some features may not function correctly.

   0.000000 [D1] debug level is '1'
   0.007683 [D1] Failed to open device (1D6B/0003), skipping: Access denied
(insufficient permissions)
   1.325394 [D1] countlost 0
   1.789382 [D1] get_ups_status() -1
   1.789502 [D1] countlost 1
   1.789514 [D1] Communication with UPS is lost: status read failed!
   2.253389 [D1] get_ups_status() -1
   3.791129 [D1] countlost 2
   3.791157 [D1] Communication with UPS is lost: status read failed!
   4.253433 [D1] get_ups_status() -1
   5.792704 [D1] countlost 3
   5.792729 [D1] Communication with UPS is lost: status read failed!
   6.253473 [D1] get_ups_status() -1
   7.794325 [D1] countlost 4
   7.794353 [D1] Communication with UPS is lost: status read failed!
   8.253515 [D1] get_ups_status() -1

Using the older riello_usb driver from debian bullseye (2.7.4):

#  /usr/lib/nut/riello_usb -a accettazione -D
Network UPS Tools - Riello USB driver 0.03 (2.7.4)
Warning: This is an experimental driver.
Some features may not function correctly.

   0.000000 debug level is '1'
   1.434172 countlost 0
   2.122197 get_ups_status() 0
   2.586342 countlost 0
   3.274223 get_ups_status() 0
   4.587291 countlost 0
   5.274216 get_ups_status() 0
   6.588225 countlost 0
   7.274345 get_ups_status() 0
   8.589152 countlost 0
   9.274338 get_ups_status() 0
  10.590081 countlost 0

that's ok, the driver works well.
Seems the bug exists in the riello_usb driver, not in the whole package or
debian version.

#1078162#10
Date:
2024-08-17 18:23:34 UTC
From:
To:
Hi Daniele,

this sounds like a valid bug report, but not a critical one, i.e. a
reason for the package to be completely removed from testing.
Especially, since the driver is marked as experimental.

I'm thus downgrading the issue to important.

Since the debian package doesn't carry any patches regarding riello_usb,
this is most likely an upstream issue which you best report at
https://github.com/networkupstools/nut/issues

Once you've done so, please report back with the issue number, so we
mark this bug reported as forwarded accordingly.

Regards,
Michael