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

Some notes #14

Open
caphector opened this issue Oct 22, 2024 · 1 comment
Open

Some notes #14

caphector opened this issue Oct 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@caphector
Copy link

If the -target-dir isn't set then it fails saying Failed to check disk space:.

At least in my attempt, when I migrated using operation copy it copies WAV files over but I don't see any files of those names in the clips folder. As an example, I see corvus_brachyrhynchos_73p_20241021T092751Z.wav in the DB but:

parrot@birdnet:~/birdnet-go $ find ./data/clips/ -name 'corvus_brachyrhynchos_73p_20241021T092751Z.wav'
parrot@birdnet:~/birdnet-go $

I wanted to merge two birdnet-pi DBs (accidentally created a second a while back; wanted to merge the two into one DB for birdnet-go). As per the other issue I tried to migrate one to a new DB (which worked fine) and then tried the merge function. The merge doesn't seem to have worked, unfortunately. I realize this isn't documented but I wanted to let you know.

parrot@birdnet:~/pi2go/birdnet-pi2go $ -source-db other-birds.db -target-db test.db -source-dir ./BirdSongs/ -target-dir ./clips -operation copy

2024/10/21 23:40:01 ~/pi2go/dbops.go:225 record not found
[0.188ms] [rows:0] SELECT * FROM `notes` ORDER BY date DESC, time DESC,`notes`.`id` LIMIT 1
Total records to process: 30363
Processing batch 1-1000 of 30363
[and so on]
parrot@birdnet:~/pi2go/birdnet-pi2go $ ~/pi2go/birdnet-pi2go -source-db birds.db -target-db test.db -source-dir ./BirdSongs/ -target-dir ./clips -operation merge
2024/10/21 23:41:15 Database merge completed successfully with batching.
parrot@birdnet:~/pi2go/birdnet-pi2go $ ~/pi2go/birdnet-pi2go -source-db birds.db -target-db birdnet.db -source-dir ./BirdSongs/ -target-dir ./clips -operation copy
2024/10/21 23:42:32 ~/pi2go/dbops.go:22 record not found
[0.188ms] [rows:0] SELECT * FROM `notes` ORDER BY date DESC, time DESC,`notes`.`id` LIMIT 1
Total records to process: 211268

The DB size doesn't change between the first and second operations.

@tphakala tphakala self-assigned this Oct 24, 2024
@tphakala tphakala added the bug Something isn't working label Oct 24, 2024
@tphakala
Copy link
Owner

Thanks for reporting, I will look into these soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants