USB Camera stopped working

Version 0.18.0, running on Raspberry Pi 4 Model B Rev 1.1

Camera model
USB Cheap Chinese Model from Amazon
Bus 001 Device 003: ID 05a3:9331 ARC International Camera

What is the problem?
Turn on Pi 4, haven't turned on 3D printer yet, and the camera works fine. Can see the camera image in both OctoPi web interface - Control tab, and also in browser using URL 3dprinter.local/webcam/?action=stream.

Now if I either leave the Pi running with the 3D printer off or if I use the 3D printer and then turn off the 3D printer, the camera eventually dies and never comes back on line again. I cant even directly stream the camera using just the web URL (so I know its not Octoprint).

What did you already try to solve it?
I tried to SSH on the Pi and run

sudo service webcamd restart

But it still wont start up. The only thing I can do is reboot the Pi. Anybody seen anything similar ?

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)

/var/log/syslog
Jul 1 18:15:08 3DPrinter root: Starting USB webcam
Jul 1 18:15:08 3DPrinter MJPG-streamer [32475]: starting application
Jul 1 18:15:08 3DPrinter MJPG-streamer [32475]: MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
Jul 1 18:15:08 3DPrinter MJPG-streamer [32475]: Using V4L2 device.: /dev/video10
Jul 1 18:15:08 3DPrinter MJPG-streamer [32475]: Desired Resolution: 640 x 480
Jul 1 18:15:08 3DPrinter MJPG-streamer [32475]: Frames Per Second.: 10
Jul 1 18:15:08 3DPrinter MJPG-streamer [32475]: Format............: JPEG
Jul 1 18:15:08 3DPrinter MJPG-streamer [32475]: TV-Norm...........: DEFAULT
Jul 1 18:15:08 3DPrinter MJPG-streamer [32475]: init_VideoIn failed
Jul 1 18:15:09 3DPrinter systemd[1]: webcamd.service: Succeeded.
Jul 1 18:15:09 3DPrinter systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Jul 1 18:15:10 3DPrinter systemd[1]: webcamd.service: Service RestartSec=1s expired, scheduling restart.
Jul 1 18:15:10 3DPrinter systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 1020.
Jul 1 18:15:10 3DPrinter systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Jul 1 18:15:10 3DPrinter systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Jul 1 18:15:10 3DPrinter root: Starting USB webcam
Jul 1 18:15:10 3DPrinter MJPG-streamer [32501]: starting application
Jul 1 18:15:10 3DPrinter MJPG-streamer [32501]: MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
Jul 1 18:15:10 3DPrinter MJPG-streamer [32501]: Using V4L2 device.: /dev/video10
Jul 1 18:15:10 3DPrinter MJPG-streamer [32501]: Desired Resolution: 640 x 480
Jul 1 18:15:10 3DPrinter MJPG-streamer [32501]: Frames Per Second.: 10
Jul 1 18:15:10 3DPrinter MJPG-streamer [32501]: Format............: JPEG
Jul 1 18:15:10 3DPrinter MJPG-streamer [32501]: TV-Norm...........: DEFAULT
Jul 1 18:15:10 3DPrinter MJPG-streamer [32501]: init_VideoIn failed

dmesg
[ 4.699537] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 4.700056] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 4.700483] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 4.700991] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 4.701020] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 4.701042] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 4.701062] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 4.701081] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 4.701297] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 4.751101] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.032174] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[ 5.041512] uvcvideo: Found UVC 1.00 device HD Web Camera (05a3:9331)
[ 5.042143] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 5.087462] uvcvideo: Failed to query (GET_INFO) UVC control 9 on unit 2: -32 (exp. 1).
[ 5.114004] uvcvideo: Failed to query (GET_INFO) UVC control 4 on unit 2: -32 (exp. 1).
[ 5.140022] uvcvideo: Failed to query (GET_INFO) UVC control 11 on unit 2: -32 (exp. 1).
[ 5.143738] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[ 5.143761] checking generic (3e843000 384000) vs hw (0 ffffffffffffffff)
[ 5.143777] fb0: switching to vc4drmfb from simple
[ 5.144479] Console: switching to colour dummy device 80x30
[ 5.144765] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 5.144778] [drm] No driver support for vblank timestamp query.
[ 5.144791] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
[ 5.145394] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[ 5.149780] vc4-drm gpu: HDMI-A-1: EDID is invalid:
[ 5.149800] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 5.149814] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 5.149827] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 5.149840] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 5.149853] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 5.149866] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 5.149879] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 5.149892] [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 5.185470] input: HD Web Camera: HD Web Camera as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input0
[ 5.187870] usbcore: registered new interface driver uvcvideo
[ 5.187882] USB Video Class driver (1.1.1)
[ 5.198082] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 5.295522] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 5.297404] Console: switching to colour frame buffer device 160x45
[ 5.311592] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 5.312031] usbcore: registered new interface driver brcmfmac
[ 5.319154] vc4-drm gpu: fb0: vc4drmfb frame buffer device
[ 5.339620] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[ 5.383567] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 5.383613] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 5.390805] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 5.390854] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 5.397313] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 5.397357] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 5.401780] usb 1-1.4: Warning! Unlikely big volume range (=3072), cval->res is probably wrong.
[ 5.401803] usb 1-1.4: [6] FU [Mic Capture Volume] ch = 1, val = -1536/1536/1
[ 5.402658] usbcore: registered new interface driver snd-usb-audio
[ 5.576698] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 5.588391] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Apr 15 2021 03:02:07 version 7.45.234 (4ca95bb CY) FWID 01-4f919496
[ 7.253438] uart-pl011 fe201000.serial: no DMA platform data
[ 7.435824] 8021q: 802.1Q VLAN Support v1.8
[ 7.518144] random: crng init done
[ 7.518161] random: 7 urandom warning(s) missed due to ratelimiting
[ 7.794016] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 8.005790] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 8.437073] bcmgenet: Skipping UMAC reset
[ 8.439863] bcmgenet fd580000.ethernet: configuring instance for external RGMII
[ 8.440265] bcmgenet fd580000.ethernet eth0: Link is Down
[ 8.521999] uvcvideo: Failed to query (GET_DEF) UVC control 9 on unit 2: -32 (exp. 2).
[ 13.964005] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 14.052742] Bluetooth: Core ver 2.22
[ 14.052840] NET: Registered protocol family 31
[ 14.052852] Bluetooth: HCI device and connection manager initialized
[ 14.053205] Bluetooth: HCI socket layer initialized
[ 14.053224] Bluetooth: L2CAP socket layer initialized
[ 14.053258] Bluetooth: SCO socket layer initialized
[ 14.065727] Bluetooth: HCI UART driver ver 2.3
[ 14.065745] Bluetooth: HCI UART protocol H4 registered
[ 14.065838] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 14.066113] Bluetooth: HCI UART protocol Broadcom registered
[ 14.223288] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 14.223295] Bluetooth: BNEP filters: protocol multicast
[ 14.223308] Bluetooth: BNEP socket layer initialized
[ 23.928333] fuse: init (API version 7.31)
[ 25.874134] Bluetooth: RFCOMM TTY layer initialized
[ 25.874151] Bluetooth: RFCOMM socket layer initialized
[ 25.874169] Bluetooth: RFCOMM ver 1.11
[89936.548790] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89942.788881] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89949.028967] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89955.269058] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89961.509089] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89967.829169] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89974.069341] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89980.309414] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89986.550756] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89992.789598] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[89999.029764] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90005.269812] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90011.509891] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90017.749886] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90023.989995] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90030.310165] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90036.470179] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90042.710414] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90049.030367] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90055.270454] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90061.510553] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90067.750704] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90073.990752] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90080.230873] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90086.550943] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90092.711142] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90099.031179] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90105.271252] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90111.511431] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90117.751453] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90123.991513] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90130.311597] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90136.471678] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90142.711781] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90149.031947] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90155.273215] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90161.512226] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90167.752363] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90174.072455] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90180.232531] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90186.552607] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90192.792779] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90199.032808] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90205.272910] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90211.513124] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90217.753222] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90223.993258] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90230.313382] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90236.553508] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90242.793671] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90249.033717] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[90252.013499] uvcvideo: Failed to set UVC probe control : -71 (exp. 26).
[90252.199518] usb 1-1.4: USB disconnect, device number 3
[90252.603567] usb 1-1.4: new high-speed USB device number 4 using xhci_hcd
[90255.063864] usb 1-1.4: device descriptor read/64, error -71
[90270.414120] usb 1-1.4: device descriptor read/64, error -110
[90270.633905] usb 1-1.4: new high-speed USB device number 5 using xhci_hcd
[90275.774230] usb 1-1.4: device descriptor read/64, error -110
[90291.134533] usb 1-1.4: device descriptor read/64, error -110
[90291.254703] usb 1-1-port4: attempt power cycle
[90291.914280] usb 1-1.4: new high-speed USB device number 6 using xhci_hcd
[90293.501811] usb 1-1.4: Device not responding to setup address.
[90295.310723] usb 1-1.4: Device not responding to setup address.
[90295.524363] usb 1-1.4: device not accepting address 6, error -71
[90295.624340] usb 1-1.4: new high-speed USB device number 7 using xhci_hcd
[90297.210826] usb 1-1.4: Device not responding to setup address.
[90299.010732] usb 1-1.4: Device not responding to setup address.
[90299.224392] usb 1-1.4: device not accepting address 7, error -71
[90299.224770] usb 1-1-port4: unable to enumerate USB device
[92756.402408] usb 1-1.1: new full-speed USB device number 8 using xhci_hcd
[92756.537809] usb 1-1.1: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
[92756.537829] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[92756.537846] usb 1-1.1: Product: CP2102 USB to UART Bridge Controller
[92756.537862] usb 1-1.1: Manufacturer: Silicon Labs
[92756.537878] usb 1-1.1: SerialNumber: 0001
[92756.601354] usbcore: registered new interface driver usbserial_generic
[92756.601427] usbserial: USB Serial support registered for generic
[92756.606419] usbcore: registered new interface driver cp210x
[92756.606542] usbserial: USB Serial support registered for cp210x
[92756.606718] cp210x 1-1.1:1.0: cp210x converter detected
[92756.615984] usb 1-1.1: cp210x converter now attached to ttyUSB0
[92756.642362] usb 1-1.4: new high-speed USB device number 9 using xhci_hcd
[92761.812702] usb 1-1.4: device descriptor read/64, error -110
[92777.172891] usb 1-1.4: device descriptor read/64, error -110
[92777.392690] usb 1-1.4: new high-speed USB device number 10 using xhci_hcd
[92782.532978] usb 1-1.4: device descriptor read/64, error -110
[92797.893174] usb 1-1.4: device descriptor read/64, error -110
[92798.013343] usb 1-1-port4: attempt power cycle
[92798.672970] usb 1-1.4: new high-speed USB device number 11 using xhci_hcd
[92800.628029] usb 1-1.4: Device not responding to setup address.
[92802.797909] usb 1-1.4: Device not responding to setup address.
[92803.013039] usb 1-1.4: device not accepting address 11, error -71
[92803.113045] usb 1-1.4: new high-speed USB device number 12 using xhci_hcd
[92805.067953] usb 1-1.4: Device not responding to setup address.
[92807.237967] usb 1-1.4: Device not responding to setup address.
[92807.453122] usb 1-1.4: device not accepting address 12, error -71
[92807.453596] usb 1-1-port4: unable to enumerate USB device

Additional information about your setup (OctoPrint version, OctoPi version, ...)
Version 0.18.0, running on Raspberry Pi 4 Model B Rev 1.1

browser.user_agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36
connectivity.connection_check : 1.1.1.1:53
connectivity.connection_ok : true
connectivity.enabled : false
connectivity.online : true
connectivity.resolution_check : octoprint.org
connectivity.resolution_ok : true
env.hardware.cores : 4
env.hardware.freq : 1500
env.hardware.ram : 3959984128
env.os.bits : 32
env.os.id : linux
env.os.platform : linux
env.plugins.pi_support.model : Raspberry Pi 4 Model B Rev 1.1
env.plugins.pi_support.octopi_version : 0.18.0
env.plugins.pi_support.throttle_check_enabled : true
env.plugins.pi_support.throttle_check_functional : true
env.plugins.pi_support.throttle_state : 0x0
env.python.pip : 20.3.3
env.python.version : 3.7.3
env.python.virtualenv : true
octoprint.last_safe_mode.date : unknown
octoprint.last_safe_mode.reason : unknown
octoprint.safe_mode : false
octoprint.version : 1.8.1
systeminfo.generated : 2022-07-02T01:36:43Z
systeminfo.generator : systemapi

The USB camera has a faulty power cable, and was being power cycled/reset - on power restore the camera was not registering with the Pi, so basically this issue was resolved when I swapped cameras.

2 Likes