Camera model
Raspi cam v2.1
What is the problem?
After I updated OctoPrint and/or a sudo apt update && sudo apt upgrade, the camera doesn't work anymore. no streaming, no snapshots or whatsoever
What did you already try to solve it?
FIrst I tested with raspistill -o testshot.jpg if the camera still worked. It did. Then I read somewhere here that the OS could be out of sync with OctoPrint, which could be the reason why it wasn't working in OctoPrint anymore. So I resflashed the SD card latest available image from Raspberry Pi imager. So now I'm on Octopi 1.0.0 and Octoprint 1.8.7.
When I now try to shoot a test picture with raspistill I get the following:
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly
testing with libcamera-still results in the following:
libcamera-still -n -e png -o test.png
[0:28:21.522750115] [2000] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
ERROR: *** no cameras available ***
I had to fumble a bit with the pi to get the SD card in and out, so I made sure the ribboncable was still properly seated.
Changed octopi.txt a few times to forced use all of the found video devices (see below in webcamd.log), and restarted webcamd but none worked. I got 2 different errors though in Webcamd.log
Logs (/var/log/webcamd.log
, syslog, dmesg, ... no logs, no support)
webcamd.log:
Starting up webcamDaemon...
--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: auto
usb options: -r 1280x720 -fps 10
raspi options: -fps 10
http options: -w ./www
Explicitly set USB device:
-----------------------------------------------
Found video devices:
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/video18
/dev/video20
/dev/video21
/dev/video22
/dev/video23
/dev/video31
config file='/boot/octopi.txt':USB device was not set in options, starting MJPG-streamer with the first found video device: /dev/video10
<13>May 17 23:18:12 root: Starting USB webcam
Checking for VL805 (Raspberry Pi 4)...
- It seems that you don't have VL805 (Raspberry Pi 4).
There should be no problems with USB (a.k.a. select() timeout)
Running ./mjpg_streamer -o output_http.so -w ./www -i input_uvc.so -r 1280x720 -fps 10 -d /dev/video10
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video10
i: Desired Resolution: 1280 x 720
i: Frames Per Second.: 10
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
Error opening device /dev/video10: video capture not supported.
Init v4L2 failed !! exit fatal
i: init_VideoIn failed
Done bringing up all configured video devices
Scanning again in two minutes
other error in webcamd.log
Starting up webcamDaemon...
--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: auto
usb options: -r 1280x720 -fps 10 -d /dev/video14
raspi options: -fps 10
http options: -w ./www
Explicitly set USB device: /dev/video14
-----------------------------------------------
Found video devices:
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/video18
/dev/video20
/dev/video21
/dev/video22
/dev/video23
/dev/video31
config file='/boot/octopi.txt':USB device was set in options and found in devices, starting MJPG-streamer with the configured USB video device: /dev/video14
<13>May 17 23:30:52 root: Starting USB webcam
Checking for VL805 (Raspberry Pi 4)...
- It seems that you don't have VL805 (Raspberry Pi 4).
There should be no problems with USB (a.k.a. select() timeout)
Running ./mjpg_streamer -o output_http.so -w ./www -i input_uvc.so -r 1280x720 -fps 10 -d /dev/video14
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video14
i: Desired Resolution: 1280 x 720
i: Frames Per Second.: 10
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
i: Could not obtain the requested pixelformat: MJPG , driver gave us: YUYV
... will try to handle this by checking against supported formats.
... Falling back to YUV mode (consider using -yuv option). Note that this requires much more CPU power
Unable to query that the FPS change is supported
: Inappropriate ioctl for device
UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Mode: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Frequency: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Disable video processing: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device (25)
o: www-folder-path......: ./www/
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: enabled
Done bringing up all configured video devices
i: select() timeout
i: cleaning up resources allocated by input thread
/root/bin/webcamd: line 103: kill: (1726) - No such process
Goodbye...
Additional information about your setup (OctoPrint version, OctoPi version, ...)
OctoPi 1.0.0 and OctoPrint 1.8.7
** New Info **
I updated boot/config.txt. commented start_x=1 out and added camera_auto_detect=1
and then rebooted.
When I then run libcamera-hello --list-cameras, I get No cameras available!