Deleted file still present?

Sonarr version (exact version): 2.0.0.5338
Mono version (if Sonarr is not running on Windows): 6.4.0.198
OS: DietPi
Debug logs:
Description of issue: Deleted file still present?

Hello,

I moved some files from the disk to another directory so sonarr can’t find the files any longer. But sonarr still shows the old path of the file and even deleting the file using the UI doesn’t seem to work, because nothing happends. Am I missing something?

This seems to be the related log entry:
19-12-14 22:34:03.9|Warn|MediaFileDeletionService|Series’ root folder (/mnt/dietpi_userdata/Media/Series) is empty.

Thank you

If it’s referencing the old path you need to update the series folder and tell Sonarr to rescan the series, either edit the series or use series editor to mass update.

Hello markus,

the root path for series hasn’t changed, I only deleted a specific series from this directory.

root folder is: /mnt/dietpi_userdata/Media/Series

In the root folder was a directory that has been created by sonarr. I just deleted the directory with the explorer, the root folder remains unchanged.

What do the debug logs show when you refresh the series?

Hello @markus101,
sorry for the delay. I had one episode of ‘The Mandalorian’ at this location:

/mnt/dietpi_userdata/Media/Series/The Mandalorian/Season 1/The.Mandalorian.S01E07.German.AC3D.DL.2160p.WEBRip.HDR.x265-iND.mkv

Then I moved the file to the final location on another drive and deleted the whole directory ‘The Mandalorian’ because it was the only file in there. After that I tried to update the whole series. This is the content of the log file:

19-12-21 19:22:47.7|Info|SceneMappingService|Updating Scene mappings
19-12-21 19:22:50.9|Info|RefreshSeriesService|Updating Info for The Mandalorian
19-12-21 19:22:51.2|Info|RefreshEpisodeService|Starting episode info refresh for: [361753][The Mandalorian]
19-12-21 19:22:51.3|Info|RefreshEpisodeService|Finished episode refresh for series: [361753][The Mandalorian].
19-12-21 19:22:51.3|Warn|DiskScanService|Series' root folder (/mnt/dietpi_userdata/Media/Series) is empty.
19-12-21 19:22:51.5|Info|MetadataService|Series folder does not exist, skipping metadata creation

There is no other directory in the series directory, but sonarr should update the info for this episode, because the file was deleted. Instead it shows me the path where the file was located before I deleted it.

When I try to delete remove the file by trying to delete it using the sonarr web interface the log shows this:

19-12-21 19:29:07.1|Warn|MediaFileDeletionService|Series' root folder (/mnt/dietpi_userdata/Media/Series) is empty.

So everything just fails, because the main directory is empty…

If the root folder is completely empty (has no folders) then Sonarr will treat it as being unmounted and not rescan or update files that were in it.

You either need to tell Sonarr the new root folder so it can scan the series folder or create an empty folder in the root folder to tell Sonarr it’s mounted and the file is really gone.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.