I turned off the Pi while away for a week. When I came back the camera was no longer working.
Camera model
Dorhea Camera Module Automatic IR-Cut Switching Day/Night Vision Video Module Adjustable Focus 5MP OV5647 Sensor 1080p HD Webcam
What is the problem?
While webcamd seems to load fine (on port 8080) based on the log, the stream isn't available. I get a "connection refused" error when I attempt to connect to port 8080.
What did you already try to solve it?
I've tried turning on and off the interface in raspi-config as well as many reboots. Sometimes I get a different error in the logs that looks like something else is using the camera but I can't see anything that is.
Logs (/var/log/webcamd.log
, syslog, dmesg, ... no logs, no support)
This is the last two boots from the webcamd you can see the two different results. Neither one was working.
--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: raspi
usb options: -r 1024x768 -f 25
raspi options: -x 1920 -y 1080 -fps 25 -quality 100 -p 8181
http options: -w ./www
Explicitly USB device:
-----------------------------------------------
Found video devices:
/dev/video0
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/video18
raspi
config file='/boot/octopi.txt':Start MJPG-streamer with video device: raspi
<13>Dec 4 09:40:00 root: Starting Raspberry Pi camera
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_raspicam.so -x 1920 -y 1080 -fps 25 -quality 100 -p 8181
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
i: fps.............: 25
i: resolution........: 1920 x 1080
i: camera parameters..............:
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
o: www-folder-path......: ./www/
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: enabled
i: Starting Camera
Encoder Buffer Size 81920
/root/bin/webcamd: line 105: kill: (499) - No such process
Goodbye...
Starting up webcamDaemon...
--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: raspi
usb options: -r 1024x768 -f 25
raspi options: -x 1920 -y 1080 -fps 25 -quality 100 -p 8181
http options: -w ./www
Explicitly USB device:
-----------------------------------------------
Found video devices:
/dev/video0
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/video18
raspi
config file='/boot/octopi.txt':Start MJPG-streamer with video device: raspi
<13>Dec 4 09:57:15 root: Starting Raspberry Pi camera
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_raspicam.so -x 1920 -y 1080 -fps 25 -quality 100 -p 8181
MJPG Streamer Version: git rev: 5554f42c352ecfa7edaec6fc51e507afce605a34
i: fps.............: 25
i: resolution........: 1920 x 1080
i: camera parameters..............:
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
o: www-folder-path......: ./www/
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: enabled
i: Starting Camera
Encoder Buffer Size 81920
Done bring up all configured video device
Goodbye...
Additional information about your setup (OctoPrint version, OctoPi version, ...)
OctoPrint 1.7.2
Python 3.7.3
OctoPi 0.18.0