alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.35k stars 193 forks source link

🐛 Birdnet-Go #1424

Closed matthew73210 closed 1 week ago

matthew73210 commented 2 weeks ago

Description

Data not being purged. Looks like the config yaml is missing something. Copied the one from the birdnet-go github but the issues still happens. My folder is now 31 gb, and despite the data folder being mounted to addons, it doesn't appear there

Screenshot 2024-06-07 at 5 09 58 PM

Reproduction steps

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Addon Logs

2024/06/07 16:59:36 Uploaded clips/2024/06/turdus_merula_98p_20240607T165929Z.wav to Birdweather
2024/06/07 16:59:37 New detection: Eurasian Blackbird with confidence: 0.992637
2024/06/07 16:59:43 Error retrieving clips for removal: invalid parameters: minHours and minClips must be greater than 0

Architecture

amd64

OS

HAos

alexbelgium commented 2 weeks ago

Hi, what have you used as folder for saving clips in the birdnet-go settings ?

You could try to change it to /data/clips for example

matthew73210 commented 2 weeks ago

It just goes to /clips. If i shell into the container, I can find all the files under /data/clips

Here’s the config part :

audio: source: "sysdefault" # audio source to use for analysis export: enabled: true # true to export audio clips containing indentified bird calls debug: true # true to enable audio export debug messages path: clips/ # path to audio clip export directory type: wav # only wav supported for now retention:
policy: usage # retention policy: none, age or usage maxage: 30d # age policy: maximum age of clips to keep before starting evictions maxusage: 80% # usage policy: percentage of disk usage to trigger eviction
minclips: 10 # minumum number of clips per species to keep before starting evictions

Cheers for the quick reply

On 7 Jun 2024, at 5:14 PM, Alexandre @.***> wrote:

Hi, what have you used as folder for saving clips in the birdnet-go settings ?

— Reply to this email directly, view it on GitHub https://github.com/alexbelgium/hassio-addons/issues/1424#issuecomment-2155044052, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUWXSHTEIGRETMEX5AFULDZGHE4TAVCNFSM6AAAAABI63DJO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGA2DIMBVGI. You are receiving this because you authored the thread.

alexbelgium commented 2 weeks ago

So the folder is correctly used I'm not sure what is the issue ?

if purge does not happen alas it would be an issue with the upstream container more than the addon...

and as everything is in go I can't do much compared to the BirdNET-pi addon …

matthew73210 commented 2 weeks ago

Maybe i’m just a tad confused. I thourght that the /data/clips was supposed to appear in /addons/data/ContainerXXX (or something of the sort) as it’s mounted to that dir according to portainer?

Yep re purge probs a confg issue upstream

On 7 Jun 2024, at 5:43 PM, Alexandre @.***> wrote:

So the folder is correctly used I'm not sure what is the issue ?

if purge does not happen alas it would be an issue with the upstream container more than the afin

— Reply to this email directly, view it on GitHub https://github.com/alexbelgium/hassio-addons/issues/1424#issuecomment-2155093564, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUWXSBRVOXAL2K652DB3B3ZGHIKHAVCNFSM6AAAAABI63DJO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGA4TGNJWGQ. You are receiving this because you authored the thread.

alexbelgium commented 2 weeks ago

Indeed /data should be mapped to /mnt/data/supervisor/addons/data/*_birdnet-go as you indicate from the screenshot! So /clips would be in that directory

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.