Open ScruffR opened 4 years ago
I wanted to chime in and add that I too have the same issue with the same temporary resolution of : pi@octopi:~ $ sudo systemctl restart webcamd
Using Logitech 902 USB Camera
octopi.txt Camera="USB" (Attempted "auto" to no better results)
The result from Control tab image "Webcam Stream Loading...." (To No Avail.)
pi@octopi:~ $ systemctl status webcamd
● 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 Sat 2020-08-22 18:59:25 BST; 2min 46s ago
Process: 355 ExecStart=/root/bin/webcamd (code=exited, status=0/SUCCESS)
Main PID: 431 (mjpg_streamer)
Tasks: 4 (limit: 2077)
Memory: 3.6M
CGroup: /system.slice/webcamd.service
└─431 ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video0
Aug 22 18:59:24 octopi mjpg_streamer[431]: MJPG-streamer [431]: commands.............: disabled
Aug 22 18:59:24 octopi mjpg_streamer[431]: MJPG-streamer [431]: starting input plugin input_uvc.so
Aug 22 18:59:24 octopi mjpg_streamer[431]: MJPG-streamer [431]: starting output plugin: output_http.so (ID: 00)
Aug 22 18:59:25 octopi webcamd[355]: Done bring up all configured video device
Aug 22 18:59:25 octopi webcamd[355]: Goodbye...
Aug 22 18:59:25 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Aug 22 18:59:29 octopi webcamd[355]: i: select() timeout
Aug 22 18:59:29 octopi webcamd[355]: i: cleaning up resources allocated by input thread
Aug 22 18:59:29 octopi mjpg_streamer[431]: MJPG-streamer [431]: select() timeout
Aug 22 18:59:29 octopi mjpg_streamer[431]: MJPG-streamer [431]: cleaning up resources allocated by input thread
pi@octopi:~ $
pi@octopi:~ $ sudo systemctl restart webcamd pi@octopi:~ $ systemctl status webcamd
● 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 Sat 2020-08-22 19:03:32 BST; 17s ago
Process: 763 ExecStart=/root/bin/webcamd (code=exited, status=0/SUCCESS)
Main PID: 787 (mjpg_streamer)
Tasks: 4 (limit: 2077)
Memory: 1.4M
CGroup: /system.slice/webcamd.service
└─787 ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video0
Aug 22 19:03:31 octopi mjpg_streamer[787]: MJPG-streamer [787]: www-folder-path......: ./www-octopi/
Aug 22 19:03:31 octopi mjpg_streamer[787]: MJPG-streamer [787]: HTTP TCP port........: 8080
Aug 22 19:03:31 octopi mjpg_streamer[787]: MJPG-streamer [787]: HTTP Listen Address..: (null)
Aug 22 19:03:31 octopi mjpg_streamer[787]: MJPG-streamer [787]: username:password....: disabled
Aug 22 19:03:31 octopi mjpg_streamer[787]: MJPG-streamer [787]: commands.............: disabled
Aug 22 19:03:31 octopi mjpg_streamer[787]: MJPG-streamer [787]: starting input plugin input_uvc.so
Aug 22 19:03:31 octopi mjpg_streamer[787]: MJPG-streamer [787]: starting output plugin: output_http.so (ID: 00)
Aug 22 19:03:32 octopi webcamd[763]: Done bring up all configured video device
Aug 22 19:03:32 octopi webcamd[763]: Goodbye...
Aug 22 19:03:32 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
pi@octopi:~ $
Not sure what is causing it at first glance, perhaps the video device takes longer to start. Sounds like a timing issue in general.
Maybe that service should start after octoprint @foosel ?
Same issue, stopped working a while ago, not sure why, just got around to debugging and tried this and it works.
Same issue on 0.18 RC1 Spent 2 hours for nothing so thanks for the workaround :-)
Running OctoPi 0.18.0 / OctoPrint 1.6.1, having the same issue with a Logitech QuickCam Pro 9000. Restarting webcamd fixes it here as well.
Brilliant! The restart fixed my issue as well.
What were you doing?
After a SD card crash I finally got round to upgrading to the lates release but noticed that my Logitech Pro 9000 didn't work.
What did you expect to happen?
Of course I expected the webcam stream to show
What happened instead?
but it only ever keeps displaying this for hours on end
Did the same happen when running OctoPrint in safe mode?
Yes, just the same.
Version of OctoPi
I'm running on a RPi 3B+
Printer model & used firmware incl. version
although irrelevant for the issue at hand: Creality CR-10
Screenshot(s)/video(s) showing the problem:
see "What happened instead?"
I have read the FAQ.
However, I found that doing this resolves the issue till next reboot
After boot
systemctl status webcamd
reports thisand after the restart this
After that the stream works even after a restarting OctoPrint - however when rebooting the RPi the problem reoccures.
Could a delayed start of
webcamd
be a possible solution?