Raspi Cam not working anymore after pluging in USB Cam, and remove

Camera model

Raspi Cam v3

What is the problem?

Im using the new camera stack. After I pulged in an USB Cam, just to test, the Raspi Com stream stoppt working, and is still not working anymore after unplugging usb cam.

What did you already try to solve it?

Remove usb-cam Config
Camera ist listet in

libcamera-hello --list-cameras
Available cameras
-----------------
0 : imx708 [4608x2592] (/base/soc/i2c0mux/i2c@1/imx708@1a)
    Modes: 'SRGGB10_CSI2P' : 1536x864 [30.00 fps - (0, 0)/0x0 crop]
                             2304x1296 [30.00 fps - (0, 0)/0x0 crop]
                             4608x2592 [30.00 fps - (0, 0)/0x0 crop]

but
libcamera-hello throws an error:

libcamera-hello
Preview window unavailable
[0:05:42.347940020] [1446]  INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04f
[0:05:42.409347955] [1447]  INFO RPI vc4.cpp:437 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media4 and ISP device /dev/media0
[0:05:42.409416140] [1447]  INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:05:42.409709505] [1446]  INFO Camera camera.cpp:840 Pipeline handler in use by another process
ERROR: *** failed to acquire camera /base/soc/i2c0mux/i2c@1/imx708@1a ***

Have you tried running in safe mode?

YES

Did running in safe mode solve the problem?

NO

Systeminfo Bundle

in camera-stack.jornal are erros too:

c 24 13:51:43 octoprint sh[664]: [0:00:12.906228158] [689]  WARN IPARPI ipa_base.cpp:1070 Could not set AF_TRIGGER - no AF algorithm or not Auto
Dec 24 13:51:43 octoprint sh[664]: device/buffer_list.c: CAMERA:capture: Streaming started... Was 0 of 2 enqueud
Dec 24 13:51:43 octoprint sh[664]: device/buffer_list.c: SNAPSHOT:output:mplane: Streaming started... Was 0 of 2 enqueud
Dec 24 13:51:43 octoprint sh[664]: device/buffer_list.c: RESCALLER:STREAM:output:mplane: Streaming started... Was 0 of 2 enqueud
Dec 24 13:51:43 octoprint sh[664]: device/buffer_list.c: SNAPSHOT:capture:mplane: Streaming started... Was 0 of 2 enqueud
Dec 24 13:51:43 octoprint sh[664]: device/buffer_list.c: RESCALLER:STREAM:capture:mplane: Streaming started... Was 0 of 2 enqueud
Dec 24 13:51:43 octoprint sh[664]: device/buffer_list.c: STREAM:output:mplane: Streaming started... Was 0 of 2 enqueud
Dec 24 13:51:43 octoprint sh[664]: device/buffer_list.c: VIDEO:output:mplane: Streaming started... Was 0 of 2 enqueud
Dec 24 13:51:43 octoprint sh[664]: device/buffer_list.c: STREAM:capture:mplane: Streaming started... Was 0 of 2 enqueud
Dec 24 13:51:43 octoprint sh[664]: device/buffer_list.c: VIDEO:capture:mplane: Streaming started... Was 0 of 2 enqueud
Dec 24 13:51:44 octoprint sh[664]: [0:00:14.068662324] [686]  WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[24:cap]: Dequeue timer of 1000000.00us has expired!
Dec 24 13:51:44 octoprint sh[664]: [0:00:14.068766361] [686] ERROR RPI pipeline_base.cpp:1333 Camera frontend has timed out!
Dec 24 13:51:44 octoprint sh[664]: [0:00:14.068804195] [686] ERROR RPI pipeline_base.cpp:1334 Please check that your camera sensor connector is attached securely.
Dec 24 13:51:44 octoprint sh[664]: [0:00:14.068841991] [686] ERROR RPI pipeline_base.cpp:1335 Alternatively, try another cable and/or sensor.
Dec 24 13:52:59 octoprint sh[664]: util/http/http.c: HTTP8080/0: Client connected 127.0.0.1 (fd=4).
Dec 24 13:52:59 octoprint sh[664]: util/http/http.c: HTTP8080/0: Request 'GET' '/' 'action=stream&nonce_dashboard=1703422375989'
Dec 24 13:52:59 octoprint sh[664]: util/http/http.c: HTTP8080/1: Client connected 127.0.0.1 (fd=5).
Dec 24 13:52:59 octoprint sh[664]: util/http/http.c: HTTP8080/1: Request 'GET' '/' 'action=stream'
Dec 24 13:52:59 octoprint sh[664]: [0:01:09.810281773] [686] ERROR Camera camera.cpp:1135 Request(0:X:0/1:0) is not valid
Dec 24 13:52:59 octoprint sh[664]: [0:01:09.810361347] [686] ERROR Camera camera.cpp:1135 Request(1:X:0/1:1) is not valid
Dec 24 13:53:01 octoprint sh[664]: util/http/http.c: HTTP8080/0: Client disconnected 127.0.0.1.
Dec 24 13:53:01 octoprint sh[664]: util/http/http.c: HTTP8080/1: Client disconnected 127.0.0.1.
Dec 24 13:53:07 octoprint sh[664]: util/http/http.c: HTTP8080/2: Client connected 127.0.0.1 (fd=6).
Dec 24 13:53:07 octoprint sh[664]: util/http/http.c: HTTP8080/2: Request 'GET' '/' 'action=stream'
Dec 24 13:53:09 octoprint sh[664]: util/http/http.c: HTTP8080/2: Client disconnected 127.0.0.1.

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

WRITE HERE

  • OctoPrint 1.9.3
  • Python 3.9.2
  • OctoPi* 1.0.0cam (build 2023.10.09.154319)

I assume you have tried rebooting the Pi after plugging in the Pi camera?

yes of cause, First Thing I try

Problem is still there, when I do a backup, and fresh intstall an replay the backup, only when I make a complete new install I see the webcam image...

If it's impacted by the OctoPrint backup, my guess is that you have the stream URL configured wrong in the backup and it's overwriting whatever the default (correct) one is.

For the new camera stack OctoPi image, use:

  • Stream URL: /webcam/?action=stream
  • Snapshot URL: http://127.0.0.1:8080/?action=snapshot

Try it and see what happens.