This release includes a multitude of fixes and changes to improve the stability of Viseron.
It also adds multiple clean up jobs to keep the database and filesystem in sync in case of any crashes.
If you have tried the v3 beta before and experienced issues, i highly suggest trying this release out since it contains loads fo fixes-
Fixes
- Remove volumes from the Dockerfile to avoid issues with bind mounts
- Use the process watchdog for Darknet so that it is restarted in case of crashes
- Add extra logging to shutdown procedure to pinpoint threads and processes that is slowing it down
- Allow empty passwords for cameras
- Run every thread using RestartableThread so that it gets awaited during shutdown
- Fixes the
move_on_shutdown: true
config option. Previously Viseron did not wait for the callback to finish before exiting. - A condition was missing when searchng for files for
move_on_shutdown
causing files to be moved multiple times - Delete from FilesMeta table manually instead of using a trigger
- Properly throttle the function that checks if any files should be moved. This cause issues with attempting to move files multiple times
- Event clips are now generated in the servers timezone instead of UTC
Cleanup jobs
Multiple cleanup jobs now run regularly to make sure to keep the database and filesystem clutter free.
For instance if you delete files manually while Viseron is not started, the cleanup jobs will make sure that they are removed from the database.
They are intentionally throttled to run quite slow to not degrade performance of your host.
-
OrphanedFilesCleanup (Mondays, 3 AM)
- Removes files that are no longer associated with any recordings or events
-
OrphanedDatabaseFilesCleanup (Wednesdays, 3 AM)
- Cleans up database entries that point to non-existent files
-
OrphanedFilesMetaCleanup (Fridays, 3 AM)
- Removes metadata for files that no longer exist
-
EmptyFoldersCleanup (Daily at midnight)
- Removes empty folders to keep storage structure tidy
-
OrphanedThumbnailsCleanup (Daily at midnight)
- Removes thumbnail images that are no longer linked to any recordings
-
OrphanedClipsCleanup (Daily at midnight)
- Removes video clips that are no longer associated with any events
-
OrphanedRecordingsCleanup (Daily at midnight)
- Removes recordings that are no longer linked to any events
-
OrphanedPostProcessorResultsCleanup (Daily at midnight)
- Removes post-processing results that are no longer needed
-
OrphanedObjectsCleanup (Daily at midnight)
- Removes detected object data that is no longer associated with any events
-
OrphanedMotionCleanup (Daily at midnight)
- Removes motion detection data that is no longer linked to any events
-
OldEventsCleanup (Daily at midnight)
- Removes expired system events based on retention settings
For discussions, please use this discussion: #721
Full Changelog: v3.0.0b11...v3.0.0b12