"Webcam stream loading" forever after update re-flash

Camera model

RPi Camera Module 3

What is the problem?

The control page shows "Webcam stream loading" in the viewer forever.

What did you already try to solve it?

Power cycle of whole system. Also checked to see if the camera was recognized at the command line:
supported=1 detected=1, libcamera interfaces=0

Have you tried running in safe mode?

Yes

Did running in safe mode solve the problem?

Nope

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

attached
octoprint-systeminfo-20251205172217.zip (20.9 KB)

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
Raspberry Pi 4 B, browsing from Mac OS & Safari. Was working fine before I reflashed my card to update Python. I restored the previous setup from a backup (using OctoPrint's backup/restore).

Someone mentioned that the legacy camera lib might no longer work, so I tried rpicam-hello at the command line and indeed it said no cameras detected. So I went into config.txt and turned camera autodetection on, then rebooted.

Now rpicam-hello reports finding the camera, but the OctoPrint stream still doesn't work. Here's the output; I figured the last error was because OctoPrint is using the camera, but I don't know...

[0:06:53.880579502] [994]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:06:53.880644511] [994]  INFO RPI pipeline_base.cpp:1126 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Preview window unavailable
Mode selection for 2304:1296:12:P
    SRGGB10_CSI2P,1536x864/0 - Score: 3400
    SRGGB10_CSI2P,2304x1296/0 - Score: 1000
    SRGGB10_CSI2P,4608x2592/0 - Score: 1900
[0:06:53.882810108] [991]  INFO Camera camera.cpp:1197 configuring streams: (0) 2304x1296-YUV420 (1) 2304x1296-SBGGR10_CSI2P
[0:06:53.883060070] [994] ERROR V4L2 v4l2_videodevice.cpp:1072 /dev/video0[14:cap]: Unable to set format: Device or resource busy
ERROR: *** failed to configure streams ***