viseron icon indicating copy to clipboard operation
viseron copied to clipboard

Data retention only 1 day

Open blschaue opened this issue 8 months ago • 6 comments

Hi, my events and timeline recordings are gone after 1 day. I have set max size of continuous recording to 100 GB. Also, the !secret function is not working for me after upgrading to new version of viseron, not a big deal. Below is example of my configuration for a camera. I appreciate any help you can give.

camera_2: name: Camera2 host: xx.xx.xx.xx port: 554 path: /Preview_01_main username: xxxx password: xxxx recorder: continuous_recording: true continuous: max_size: gb: 100 substream: port: 554 path: /Preview_01_sub

blschaue avatar Mar 30 '25 14:03 blschaue

What version did you update to? I am using 3.0.0 and !secret works for me.

Was the retention working for you on a prior version? What is the size of the actual space used? Make sure you are not using more than 100gb.

It will help people reviewing your configuration if you put ``` on lines before and after the configuration snippet. This will retain the yaml formatting which is important for making it easier to read.

You can use the Preview tab to confirm it works like you expect.

john- avatar Mar 30 '25 14:03 john-

Using version 3.0.0, but I recently upgraded to a new machine and was running older version on older machine. Events would retain for 7 days. I didn't have continuous timeline working on the old machine. 2 cameras are using around 60 GB total per day. Everything purges at midnight.

blschaue avatar Mar 30 '25 14:03 blschaue

Can you confirm on the new system how much space viseron is using for continuous recordings now?

john- avatar Mar 31 '25 21:03 john-

Hi, I've been troubleshooting with the Tiers configuration example in Viseron documentation site so I've been resetting recordings several times, which is erasing my current recordings, so I don't have an exact answer on how much space viserson is using. but I've never gone over 100 gb on a 500 gb drive. I have some new troubleshooting to share.

Here is my current issue, If I specify path as /mnt, this works, but I do not see any files being stored in /mnt. I have no idea where the data is going, but the events and timeline is recording. Don't know if this will save past today. If I create a folder tier1 in mnt, (/mnt/tier1), this does not work. Viseron says the folder is not created.

This works: '''ffmpeg: camera: camera_1: # This value has to be unique across all cameras name: Camera1 host: xx.xx.xx.xx port: 554 path: /Preview_01_main username: xxxx password: xxxx storage: recorder: tiers: - path: /mnt events: max_age: days: 7 continuous: max_age: days: 7'''

This does not work using /mnt/tier1, but I can navigate to the directory in terminal and see it in CASA files manager (how do I paste in screen shot here?) '''ffmpeg: camera: camera_1: # This value has to be unique across all cameras name: Camera1 host: xx.xx.xx.xx port: 554 path: /Preview_01_main username: xxxx password: xxxx storage: recorder: tiers: - path: /mnt/tier1 events: max_age: days: 7 continuous: max_age: days: 7'''

The error in Viseron says "/mnt/tier1/ folder does not exist. Please mount it to the container" No matter where I put the tier1 and tier2 folders, Viseron does not see the folders. I've tried DATA/AppData/Viseron/Tier1 and /home/tier1 as well as other places.

Thank you for being willing to help me troubleshoot this. I am learning new things in this process, so that's a win. Ben

blschaue avatar Apr 01 '25 00:04 blschaue

Looks like I'm doing something wrong with the '''. Before I hit the comment, the spacing was correct, then it all went to left alignment after hitting comment.

blschaue avatar Apr 01 '25 00:04 blschaue

In order to get the indendation to stick when you psot you need to use triple-backticks ```, not just regular quotes. You can copy the ones from this post

I guess you are using CasaOS? I am not familiar with it but make sure that you instruct it to mount your created folders inside the container. Just creating them on the host is not enough

roflcoopter avatar Apr 07 '25 18:04 roflcoopter