I have an old webcam and I would love to use it. I found this post and followed the guidelines. I can see the cam working after sudo systemctl start webcamd.service but when I reboot the system It doesn't work unless I start it manually.
Couldn't find the log file as it says in the post.
I can see the cam in my local network but I can't over The Spaghetti Detective.
Tried with the -y option too (camera_usb_options="-r 640x480 -f 10 -y")
I'm open to test what is needed.
Thanks in advance.
Camera model
Papalook PA452
What is the problem?
Camera doesn't connect after a reboot. Have to do it manually via SSH What did you already try to solve it?
Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)
Couldn't find any log in /var/log/webcamd.log. If you could help me fint it I'll be glad to provide. Additional information about your setup (OctoPrint version, OctoPi version, ...)
Version 0.17.0, running on Raspberry Pi 2 Model B Rev 1.1
I've got a similar problem, but in my case it is with Raspberry Camera V2. I've got the latest version 0.17.0 installed on a Raspberry Pi 4. The camera works perfectly fine on a Pi 3.
I've done the following:
systemctl status webcamd.service
This showed the following:
webcamd.service - the OctoPi webcam daemon with the user specified config
Loaded: loaded (/etc/systemd/system/webcamd.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Sun 2019-12-29 17:17:12 GMT; 4min 41s ago
Process: 591 ExecStart=/root/bin/webcamd (code=exited, status=0/SUCCESS)
Dec 29 17:17:12 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Dec 29 17:17:12 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 5.
Dec 29 17:17:12 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Dec 29 17:17:12 octopi systemd[1]: webcamd.service: Start request repeated too quickly.
Dec 29 17:17:12 octopi systemd[1]: webcamd.service: Failed with result 'start-limit-hit'.
Dec 29 17:17:12 octopi systemd[1]: Failed to start the OctoPi webcam daemon with the user specified config.
A possible solution might seem obvious to someone else, but my Linux skills are very basic...
This is my output with systemctl status webcamd.service
I can't see the webcam in Octoprint but it loads when I do sudo systemctl stop webcamd.service and then sudo systemctl start webcamd.service
pi@octopi:~ $ systemctl status webcamd.service
β webcamd.service - the OctoPi webcam daemon with the user specified config
Loaded: loaded (/etc/systemd/system/webcamd.service; enabled; vendor preset:
Active: active (running) since Sun 2019-12-29 22:20:01 CET; 6min ago
Process: 977 ExecStart=/root/bin/webcamd (code=exited, status=0/SUCCESS)
Main PID: 1004 (mjpg_streamer)
Tasks: 3 (limit: 2077)
Memory: 1.8M
CGroup: /system.slice/webcamd.service
ββ1004 ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: www-folder-pat
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: HTTP TCP port.
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: HTTP Listen Ad
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: username:passw
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: commands......
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: starting input
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: starting outpu
Dec 29 22:20:01 octopi webcamd[977]: Done bring up all configured video device
Dec 29 22:20:01 octopi webcamd[977]: Goodbye...
Dec 29 22:20:01 octopi systemd[1]: Started the OctoPi webcam daemon with the use
lines 1-20/20 (END)...skipping...
β webcamd.service - the OctoPi webcam daemon with the user specified config
Loaded: loaded (/etc/systemd/system/webcamd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-12-29 22:20:01 CET; 6min ago
Process: 977 ExecStart=/root/bin/webcamd (code=exited, status=0/SUCCESS)
Main PID: 1004 (mjpg_streamer)
Tasks: 3 (limit: 2077)
Memory: 1.8M
CGroup: /system.slice/webcamd.service
ββ1004 ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -y -d /dev/
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: www-folder-path......: ./www-octopi/
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: HTTP TCP port........: 8080
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: HTTP Listen Address..: (null)
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: username:password....: disabled
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: commands.............: disabled
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: starting input plugin input_uvc.so
Dec 29 22:20:00 octopi mjpg_streamer[1004]: MJPG-streamer [1004]: starting output plugin: output_http.so (ID:
Dec 29 22:20:01 octopi webcamd[977]: Done bring up all configured video device
Dec 29 22:20:01 octopi webcamd[977]: Goodbye...
Dec 29 22:20:01 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
If you are using The Spaghetti Detective check under the plugins setting menu then the advanced tab. Uncheck 25FPS streaming and reboot the device running OctoPrint. If this setting is enabled it does not use webcamd(mjpegstreamer) it uses Janus to handle the stream and disables webcamd