Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Register
  • Sign in
  • Shinobi Shinobi
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Shinobi SystemsShinobi Systems
  • ShinobiShinobi
  • Issues
  • #24
Closed
Open
Issue created Nov 04, 2018 by Jon@s0nic0nslaught

cron process deletes videos prematurely

Up to the latest commit (4304fa9a47dfee7d369ce3aacf4074aafe8e2e49) in master branch, the cron process run by Shinobi is automatically deleting videos after approximately one hour even if it retention time is set globally and per camera to be several days, and the max storage space is a very large number. I have deduced this by running Shinobi with the cron process stopped for about 18 hours and I now see a full list of videos recorded for each camera and the amount of disk spaced use continues to increase (as one would expect if you're recording video without deletion to disk).

My configuration is: Shinobi installed from this git repo on an lxc container (Ubuntu 17.10 for container and host OS) with about 3TB of external storage space located on a zfs pool. I ran the ubuntu.sh installer script after cloning the git repo and configured Shinobi to use sqlite as the database backend, as well as let it install node.js and the dependencies.

Here are a couple threads that report this issue on reddit:

  • https://old.reddit.com/r/ShinobiCCTV/comments/9tl4ga/recorded_videos_keep_disappearing/
  • https://www.reddit.com/r/ShinobiCCTV/comments/9fm6jd/shinobi_deletes_detection_videos_after_around_an/

It isn't ideal to have to run Shinobi with cron disabled because I believe this would mean old videos will never be automatically deleted. It will be up to a human to login and prune old videos which is a waste of time. If there is an auto delete process, it should work and it should work reliably. Obviously there is some aspect of the configuration that isn't being honored by the Shinobi cron process as far as the way old videos are deleted off the system.

Assignee
Assign to
Time tracking