设备“/dev/ttyUSB0”突然丢失

设备“/dev/ttyUSB0”突然丢失

我在 Proxmox 上有一个非常基本的服务器 Ubuntu 22.04.2 LTS,运行 Docker,使用 USB 3G 调制解调器作为 SMS 网关。它工作了几个星期,但今天它停止作为设备“/dev/ttyUSB0”工作。我最近没有安装任何东西,也许我只是升级了操作系统,但dmesg一旦我连接它,就会看到该设备:

[  290.515190] usb 2-1: new high-speed USB device number 2 using xhci_hcd
[  290.668094] usb 2-1: New USB device found, idVendor=05c6, idProduct=1000, bcdDevice= 0.00
[  290.668104] usb 2-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[  290.668107] usb 2-1: Product: Qualcomm CDMA Technologies MSM
[  290.668109] usb 2-1: Manufacturer: Qualcomm, Incorporated
[  290.668111] usb 2-1: SerialNumber: 35***********60
[  290.684334] usb-storage 2-1:1.0: USB Mass Storage device detected
[  290.686380] scsi host3: usb-storage 2-1:1.0
[  290.686555] usbcore: registered new interface driver usb-storage
[  290.691327] usbcore: registered new interface driver uas

过了一段时间:

[  312.783760] usb 2-1: reset high-speed USB device number 2 using xhci_hcd
[  359.157508] usbcore: registered new interface driver usbserial_generic
[  359.157528] usbserial: USB Serial support registered for generic
[  364.179931] usbcore: registered new interface driver qcserial
[  364.179957] usbserial: USB Serial support registered for Qualcomm USB modem

这里有一些其他的输出:

# lsusb
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 05c6:1000 Qualcomm, Inc. Mass Storage Device
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
# modprobe usbserial
# modprobe qcserial
#

我可以重新安装操作系统,但同样的问题会第二次出现,如果我找不到根本原因,它可能会再次发生。有人知道根本原因吗?

更新: 一旦复制该行为(通过 ProxMox 连接 USB 设备),journalctl -b就不会似乎显示任何有用的东西:

Apr 02 19:23:48 DOCKER-01 kernel: usb 2-1: new high-speed USB device number 2 using xhci_hcd
Apr 02 19:23:48 DOCKER-01 kernel: usb 2-1: New USB device found, idVendor=05c6, idProduct=1000, bcdDevice= 0.00
Apr 02 19:23:48 DOCKER-01 kernel: usb 2-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
Apr 02 19:23:48 DOCKER-01 kernel: usb 2-1: Product: Qualcomm CDMA Technologies MSM
Apr 02 19:23:48 DOCKER-01 kernel: usb 2-1: Manufacturer: Qualcomm, Incorporated
Apr 02 19:23:48 DOCKER-01 kernel: usb 2-1: SerialNumber: 35***********60
Apr 02 19:23:48 DOCKER-01 kernel: usb-storage 2-1:1.0: USB Mass Storage device detected
Apr 02 19:23:48 DOCKER-01 kernel: scsi host3: usb-storage 2-1:1.0
Apr 02 19:23:48 DOCKER-01 kernel: usbcore: registered new interface driver usb-storage
Apr 02 19:23:48 DOCKER-01 kernel: usbcore: registered new interface driver uas
Apr 02 19:23:53 DOCKER-01 systemd[1]: run-docker-runtime\[REDACTED]-runc.LcuTxY.mount: Deactivated successfully.
Apr 02 19:24:10 DOCKER-01 kernel: usb 2-1: reset high-speed USB device number 2 using xhci_hcd
Apr 02 19:24:45 DOCKER-01 systemd[1]: run-docker-runtime\[REDACTED]-runc.s4nLGm.mount: Deactivated successfully.

然后,brltty没有安装(我已经检查过了):

# dpkg -l | grep brltty
#

更新

相关内容