Jump to content

Auto Organize fails if it can't access all files/folders in a directory


Recommended Posts

Posted (edited)

The basics are this revoke or deny access to a directory under the " Watch folder " and the "task" fails and throws this error. Regardless if it does have access to anything else in the directory.

 

It should just acknowledge the directory or file is inaccessible and move on to the other files and directories in that directory.     

2018-09-22 08:30:56.478 Error TaskManager: Error
        *** Error Report ***
        Version: 3.5.3.0
        Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib                                                                                      /emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -r                                                                                      estartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
        Operating system: Unix 4.9.0.8
        64-Bit OS: True
        64-Bit Process: True
        User Interactive: True
        Processor count: 10
        Program data path: /var/lib/emby
        Application directory: /opt/emby-server/system
        System.UnauthorizedAccessException: Access to the path '/storage/downloads                                                                                      /castle (2009)' is denied. ---> System.IO.IOException: Permission denied
           --- End of inner exception stack trace ---
           at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(S                                                                                      tring path, Boolean ignoreNotFound)
           at System.IO.Enumeration.FileSystemEnumerator`1.DequeueNextDirectory()
           at System.IO.Enumeration.FileSystemEnumerator`1.DirectoryFinished()
           at System.IO.Enumeration.FileSystemEnumerator`1.FindNextEntry()
           at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()
           at System.Linq.Enumerable.SelectEnumerableIterator`2.ToList()
           at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
           at Emby.AutoOrganize.Core.TvFolderOrganizer.GetFilesToOrganize(String p                                                                                      ath)
           at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToArray()
           at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
           at System.Linq.OrderedEnumerable`1.GetEnumerator()+MoveNext()
           at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
           at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
           at Emby.AutoOrganize.Core.TvFolderOrganizer.Organize(TvFileOrganization                                                                                      Options options, CancellationToken cancellationToken, IProgress`1 progress)
           at Emby.AutoOrganize.Core.OrganizerScheduledTask.Execute(CancellationTo                                                                                      ken cancellationToken, IProgress`1 progress)
           at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.Execu                                                                                      teInternal(TaskOptions options)
        System.UnauthorizedAccessException
           at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(S                                                                                      tring path, Boolean ignoreNotFound)
           at System.IO.Enumeration.FileSystemEnumerator`1.DequeueNextDirectory()
           at System.IO.Enumeration.FileSystemEnumerator`1.DirectoryFinished()
           at System.IO.Enumeration.FileSystemEnumerator`1.FindNextEntry()
           at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext()
           at System.Linq.Enumerable.SelectEnumerableIterator`2.ToList()
           at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
           at Emby.AutoOrganize.Core.TvFolderOrganizer.GetFilesToOrganize(String p                                                                                      ath)
           at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToArray()
           at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
           at System.Linq.OrderedEnumerable`1.GetEnumerator()+MoveNext()
           at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
           at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
           at Emby.AutoOrganize.Core.TvFolderOrganizer.Organize(TvFileOrganization                                                                                      Options options, CancellationToken cancellationToken, IProgress`1 progress)
           at Emby.AutoOrganize.Core.OrganizerScheduledTask.Execute(CancellationTo                                                                                      ken cancellationToken, IProgress`1 progress)
           at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.Execu                                                                                      teInternal(TaskOptions options)
        InnerException: System.IO.IOException
        System.IO.IOException: Permission denied

2018-09-22 08:30:56.478 Info TaskManager: Organize new media files Failed after 0                                                                                       minute(s) and 0 seconds

PS. Also neither 3.5.3 or the 3.6 branch list or mention any changes to the DRM system. When will the "mentioned" changes to this be be available.   

 

 

 

Edited by NomadCF
Posted

 

 

It should just acknowledge the directory or file is inaccessible and move on to the other files and directories in that directory.     

That's exactly what it does. It logs it and movies on. Why do you feel that it does anything different?

Posted

That's exactly what it does. It logs it and movies on. Why do you feel that it does anything different?

 

Two reason. One the log I posted told us this was the case in the last line. And then there's the whole task just dies without organizing anything else. It doesn't move on to the next item or items. The directory had 20 other files to be organized. And it didn't organize or even "list" or log anything about any of them. But once I moved the directory it didn't have access to, to another location OUTSIDE the "watch" directory. The task started working again.

Posted

And still looking for any information about neither 3.5.3 or the 3.6 branch listing or mention any changes to the DRM system. When will the "mentioned" changes to this be be available ?

Posted

Two reason. One the log I posted told us this was the case in the last line. And then there's the whole task just dies without organizing anything else. It doesn't move on to the next item or items. The directory had 20 other files to be organized. And it didn't organize or even "list" or log anything about any of them. But once I moved the directory it didn't have access to, to another location OUTSIDE the "watch" directory. The task started working again.

 

Ok, while we're here I would just like to point out that AutoOrganize is a community addition that is maintained by volunteer community members such as @@PoppyPop, and contributions are welcome. The source code can be found here:

https://github.com/MediaBrowser/Emby.AutoOrganize

 

Thanks !

Posted

And still looking for any information about neither 3.5.3 or the 3.6 branch listing or mention any changes to the DRM system. When will the "mentioned" changes to this be be available ?

 

There won't actually be any changes to the server core itself so you won't see it in server change logs. The changes will be in each of the apps as well as the plugins that require Premiere. Several of the apps have already added improvements to their beta channels.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...