smokey7722 12 Posted June 6, 2016 Share Posted June 6, 2016 (edited) Many many months if not years ago at this point I had removed a Library including all of my Anime. However today while looking at the Emby logs for something else, I noticed that Emby is still scanning the folders when it performs a scan! So I went back into the Library configuration and I confirmed, there is no library for Anime and I don't have the Anime folder included in any other libraries. I can grab log snippets if needed but it really doesn't show anything but it scanning folders it should not... Short of deleting my entire Library.db file and having it rescan everything, which is a huge pain in the ass - is there any way to try to resolve this? Edited June 6, 2016 by smokey7722 Link to comment Share on other sites More sharing options...
Solution Luke 37348 Posted June 6, 2016 Solution Share Posted June 6, 2016 Let the clean database operation execute, it cleans this up. However - if this is really old content then it may have trouble deleting it because various internal conventions have changed over time. Therefore if the issue persists after that, then yes you'll probably need to rebuild the library database. 1 Link to comment Share on other sites More sharing options...
smokey7722 12 Posted June 6, 2016 Author Share Posted June 6, 2016 Let the clean database operation execute, it cleans this up. However - if this is really old content then it may have trouble deleting it because various internal conventions have changed over time. Therefore if the issue persists after that, then yes you'll probably need to rebuild the library database. I suspect this has been going on for quite a long time now (my scanning times have been in the range of 20-25 minutes all the time which is one reason I was monitoring logs to see if I can find out why). The Clean Database task runs as it should and I did manually run it earlier which didn't seem to resolve it as the scan right now is running through that old folder unfortunately. It has been YEARS since I have had to rebuild the library database - is it just renaming/deleting the library.db file and then letting it scan again? And does that remove the Library configuration in Emby as well as playstates of the content? Link to comment Share on other sites More sharing options...
Luke 37348 Posted June 6, 2016 Share Posted June 6, 2016 yes that's enough, and you'll be able to keep your playstate and configuration. Link to comment Share on other sites More sharing options...
smokey7722 12 Posted June 6, 2016 Author Share Posted June 6, 2016 yes that's enough, and you'll be able to keep your playstate and configuration. Ok, I will kick that off before I go to sleep then as I suspect the scan is going to take many many many hours (my library is sizable). Once the rescan is done I will check the logs and see how things look. Thanks Link to comment Share on other sites More sharing options...
smokey7722 12 Posted June 6, 2016 Author Share Posted June 6, 2016 Looks like it ran overnight and has definitely cleaned a ton up, the library.db file started at 470MB and the new one is only 250MB. There has to be more than just the removed Anime library thats been removed. Either way, the logs do look a lot cleaner now and I can start looking at other errors in the logs to clean it up more. New scans take about 12 minutes compared to the 20-25 minutes prior to the library rebuild. Link to comment Share on other sites More sharing options...
Luke 37348 Posted June 6, 2016 Share Posted June 6, 2016 Well done. Thanks for reporting back. Link to comment Share on other sites More sharing options...
smokey7722 12 Posted June 6, 2016 Author Share Posted June 6, 2016 (edited) Yup no problem. Its unfortunate that this happened and that we don't have logs or any data to go by to analyze and enhance the clean database functionality. I do have the original library.db and the new one if we did want to compare them and all. I'd be happy to help do so if you guys wanted to and if it would be useful. Edited June 6, 2016 by smokey7722 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now