Recently, I noticed whenever I try to open my Music library, I get the following error message:
The file "Application.musicdb" cannot be read because it does not appear to be a valid library file.
The app continues to work however but things are a bit slow. And I tried to look into the library file, by clicking on "show package contents" and I can see the mentioned file inside the library but the last modified date shows a couple of weeks back. And I can see more than ~400 temp files (
Temp File 1.tmp and so on) are created over the course of the past two weeks, the last one belonging to a few minutes ago. It seems that all the recent modifications are happening via these temp files and the original file, which the app complains about at the start, hasn't been updated.
What can I do to fix this? Is there a proper way to force it to recreate that file or something? I'm using the latest version of the OS and the Music app and I keep my music library on an external hard drive.