Clean libary issue

Hi,

I troubleshoot another thing when I found some errors in the debug log. It seems that Clean Library fails to remove the path to some old and long gone folders. I have run Clean Library many times after the folders have been removed.

https://paste.osmc.tv/utakehihug

2022-09-04 19:54:08.168 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/3%/Season 03/
2022-09-04 19:54:08.169 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/3%/Season 04/
2022-09-04 19:54:08.169 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Abandoned Engineering/Season 02/
2022-09-04 19:54:08.170 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Abandoned Engineering/Season 03/
2022-09-04 19:54:08.178 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Abandoned Engineering/Season 04/
2022-09-04 19:54:08.179 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Abandoned Engineering/Season 05/
2022-09-04 19:54:08.179 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Abandoned Engineering/Season 06/
2022-09-04 19:54:08.190 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Agatha Christie's Poirot/Season 03/
2022-09-04 19:54:08.243 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/American Dad/Season 00/
2022-09-04 19:54:08.244 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/American Dad/Season 18/
2022-09-04 19:54:08.244 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/American Dad/Season 19/
2022-09-04 19:54:08.254 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Archer/Season 12/
2022-09-04 19:54:08.255 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Beyond Oak Island/Season 01/
2022-09-04 19:54:08.255 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Bobs Burgers/Season 11/
2022-09-04 19:54:08.261 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Bobs Burgers/Season 12/
2022-09-04 19:54:08.262 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Bosch/Season 01/
2022-09-04 19:54:08.267 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Castlevania/Season 01/
2022-09-04 19:54:08.268 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Castlevania/Season 02/
2022-09-04 19:54:08.268 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Castlevania/Season 03/
2022-09-04 19:54:08.285 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Clark/Season 01/
2022-09-04 19:54:08.286 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Curse of Akakor/Season 01/
2022-09-04 19:54:08.286 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Curse of the Bermuda Triangle/Season 01/
2022-09-04 19:54:08.293 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Diggers/Season 04/
2022-09-04 19:54:08.312 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Disenchantment/Season 02/
2022-09-04 19:54:08.352 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/F is for Family/Season 05/
2022-09-04 19:54:08.359 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Family Guy/Season 19/
2022-09-04 19:54:08.360 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Family Guy/Season 20/
2022-09-04 19:54:08.360 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Final Space/Season 03/
2022-09-04 19:54:08.361 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Finding Escobar's Millions/Season 01/
2022-09-04 19:54:08.438 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Generation Kill/Season 01/
2022-09-04 19:54:08.445 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/History's Greatest Mysteries/Season 01/
2022-09-04 19:54:08.445 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/History's Greatest Mysteries/Season 02/
2022-09-04 19:54:08.449 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Homeland/Season 08/
2022-09-04 19:54:08.622 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Its Always Sunny in Philadelphia/Season 15/
2022-09-04 19:54:08.623 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/JFK Declassified Tracking Oswald/Season 01/
2022-09-04 19:54:08.629 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Jackass/Season 02/
2022-09-04 19:54:08.630 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Jackass/Season 03/
2022-09-04 19:54:08.635 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Love, Death & Robots/Season 02/
2022-09-04 19:54:08.650 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Mud Men/Season 01/
2022-09-04 19:54:08.767 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Mysteries of the Abandoned/Season 05/
2022-09-04 19:54:08.768 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Mysteries of the Abandoned/Season 06/
2022-09-04 19:54:08.768 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Mysteries of the Abandoned/Season 07/
2022-09-04 19:54:08.786 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Mystery at Blind Frog Ranch/Season 02/
2022-09-04 19:54:08.823 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Partisan/Season 01/
2022-09-04 19:54:08.849 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Raised by Wolves (2020)/Season 02/
2022-09-04 19:54:08.856 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Rick and Morty/Season 05/
2022-09-04 19:54:08.857 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/River Hunters/Season 01/
2022-09-04 19:54:08.863 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Secrets of the Third Reich/Season 01/
2022-09-04 19:54:08.880 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Snabba Cash/Season 01/
2022-09-04 19:54:08.889 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Alaska Triangle/Season 01/
2022-09-04 19:54:08.896 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Alaska Triangle/Season 02/
2022-09-04 19:54:08.909 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Curse of Oak Island/Season 04/
2022-09-04 19:54:08.918 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Expanse/Season 06/
2022-09-04 19:54:08.924 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Hunt for the Zodiac Killer/Season 01/
2022-09-04 19:54:08.925 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Legend of Vox Machina/Season 01/
2022-09-04 19:54:08.966 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Pacific In The Wake of Captain Cook/Season 01/
2022-09-04 19:54:08.970 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Secret of Skinwalker Ranch/Season 02/
2022-09-04 19:54:08.971 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Secret of Skinwalker Ranch/Season 03/
2022-09-04 19:54:08.972 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The Stand (1994)/Season 01/
2022-09-04 19:54:08.976 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The X-Files/Season 04/
2022-09-04 19:54:08.982 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The X-Files/Season 05/
2022-09-04 19:54:08.983 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/The X-Files/Season 10/
2022-09-04 19:54:09.130 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Who Is America/Season 01/
2022-09-04 19:54:09.130 T:2746    ERROR <general>: GetDirectory - Error getting /mnt/Serier/Wild Wild Country/Season 01/

This is expected Kodi behavior. The clean library function of Kodi has only ever removed items from the library whose source file no longer is accessible. It does not remove source paths which is what you are seeing in the logs. As you can see from the time stamps this isn’t causing any significate delay in the library update process and can be safely ignored. There is an add-on that I don’t remember the name off off-hand that might be able to clean these up but with the limited testing I did this was a bit hit and miss. You can manually edit the database but this isn’t something that anyone would likely want to provide instructions on how to accomplish. There is also the texture cache maintenance utility which I believe also has the ability to manually remove these types of source paths but this would be a bit on the advanced side as it is all command line with a bit of a learning curve.

2 Likes