Tracks still exist in database that are not linked to a library anymore
Steps to reproduce
I am not sure, but this was my general workflow:
- use in-place method to import large number of files
- remove/add users
- tag music with MusicBainzPicard
- create new library, remove old library
- import everything again into new library
Afterwards, use prune_library
and check_inplace_files
to clean up.
What happens?
I do find the new files, but all old files still show up in search (first, new ones afterwards).
If I click on those entries, I see under "Related Libraries" of the song:
No matching library.
What is expected?
Files not associated/found in any library anymore should not show up in search.
Context
- Docker Multi-Container Setup
Funkwhale version(s) affected: 1.0.1
I did run these two commands, as recommended in the docs:
docker-compose run --rm api python manage.py prune_library --tracks --albums --artists --no-dry-run
Would prune 0/16057 tracks
Would prune 0/1989 albums
Would prune 0/2198 artists
check in-place items:
docker-compose run --rm api python manage.py check_inplace_files --no-dry-run
[============================================================] 17243/17243 ...
All in-place imports have a matching on-disk file
My last resort to solve this at the moment is deleting all users/libraries and starting the docker funkwhale instance from scratch.