Webcam stream url no longer response

Camera model

Smraza Raspberry Pi 4 Camera Module 5 Megapixels

What is the problem?

Webcam stream no longer response with video data. Web browser requests are not served. Looks like there is no connection for that url/port.

What did you already try to solve it?

I reboot in safe mode. Swap out camera ribbon cable for a new one. No luck.

sudo service webcamd restart hang the ssh session.

ps -ax|grep mjpg returns no process

829 pts/1 S+ 0:00 grep --color=auto mjpg

Short of rebuilding the OctoPi and restore from a backup, what else can I do to fix the webcamd?

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)

No webcamd.log

This is from running service webcamd status

● webcamd.service - the OctoPi webcam daemon with the user specified config
Loaded: loaded (/etc/systemd/system/webcamd.service; enabled; vendor preset: enabled)
Active: deactivating (stop-sigterm) (Result: timeout)
Cntrl PID: 679 (webcamd)
Tasks: 5 (limit: 4915)
Memory: 1.1M
CGroup: /system.slice/webcamd.service
├─679 /bin/bash /root/bin/webcamd
└─683 vcgencmd version

Nov 16 20:55:00 octopi webcamd[679]: Starting up webcamDaemon...
Nov 16 20:55:00 octopi webcamd[679]: --- Configuration: ----------------------------
Nov 16 20:55:00 octopi webcamd[679]: cfg_file: /boot/octopi.txt
Nov 16 20:55:00 octopi webcamd[679]: camera: raspi
Nov 16 20:55:00 octopi webcamd[679]: usb options: -r 640x480 -f 15
Nov 16 20:55:00 octopi webcamd[679]: raspi options: -x 1920 -y 1080 -fps 15 -ev 3 -ifx none -mm matrix -vf -hf
Nov 16 20:55:00 octopi webcamd[679]: http options: -w ./www
Nov 16 20:55:00 octopi webcamd[679]: Explicitly USB device:
Nov 16 20:55:00 octopi webcamd[679]: -----------------------------------------------
Nov 16 20:56:31 octopi systemd[1]: webcamd.service: Start operation timed out. Terminating.

journalctl -u webcamd got me this:

Nov 16 20:51:59 octopi webcamd[353]: /root/bin/webcamd: line 256: 417 Segmentation fault LD_LIBRARY_PATH=. ./mjpg
Nov 16 20:51:59 octopi webcamd[353]: Done bring up all configured video device
Nov 16 20:51:59 octopi webcamd[353]: Goodbye...
Nov 16 20:51:59 octopi systemd[1]: webcamd.service: Succeeded.
Nov 16 20:51:59 octopi systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Nov 16 20:52:00 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Nov 16 20:52:00 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 1.
Nov 16 20:52:00 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Nov 16 20:52:00 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Nov 16 20:52:00 octopi webcamd[658]: Starting up webcamDaemon...
Nov 16 20:52:00 octopi webcamd[658]: --- Configuration: ----------------------------
Nov 16 20:52:00 octopi webcamd[658]: cfg_file: /boot/octopi.txt
Nov 16 20:52:00 octopi webcamd[658]: camera: raspi
Nov 16 20:52:00 octopi webcamd[658]: usb options: -r 640x480 -f 15
Nov 16 20:52:00 octopi webcamd[658]: raspi options: -x 1920 -y 1080 -fps 15 -ev 3 -ifx none -mm matrix -vf -hf
Nov 16 20:52:00 octopi webcamd[658]: http options: -w ./www
Nov 16 20:52:00 octopi webcamd[658]: Explicitly USB device:
Nov 16 20:52:00 octopi webcamd[658]: -----------------------------------------------
Nov 16 20:53:30 octopi systemd[1]: webcamd.service: Start operation timed out. Terminating.
Nov 16 20:55:00 octopi systemd[1]: webcamd.service: State 'stop-sigterm' timed out. Killing.
Nov 16 20:55:00 octopi systemd[1]: webcamd.service: Killing process 658 (webcamd) with signal SIGKILL.
Nov 16 20:55:00 octopi systemd[1]: webcamd.service: Killing process 662 (vcgencmd) with signal SIGKILL.
Nov 16 20:55:00 octopi systemd[1]: webcamd.service: Control process exited, code=killed, status=9/KILL
Nov 16 20:55:00 octopi systemd[1]: webcamd.service: Failed with result 'timeout'.
Nov 16 20:55:00 octopi systemd[1]: Failed to start the OctoPi webcam daemon with the user specified config.
Nov 16 20:55:00 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Nov 16 20:55:00 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 2.
Nov 16 20:55:00 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Nov 16 20:55:00 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Nov 16 20:55:00 octopi webcamd[679]: Starting up webcamDaemon...
Nov 16 20:55:00 octopi webcamd[679]: --- Configuration: ----------------------------
Nov 16 20:55:00 octopi webcamd[679]: cfg_file: /boot/octopi.txt
Nov 16 20:55:00 octopi webcamd[679]: camera: raspi
Nov 16 20:55:00 octopi webcamd[679]: usb options: -r 640x480 -f 15
Nov 16 20:55:00 octopi webcamd[679]: raspi options: -x 1920 -y 1080 -fps 15 -ev 3 -ifx none -mm matrix -vf -hf
Nov 16 20:55:00 octopi webcamd[679]: http options: -w ./www
Nov 16 20:55:00 octopi webcamd[679]: Explicitly USB device:
Nov 16 20:55:00 octopi webcamd[679]: -----------------------------------------------
Nov 16 20:56:31 octopi systemd[1]: webcamd.service: Start operation timed out. Terminating.
Nov 16 20:58:01 octopi systemd[1]: webcamd.service: State 'stop-sigterm' timed out. Killing.
Nov 16 20:58:01 octopi systemd[1]: webcamd.service: Killing process 679 (webcamd) with signal SIGKILL.
Nov 16 20:58:01 octopi systemd[1]: webcamd.service: Killing process 683 (vcgencmd) with signal SIGKILL.
Nov 16 20:58:01 octopi systemd[1]: webcamd.service: Control process exited, code=killed, status=9/KILL
Nov 16 20:59:31 octopi systemd[1]: webcamd.service: State 'stop-final-sigterm' timed out. Killing.
Nov 16 20:59:31 octopi systemd[1]: webcamd.service: Failed with result 'timeout'.
Nov 16 20:59:31 octopi systemd[1]: Failed to start the OctoPi webcam daemon with the user specified config.
Nov 16 20:59:31 octopi systemd[1]: webcamd.service: Service RestartSec=100ms expired, scheduling restart.
Nov 16 20:59:31 octopi systemd[1]: webcamd.service: Scheduled restart job, restart counter is at 3.
Nov 16 20:59:31 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Nov 16 20:59:31 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Nov 16 20:59:31 octopi webcamd[740]: Starting up webcamDaemon...
Nov 16 20:59:31 octopi webcamd[740]: --- Configuration: ----------------------------
Nov 16 20:59:31 octopi webcamd[740]: cfg_file: /boot/octopi.txt
Nov 16 20:59:31 octopi webcamd[740]: camera: raspi
Nov 16 20:59:31 octopi webcamd[740]: usb options: -r 640x480 -f 15
Nov 16 20:59:31 octopi webcamd[740]: raspi options: -x 1920 -y 1080 -fps 15 -ev 3 -ifx none -mm matrix -vf -hf
Nov 16 20:59:31 octopi webcamd[740]: http options: -w ./www
Nov 16 20:59:31 octopi webcamd[740]: Explicitly USB device:
Nov 16 20:59:31 octopi webcamd[740]: -----------------------------------------------
Nov 16 21:01:45 octopi systemd[1]: webcamd.service: State 'stop-sigterm' timed out. Killing.
Nov 16 21:01:45 octopi systemd[1]: webcamd.service: Killing process 740 (webcamd) with signal SIGKILL.
Nov 16 21:01:45 octopi systemd[1]: webcamd.service: Killing process 744 (vcgencmd) with signal SIGKILL.
Nov 16 21:01:45 octopi systemd[1]: webcamd.service: Control process exited, code=killed, status=9/KILL
Nov 16 21:03:15 octopi systemd[1]: webcamd.service: State 'stop-final-sigterm' timed out. Killing.
Nov 16 21:03:15 octopi systemd[1]: webcamd.service: Failed with result 'timeout'.
Nov 16 21:03:15 octopi systemd[1]: Stopped the OctoPi webcam daemon with the user specified config.
Nov 16 21:03:15 octopi systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Nov 16 21:03:15 octopi webcamd[818]: Starting up webcamDaemon...
Nov 16 21:03:15 octopi webcamd[818]: --- Configuration: ----------------------------
Nov 16 21:03:15 octopi webcamd[818]: cfg_file: /boot/octopi.txt
Nov 16 21:03:15 octopi webcamd[818]: camera: raspi
Nov 16 21:03:15 octopi webcamd[818]: usb options: -r 640x480 -f 15
Nov 16 21:03:15 octopi webcamd[818]: raspi options: -x 1920 -y 1080 -fps 15 -ev 3 -ifx none -mm matrix -vf -hf
Nov 16 21:03:15 octopi webcamd[818]: http options: -w ./www
Nov 16 21:03:15 octopi webcamd[818]: Explicitly USB device:
Nov 16 21:03:15 octopi webcamd[818]: -----------------------------------------------

Additional information about your setup (OctoPrint version, OctoPi version, ...)

OctoPrint 1.4.2 Python 3.7.3 OctoPi 0.17.0