Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libusb1: Could not open any HID devices: insufficient permissions on everything #3

Open
duncan-valleix opened this issue Dec 29, 2024 · 1 comment

Comments

@duncan-valleix
Copy link

duncan-valleix commented Dec 29, 2024

Bonsoir, j'ai un soucis lors du demarrage de nut_upsd
voici mon docker run
docker run --name nut_upsd -p 3493:3493 -v /var/lib/docker/volumes/valleixd.fr/services/nut_upsd/valleixd01/data:/etc/nut --privileged --device /dev/bus/usb/001/006:/dev/bus/usb/001/006 --device-cgroup-rule='c 189:5 rw' gpdm/nut-upsd:latest

Voici le log

*** NUT upsd startup ***
Starting up the UPS drivers ...
Network UPS Tools - UPS driver controller 2.8.2
Network UPS Tools - Megatec/Q1 protocol USB driver 0.18 (2.8.2)
libusb1: Could not open any HID devices: insufficient permissions on everything
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 blazer_usb).

upsnotify: failed to notify about state 4: no notification tech defined, will not spam more about it
Driver failed to start (exit status=1)
ERROR on driver startup.
root@valleixd01:/var/lib/docker/volumes/valleixd.fr/compose/valleixd01# 

Voici la sortie de lsusb

Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0665 Cypress Semiconductor
  idProduct          0x5161 USB to Serial
  bcdDevice            0.02
  iManufacturer           1 INNO TECH
  iProduct                2 USB to Serial
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0022
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          3 20100813
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              4 Sample HID
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      27
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)

j'ai testé aussi bien en --privileged que pas du tout j'ai toujours cette erreur.

@duncan-valleix
Copy link
Author

duncan-valleix commented Dec 29, 2024

j'ai meme essayé de demarré le containeur avec comme argument (dans un compose) user: 100:101 ou en regardant le groupe nut present sur l'os hote (114) mais rien y fait, le containeur ne parvient pas a avoir accès aux peripherique HID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant