Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.0b11 bugfixes #840

Merged
merged 27 commits into from
Nov 27, 2024
Merged

v3.0.0b11 bugfixes #840

merged 27 commits into from
Nov 27, 2024

Conversation

roflcoopter
Copy link
Owner

This PR 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.

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

  • 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

Copy link

netlify bot commented Nov 26, 2024

Deploy Preview for viseron canceled.

Name Link
🔨 Latest commit a971541
🔍 Latest deploy log https://app.netlify.com/sites/viseron/deploys/6746f5264bab8800080a631d

@roflcoopter roflcoopter merged commit 731d7e7 into dev Nov 27, 2024
18 checks passed
@roflcoopter roflcoopter deleted the feature/v3.0.0b11-fixes branch November 27, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant