Shutdown & Restarted Server - sbd_ctrl_transfer_setup: could not setup default USB transfer

Joined
Jul 2, 2019
Messages
648
I had to shutdown my FreeNAS box yesterday (a Supermicro SuperChassis 825TQ-R740LPB with a X9DR3-LN4F+ running FreeNAS-11.3-U3.2) to rearrange the server in my rack. Since then, I have been getting the following error (over & over & over) in my log:
Jun 14 17:53:55 freenas usbd_ctrl_transfer_setup: could not setup default USB transfer Jun 14 17:53:55 freenas usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_NOMEM Jun 14 17:53:56 freenas usbd_ctrl_transfer_setup: could not setup default USB transfer Jun 14 17:53:56 freenas usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_NOMEM, ignored) Jun 14 17:53:57 freenas usbd_ctrl_transfer_setup: could not setup default USB transfer

The strange thing is that I do not have any keyboard plugged in (or any other USB device).

Any suggestions as to how to fix this?

Thanks!
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Actually, I suspect you do have a USB device attached: your BMC virtual keyboard. Does usbconfig show the BMC virtual keyboard and mouse at ugen0.3? You may have to bounce the BMC with ipmitool mc reset cold. In fact, I have a cron task that does this twice a week on my system, as the BMC web page goes wonky after about 48 hours uptime.
 
Joined
Jul 2, 2019
Messages
648
usbconfig shows
root@freenas[~]# usbconfig
ugen0.1: <Intel EHCI root HUB> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.2: <vendor 0x8087 product 0x0024> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.2: <vendor 0x8087 product 0x0024> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.3: <Winbond Electronics Corp Hermon USB hidmouse Device> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)

I tried ipmitool mc reset cold but I'm still getting the error.

I wonder if it was the last update? Back in the FreeNAS 9.x days I found a similar issue. I never had the issue before the last update.
 
Last edited:
Joined
Jul 2, 2019
Messages
648
Hmmm... Just noticed this error:
Jun 14 19:11:58 freenas ugen1.3: <Unknown > at usbus1 (disconnected) Jun 14 19:11:58 freenas uhub_reattach_port: could not allocate new device Jun 14 19:12:20 freenas uhub_reattach_port: giving up port reset - device vanished

Then the same errors started again with:
Jun 14 19:13:40 freenas usb_alloc_device: set address 3 failed (USB_ERR_STALLED, ignored) Jun 14 19:13:41 freenas usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED Jun 14 19:13:42 freenas usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Yes, the disconnect was from the IPMI reboot. You may have to shutdown your server, and disconnect power to get the BMC to completely shut down.
 
Joined
Jul 2, 2019
Messages
648
Thanks - That worked.

The ye olde "Reboot your computer" approach. (My wife and som make fun of me when I ask them that ;))

I did have to pull the mains power and let the caps drain before it worked.
 
Joined
Jul 2, 2019
Messages
648
Nope - Didn't work. Shortly after posting the above it started again:
Jun 14 19:38:17 freenas uhub_reattach_port: giving up port reset - device vanished Jun 14 19:38:28 freenas uhub_reattach_port: giving up port reset - device vanished Jun 14 19:38:29 freenas uhub_reattach_port: giving up port reset - device vanished Jun 14 19:38:33 freenas usb_alloc_device: set address 3 failed (USB_ERR_STALLED, ignored) Jun 14 19:38:34 freenas usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED Jun 14 19:38:34 freenas usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)

[EDIT]
Maybe it did work. When I closed the Java console it seems to have stopped.
I'll let this sit of a bit and see if it restarts. I could be a Java thing.
 
Joined
Jul 2, 2019
Messages
648
Well... It is still happening.

After a restart, I do not get any errors for ~5 to 10 minutes. Then the error's frequency rate increases until it is occurring about once per second.

This didn't start until after updating to FreeNAS-11.3-U3.2.

I'll wait until TrueNAS 12 RC1 (a/k/a ye olde FreeNAS release :grin:) and upgrade and see if that fixes it.
 
Top