I'm no linux expert but I'm not exactly a novice either. I have established what triggers the problem, just don't know how to fix it. When I try to test timelapse webcamd is disabled fails to start and even with timelapse disabled I cannot get webcamd to run anymore.
Hardware
Raspberry Pi 3B+
Arducam B0033R
Waveshare 3.5" LCD touch display
8gb SD card
Process
Clean Octoprint image - 2019-09-26-octopi-buster-lite-0.17.0
raspi-config enable camera,ssh,configure wifi
Reboot
Open Octoprint and enter initial configuration - Do NOT enable authenticated access or you'll be prompted for Octopi Login before booting directly to desktop (learned that one already)
select Control option in Octoprint - webcam is displayed
sudo /home/pi/scripts/install-desktop
sudo raspi-config - boot options - desktop GUI - boot to GUI logged in as PI user
Reboot
Boots to desktop no problem
Octopi - Control - Webcam still working
git clone https://github.com/waveshare/LCD-show.git
LCD-show 0
Reboot
Seemless boot to desktop GUI - 480x320 resolution - touch display working
Open OctoPrint - Control Tab - Camera working
apt-get update && apt-get upgrade
Reboot
Seemless boot to desktop GUI - 480x320 resolution - touch display working
Open OctoPrint - Control Tab - Camera working
OctoPrint - Timelapse Tab - Camera disabled - webcamd service fails logs show errors
Please help! Thank you.
Camera model
Arducam B0033R
What is the problem?
I can view the CAM via the control tab. As soon as I click on the Timelapse tab webcamd fails and the camera is no longer accessible.
What did you already try to solve it?
Reboot = failed
sudo systemctl restart webcamd = failed
read hundreds of unrelated posts = no luck
Re-image my sd card with Octopi and start over = confirmed timelapse disables webcamd permanently
Logs (/var/log/webcamd.log
, syslog, dmesg, ... no logs, no support)
May 17 19:14:10 octopi systemd[1]: webcamd.service: Succeeded.
May 17 19:14:10 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
May 17 19:14:11 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
May 17 19:14:11 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 4.
May 17 19:14:11 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
May 17 19:14:11 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
May 17 19:14:11 octopi webcamd[586]: Starting up webcamDaemon...
May 17 19:14:11 octopi webcamd[586]: --- Configuration: ----------------------------
May 17 19:14:11 octopi webcamd[586]: cfg_file: /boot/octopi.txt
May 17 19:14:11 octopi webcamd[586]: camera: auto
May 17 19:14:11 octopi webcamd[586]: usb options: -r 640x480 -f 10
May 17 19:14:11 octopi webcamd[586]: raspi options: -fps 10
May 17 19:14:11 octopi webcamd[586]: http options: -w ./www-octopi -n
May 17 19:14:11 octopi webcamd[586]: Explicitly USB device:
May 17 19:14:11 octopi webcamd[586]: -----------------------------------------------
May 17 19:14:11 octopi webcamd[586]: Found video devices:
May 17 19:14:11 octopi webcamd[586]: /dev/video10
May 17 19:14:11 octopi webcamd[586]: /dev/video11
May 17 19:14:11 octopi webcamd[586]: /dev/video12
May 17 19:14:11 octopi webcamd[586]: config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video10
May 17 19:14:11 octopi webcamd[586]: /root/bin/webcamd: line 153: printf: 0x: invalid hex number
May 17 19:14:11 octopi webcamd[586]: /root/bin/webcamd: line 153: printf: 0x: invalid hex number
May 17 19:14:11 octopi root: Starting USB webcam
May 17 19:14:11 octopi webcamd[586]: <13>May 17 19:14:11 root: Starting USB webcam
May 17 19:14:11 octopi webcamd[586]: Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video10
May 17 19:14:11 octopi webcamd[586]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
May 17 19:14:11 octopi webcamd[586]: i: Using V4L2 device.: /dev/video10
May 17 19:14:11 octopi webcamd[586]: i: Desired Resolution: 640 x 480
May 17 19:14:11 octopi webcamd[586]: i: Frames Per Second.: 10
May 17 19:14:11 octopi webcamd[586]: i: Format............: JPEG
May 17 19:14:11 octopi webcamd[586]: i: TV-Norm...........: DEFAULT
May 17 19:14:11 octopi webcamd[586]: Error opening device /dev/video10: video capture not supported.
May 17 19:14:11 octopi webcamd[586]: Init v4L2 failed !! exit fatal
May 17 19:14:11 octopi webcamd[586]: i: init_VideoIn failed
May 17 19:14:12 octopi webcamd[586]: Done bring up all configured video device
May 17 19:14:12 octopi webcamd[586]: Goodbye...
May 17 19:14:12 octopi systemd[1]: webcamd.service: Succeeded.
May 17 19:14:12 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
May 17 19:14:12 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
May 17 19:14:12 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 5.
May 17 19:14:12 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
May 17 19:14:12 octopi systemd[1]: webcamd.service: Start request repeated too quickly.
May 17 19:14:12 octopi systemd[1]: webcamd.service: Failed with result 'start-limit-hit'.
May 17 19:14:12 octopi systemd[1]: Failed to start the OctoPi webcam daemon with the user specified config.
Additional information about your setup (OctoPrint version, OctoPi version, ...)
OctoPrint 1.4.0