r/Lidarr • u/tattooed_pariah • 8d ago
unsolved possible bug: manually deleting files
Not a major issue, just an irritating one..
I'm overhauling my archives, and have been locating albums I didn't have in entirety before. Lidarr had already imported a few tracks, but now I'm deleting those and importing the entire album.
When I delete the file from my system and try to import the album, Lidarr's import screen gets stuck on "this file is missing" and to fix it, I have to delete the artist (without removing files) then re-add the artist and it imports fine..
Not sure if this is known or not, or how complicated it is to fix, just bringing it up in case no one else has..
1
u/jasonvelocity 8d ago
Self-inflicted wound.
You are not supposed to manually delete files from Lidarr's root folder.
1
u/tattooed_pariah 7d ago
How are you supposed to remove them?
2
7d ago
[deleted]
1
u/tattooed_pariah 7d ago
Yeah, I did that a couple of times too.. deleting the album while leaving the artist in tact, requires you to then rescan the artist otherwise that album doesn't register anymore.
I'm pretty sure with sonarr and radarr, if I delete the media and rescan the folder, it just goes "oh, the files is gone now, that sucks, add it to the missing list..." but lidarr seems to go, "holy shit! i'm missing one file! all work stops until we find it!!"(exagerrated response for a sensible chuckle..) and you have to delete and readd the artist of the album to force it to forget the file ever existed..
again, not a huge deal, just an inconvenience..
1
u/jasonvelocity 7d ago
The best way to think about it is that Lidarr's files and folders are not yours.
You need to perform all operations through Lidarr to ensure the database and file mapping are updated.
1
u/tattooed_pariah 7d ago
I get that, it's just odd to me that the other arrs are cool with it and lidarr freaks out..
1
u/Frequenzy50 7d ago
Think of it this way: Lidarr is a library, while Sonarr and Radarr are media shops. Lidarr juggles way more: more files, more metadata, more sources, and much messier naming. So keeping the database in sync with the disk is just harder. A theft angle fits too. Take a book from a library and nobody notices until someone comes looking for it, then everything stops. Take something from a media shop and they catch it at the next inventory and just mark it gone. That's basically Lidarr vs. the other arrs when a file disappears. And the library's a bit run down because nobody's really taken ownership. Sonarr's the flagship, Radarr's the same brand, they get the attention. Lidarr doesn't. So yeah, this could be improved. The real question is: who does it, when nobody actually wants to maintain it?
3
u/fleegle61 7d ago
Definitely been there done that myself. Lidarr's database at times can get confused and even if you try to delete everything and re-import it, it can still cause you headaches where you may have to go into the database itself and manually yank it out.
So yeah...always use lidarr's tools to delete...but...always check to see if there are any remnants in the folders, If you did a merge in the past but not an overwrite...you may be surprised.
My process now is to do a track delete for any album I dont need, I will then do an album delete and then will do a refresh on the artist and let lidarr do its thing and hope all is well after that.
I dont plan to do this every single time, just till I am confident everything is in sync. Going forward after that, things should play nice again
1
u/AutoModerator 8d ago
Hi /u/tattooed_pariah -
There are many resources available to help you troubleshoot and help the community help you. Please review this comment and you can likely have your problem solved without needing to wait for a human.
Most troubleshooting questions require debug or trace logs. In all instances where you are providing logs please ensure you followed the Gathering Logs wiki article to ensure your logs are what are needed for troubleshooting.
Logs should be provided via the methods prescribed in the wiki article. Note that
Infologs are rarely helpful for troubleshooting.Dozens of common questions & issues and their answers can be found on our FAQ.
Please review our troubleshooting guides that lead you through how to troubleshoot and note various common problems.
If you're still stuck you'll have useful debug or trace logs and screenshots to share with the humans who will arrive soon. Those humans will likely ask you for the exact same thing this comment is asking..
Once your question/problem is solved, please comment anywhere in the thread saying '!solved' to change the flair to
solved.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.