ND 2.0.0.737 (Linux) won't recognize episodes in new series folders

I’ve added several new series to ND, all of them with preexisting directories already containing several episodes. ND failed to recognize any of the existing files.

When scanning a series, I get several identical error messages in the GUI:
backbone.js : 219
TypeError: obj is undefined

Shortly followed by several other errors:
backbone.marionette.js : 257
Error: Handler not found for ‘GetEpisodeFileById’

On the log, I have the following error:
Message

DiskScanService failed while processing [SeriesUpdatedEvent]: Access to the path “/mnt/storage/Media/TV/Dracula.(2013)” is denied.

Exception

System.UnauthorizedAccessException: Access to the path “/mnt/storage/Media/TV/Dracula.(2013)” is denied.
at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in :0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in :0
at System.IO.Directory.GetFilesRecurse (System.String path, System.String searchPattern, System.Collections.Generic.List`1 all) [0x00000] in :0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, SearchOption searchOption) [0x00000] in :0
at NzbDrone.Common.DiskProvider.GetFiles (System.String path, SearchOption searchOption) [0x00000] in :0
at NzbDrone.Core.MediaFiles.DiskScanService.GetVideoFiles (System.String path, Boolean allDirectories) [0x00000] in :0
at NzbDrone.Core.MediaFiles.DiskScanService.Scan (NzbDrone.Core.Tv.Series series) [0x00000] in :0
at NzbDrone.Core.MediaFiles.DiskScanService.Handle (NzbDrone.Core.Tv.Events.SeriesUpdatedEvent message) [0x00000] in :0
at NzbDrone.Core.Messaging.Events.EventAggregator.PublishEvent[SeriesUpdatedEvent] (NzbDrone.Core.Tv.Events.SeriesUpdatedEvent event) [0x00000] in :0

Could it be the parentheses in the path? But all of my series directories have a year in parentheses and only the last three are having this problem. All files and directories have the same owners and permissions, so if ND, running as a limited user, can read one, it should be able to read all.

Any ideas?

For the UI issue a reload should fix it, but might have to clear the cache.

For the scan failing, parentheses are fine, as you say it works for other series. Looks like a permissions issue, the error is saying its unable to get the files in that folder. Try reapplying the permissions on that folder, had a similar issue on Windows where the files didn’t inherit their permissions properly, reapplying the permissions fixed it.

I’ve reapplied the permissions for the directory, subdirectory and files - no change. I’ve set them to 777 and still “access to the path is denied.”

Are the failing series on another drive?
Anything different about them compared to the series that work?
Did you try restarting drone after resetting the permissions?
Can you try running drone as root, or a more privileged user to test it?

The error is coming from outside of drone’s code, from the mono framework, which would ask the system for the information. Unless its something behaving like a permissions problem, it has to be permissions, though I’m not sure what else it could be.

OK, I’ve made some headway. I’m using AUFS to combine several disks into one large filesystem and something went wrong there: while the virtual filesystem shows the corrected ownership and permission I’ve applied, the physical still shows the old, incorrect ones! How odd. Somehow, even though ND was scanning the virtual filesystem, it was getting the ownership and permissions from the physical ones. Then again, 777 should’ve handled that!

I’ve fixed the ownership and permissions on the physical mounts and now I’m no longer getting the “access denied” message. No, now I’m getting “Series folder doesn’t exist: /mnt/storage/Media/TV/Dracula.(2013)”! WTF?

Anyway, it’s clearly AUFS and not ND at fault here.

Thanks for the help.

Well at least you’re making headway. Hopefully its not too tricky to sort out!

Thanks for reporting back, good luck.