CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
178 stars 50 forks source link

DeleteOldLogFiles fails if log file has already been deleted #183

Closed markmac99 closed 1 year ago

markmac99 commented 1 year ago

Rick Hewett reports:

One of my cameras didn't capture anything last night(). Took a bit of digging, but it turned out that DeleteOldObservations.py crashed on line 367 where it tries to remove an old log file. There's no try/except around that action, and in this case the action failed, leaving the capture process hung. * This is a bit odd, as line 358 has already tested that the file exists, so either another process has purged it, or the file is readonly. We can put a try/except round it but this could leave unpurged log files. Need more info on the issue ideally.