Camera stopped working after update

I think it was after the last update that my camera stopped working. If I try to take a still image it crashes. Via putty I get the following log.

The folder is there, the image is trying to reach is not. The only option is to reboot it to get it back only. Haven’t tried rebooting only the frontend.


-- Logs begin at Thu 2021-06-17 12:17:01 CEST, end at Thu 2021-06-17 13:11:15 CEST. --
Jun 17 12:42:26 raspberrypi systemd[1]: Started gunicorn daemon for Mycodo flask web user interface.
Jun 17 12:42:29 raspberrypi gunicorn[601]: [2021-06-17 12:42:29 +0200] [601] [INFO] Starting gunicorn 20.1.0
Jun 17 12:42:29 raspberrypi gunicorn[601]: [2021-06-17 12:42:29 +0200] [601] [INFO] Listening at: unix:/var/run/mycodoflask.sock (601)
Jun 17 12:42:29 raspberrypi gunicorn[601]: [2021-06-17 12:42:29 +0200] [601] [INFO] Using worker: gthread
Jun 17 12:42:29 raspberrypi gunicorn[601]: [2021-06-17 12:42:29 +0200] [645] [INFO] Booting worker with pid: 645
Jun 17 13:04:52 raspberrypi gunicorn[601]: [2021-06-17 13:04:52 +0200] [601] [INFO] Handling signal: term
Jun 17 13:04:52 raspberrypi gunicorn[601]: 2021-06-17 13:04:52,758 Exception raised in 'camera_record' when setting user grp: [Errno 2] No such file or                 directory: '/home/pi/Mycodo/cameras/e71f437d-eb9c-47a1-bc03-73e30eeb4e2b/still/Still-2-PiCamHQ-2021-06-17_12-56-51.jpg'
Jun 17 13:04:52 raspberrypi gunicorn[601]: Traceback (most recent call last):
Jun 17 13:04:52 raspberrypi gunicorn[601]:   File "/home/pi/Mycodo/mycodo/devices/camera.py", line 415, in camera_record
Jun 17 13:04:52 raspberrypi gunicorn[601]:     set_user_grp(path_file, 'mycodo', 'mycodo')
Jun 17 13:04:52 raspberrypi gunicorn[601]:   File "/home/pi/Mycodo/mycodo/utils/system_pi.py", line 677, in set_user_grp
Jun 17 13:04:52 raspberrypi gunicorn[601]:     os.chown(filepath, uid, gid)
Jun 17 13:04:52 raspberrypi gunicorn[601]: FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Mycodo/cameras/e71f437d-eb9c-47a1-bc03-73e3                0eeb4e2b/still/Still-2-PiCamHQ-2021-06-17_12-56-51.jpg'
Jun 17 13:04:54 raspberrypi gunicorn[601]: 2021-06-17 13:04:54,457 Exception raised in 'camera_record' when setting user grp: [Errno 2] No such file or                 directory: '/home/pi/Mycodo/cameras/e71f437d-eb9c-47a1-bc03-73e30eeb4e2b/still/Still-2-PiCamHQ-2021-06-17_12-56-51.jpg'
Jun 17 13:04:54 raspberrypi gunicorn[601]: Traceback (most recent call last):
Jun 17 13:04:54 raspberrypi gunicorn[601]:   File "/home/pi/Mycodo/mycodo/devices/camera.py", line 426, in camera_record
Jun 17 13:04:54 raspberrypi gunicorn[601]:     set_user_grp(path_file, 'mycodo', 'mycodo')
Jun 17 13:04:54 raspberrypi gunicorn[601]:   File "/home/pi/Mycodo/mycodo/utils/system_pi.py", line 677, in set_user_grp
Jun 17 13:04:54 raspberrypi gunicorn[601]:     os.chown(filepath, uid, gid)
Jun 17 13:04:54 raspberrypi gunicorn[601]: FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Mycodo/cameras/e71f437d-eb9c-47a1-bc03-73e3                0eeb4e2b/still/Still-2-PiCamHQ-2021-06-17_12-56-51.jpg'
Jun 17 13:04:54 raspberrypi gunicorn[601]: [2021-06-17 13:04:54 +0200] [645] [INFO] Worker exiting (pid: 645)
Jun 17 13:04:55 raspberrypi gunicorn[601]: [2021-06-17 13:04:55 +0200] [601] [INFO] Shutting down: Master
Jun 17 13:04:55 raspberrypi kill[1662]: Usage:
Jun 17 13:04:55 raspberrypi kill[1662]:  kill [options] <pid> [...]
Jun 17 13:04:55 raspberrypi kill[1662]: Options:
Jun 17 13:04:55 raspberrypi kill[1662]:  <pid> [...]            send signal to every <pid> listed
Jun 17 13:04:55 raspberrypi kill[1662]:  -<signal>, -s, --signal <signal>
Jun 17 13:04:55 raspberrypi kill[1662]:                         specify the <signal> to be sent
Jun 17 13:04:55 raspberrypi kill[1662]:  -l, --list=[<signal>]  list all signal names, or convert one to a name
Jun 17 13:04:55 raspberrypi kill[1662]:  -L, --table            list all signal names in a nice table
Jun 17 13:04:55 raspberrypi kill[1662]:  -h, --help     display this help and exit
Jun 17 13:04:55 raspberrypi kill[1662]:  -V, --version  output version information and exit
Jun 17 13:04:55 raspberrypi kill[1662]: For more details see kill(1).
Jun 17 13:04:55 raspberrypi systemd[1]: mycodoflask.service: Control process exited, code=exited, status=1/FAILURE
Jun 17 13:04:55 raspberrypi systemd[1]: mycodoflask.service: Failed with result 'exit-code'.

EDIT: I cant get it to take an image via putty either. So either the library is broken some how, or something messed up the actual camera

No idea what could be wrong, but if you can’t acquire an image from the terminal, it’s not an issue with Mycodo.