USB connects and disconnects

Rikyps

Cadet
Joined
Nov 24, 2022
Messages
8
Hello, a while ago I tried to use a UPS but it kept connecting and disconnecting to the point of flooding the registry and losing access to the GUI via web. Today I tried to connect a Sonoff Zigbee 3.0 USB Dobgle and the same thing happens. I'm desperate and I don't know what to do. Attached record.

root@trueNASRicky[~]# dmesg | grep -i usb
[ 31.870879] ACPI: bus type USB registered
[ 31.966966] usbcore: registered new interface driver usbfs
[ 32.033259] usbcore: registered new interface driver hub
[ 32.097514] usbcore: registered new device driver usb
[ 33.200580] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
[ 33.528152] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
[ 33.617424] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
[ 33.729743] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 33.863124] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 33.863127] usb usb1: Product: xHCI Host Controller
[ 33.863128] usb usb1: Manufacturer: Linux 5.15.107+truenas xhci-hcd
[ 33.863129] usb usb1: SerialNumber: 0000:00:14.0
[ 33.985705] hub 1-0:1.0: USB hub found
[ 34.212161] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[ 34.292197] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 34.376977] usb usb2: Product: xHCI Host Controller
[ 34.566953] usb usb2: Manufacturer: Linux 5.15.107+truenas xhci-hcd
[ 34.566954] usb usb2: SerialNumber: 0000:00:14.0
[ 34.567193] hub 2-0:1.0: USB hub found
[ 34.871018] usb 1-6: new full-speed USB device number 2 using xhci_hcd
[ 35.526743] usb 1-6: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
[ 35.852846] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3[ 35.852848] usb 1-6: Product: Sonoff Zigbee 3.0 USB Dongle Plus
[ 35.852849] usb 1-6: Manufacturer: ITead
[ 36.056347] usb 1-6: SerialNumber: 8200c3724a45ed11b642c88f0a86e0b4
[ 36.183015] usb 1-8: new full-speed USB device number 3 using xhci_hcd
[ 36.573736] usb 1-8: New USB device found, idVendor=046d, idProduct=c52b, bcdDevice=12.11
[ 36.677964] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0[ 36.677966] usb 1-8: Product: USB Receiver
[ 37.133231] usb 1-8: Manufacturer: Logitech
[ 43.617567] usbcore: registered new interface driver usbhid
[ 43.617568] usbhid: USB HID core driver
[ 45.300693] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:046D:C52B.0001/input/input3
[ 45.528677] hid-generic 0003:046D:C52B.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:14.0-8/input0
[ 45.744922] input: Logitech USB Receiver Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1/0003:046D:C52B.0002/input/input4
[ 45.888865] input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1/0003:046D:C52B.0002/input/input5
[ 46.103079] input: Logitech USB Receiver System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.1/0003:046D:C52B.0002/input/input6
[ 46.256606] hid-generic 0003:046D:C52B.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-8/input1
[ 46.409229] hid-generic 0003:046D:C52B.0003: hiddev1,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-8/input2
[ 46.652779] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw0: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-8/input2
[ 46.932949] input: Logitech Wireless Device PID:4055 Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:046D:C52B.0003/0003:046D:4055.0004/input/input8
[ 47.110507] hid-generic 0003:046D:4055.0004: input,hidraw1: USB HID v1.11 Mouse [Logitech Wireless Device PID:4055] on usb-0000:00:14.0-8/input2:1
[ 47.269538] input: Logitech Wireless Device PID:4076 Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:046D:C52B.0003/0003:046D:4076.0005/input/input12
[ 47.451318] hid-generic 0003:046D:4076.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech Wireless Device PID:4076] on usb-0000:00:14.0-8/input2:2
[ 47.648822] input: Logitech Wireless Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:046D:C52B.0003/0003:046D:4055.0004/input/input16
[ 47.810987] logitech-hidpp-device 0003:046D:4055.0004: input,hidraw1: USB HID v1.11 Mouse [Logitech Wireless Mouse] on usb-0000:00:14.0-8/input2:1
[ 48.020908] input: Logitech K540/K545 as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:046D:C52B.0003/0003:046D:4076.0005/input/input17
[ 48.178011] logitech-hidpp-device 0003:046D:4076.0005: input,hidraw2: USB HID v1.11 Keyboard [Logitech K540/K545] on usb-0000:00:14.0-8/input2:2
[ 82.049135] usbcore: registered new interface driver usbserial_generic
[ 82.133742] usbserial: USB Serial support registered for generic
[ 82.838065] usbcore: registered new interface driver cp210x
[ 82.992417] usbserial: USB Serial support registered for cp210x
[ 83.306613] usb 1-6: cp210x converter now attached to ttyUSB0
[ 244.438849] usb usb2: USB disconnect, device number 1
[ 244.499730] xhci_hcd 0000:00:14.0: USB bus 2 deregistered
[ 244.622027] usb usb1: USB disconnect, device number 1
[ 244.682645] usb 1-6: USB disconnect, device number 2
[ 244.742367] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[ 244.879857] usb 1-8: USB disconnect, device number 3
[ 245.089278] xhci_hcd 0000:00:14.0: USB bus 1 deregistered
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
You could try adding some hardware. At the moment you seem to be trying to run TN on a logictech mouse & keyboard.
I don't think their hardware specs match the TrueNAS minimum.

:smile:
 

Rikyps

Cadet
Joined
Nov 24, 2022
Messages
8
Hello! Thank you very much for the answer but I don't know if that is the problem. The keyboard and mouse are Logitech but the computer is an HP 800 G2 with Intel i5 and 48Gb of RAM. I have four hard drives in and they work great.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Have you tried different USB Ports?

How are you fitting 4 HDD's into an HP 800 G2? From the specs I can see it doesn't look as though you can physically fit 4 HDD's AND a boot device into the box.

More hardware details please - be specific and detailed.
 

Rikyps

Cadet
Joined
Nov 24, 2022
Messages
8
Yes, I have tried both the front and rear ports and it doesn't work, the same thing happens in all of them.

The original chassis does not support disks but I am using the chassis of an old HP proilant.
I have also unplugged the front USBs in case the change of box affected something but no, it is not the problem.
System: TrueNAS-SCALE-22.12.3.2 and Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
How are you connecting to the disks from the original PC?
How are you powering the disks?
Do you have any spare PCIe slots?
 

Rikyps

Cadet
Joined
Nov 24, 2022
Messages
8
Los discos se conectan al PC original mediante cable SATA.
Están todos alimentados por una fuente de alimentación externa para darle potencia.
Si, tengo alguna ranura de repuesto pero entonces tendría que poner un adaptador PCIe a USB, ¿cierto?
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
The drives are connected to the original PC via SATA cable.
They are all powered by an external power supply to give it power.
Yes, I have a spare slot but then I would have to put in a PCIe to USB adapter, right?

Thats what I was thinking - test with a USB host adapter in the PCIe slot - they are quite cheap. I suspect that a G2 is very old so am looking at hardware failure / HP wierd hardware

Actually - its newer than I thought it was - introduced in 2015

The reason I was asking about the HDD's was to check you weren't attaching via USB
 
Top