Webcam repeatedly fails every 3 minutes

Camera model
Raspberry Pi Camera Module 3 Wide

What is the problem?
Consistently in the Octopi UI the Control Tab shows that the webcam feed is not loaded. Upon checking in the settings and the direct stream URL the behavior is the same. Upon checking the logs (sudo journalctl -u webcamd) I see that the libcamera application starting regularly every 3 minutes or so.

What did you already try to solve it?

I've tried updating the Octopi application, reseating all cables, and validated configuration settings.
To set up the webcam I used the instructions in this post which also utilized instructions here. The camera section of my OctoPi configuration is below:

camera="libcamera"
camera_libcamera_options="-r 1280x720 -f 10"
camera_http_webroot="./www"
camera_http_options="-n"

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

Apr 25 02:03:21 octopi root[6153]: Starting Libcamera camera
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: starting application
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: MJPG Streamer Version: git rev: 290776e2d59ecf4589ffe15800e1ccfe17dc07e7
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: Desired Resolution: 1280 x 720
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: www-folder-path......: ./www-octopi/
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: HTTP TCP port........: 8080
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: HTTP Listen Address..: (null)
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: username:password....: disabled
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: commands.............: disabled
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: starting input plugin input_libcamera.so
Apr 25 02:03:21 octopi mjpg_streamer[6154]: MJPG-streamer [6154]: starting output plugin: output_http.so (ID: 00)
Apr 25 02:06:00 octopi root[6204]: Starting Libcamera camera
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: starting application
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: MJPG Streamer Version: git rev: 290776e2d59ecf4589ffe15800e1ccfe17dc07e7
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: Desired Resolution: 1280 x 720
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: www-folder-path......: ./www-octopi/
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: HTTP TCP port........: 8080
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: HTTP Listen Address..: (null)
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: username:password....: disabled
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: commands.............: disabled
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: starting input plugin input_libcamera.so
Apr 25 02:06:00 octopi mjpg_streamer[6205]: MJPG-streamer [6205]: starting output plugin: output_http.so (ID: 00)
Apr 25 02:09:09 octopi root[6293]: Starting Libcamera camera
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: starting application
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: MJPG Streamer Version: git rev: 290776e2d59ecf4589ffe15800e1ccfe17dc07e7
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: Desired Resolution: 1280 x 720
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: www-folder-path......: ./www-octopi/
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: HTTP TCP port........: 8080
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: HTTP Listen Address..: (null)
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: username:password....: disabled
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: commands.............: disabled
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: starting input plugin input_libcamera.so
Apr 25 02:09:09 octopi mjpg_streamer[6294]: MJPG-streamer [6294]: starting output plugin: output_http.so (ID: 00)

Additional information about your setup (OctoPrint version, OctoPi version, ...)

OctoPrint 1.8.7
OctoPi Version 1.0.0, running on Raspberry Pi 3 Model B Plus Rev 1.3

Any help is appreciated!

Is the power supply sufficient for the Pi plus the cam?

The 'libcamera' fork of mjpg streamer that Arducam created (& I think you must have installed) does have some issues. I would recommend using camera-streamer instead, and if you want to use an OctoPi image with this preinstalled please see below:

The image is in testing to replace the existing webcam stack.

Yes, and I am not getting any low power warnings from OctoPi or the system itself.

1 Like

I will give this a try, thank you!