Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/volume2/download/@eaDir/[email protected] #28

Open
ssbarnea opened this issue Mar 24, 2019 · 0 comments

Comments

@ssbarnea
Copy link

Apparently AutoOrganize plugin does not work at all on Synology because it tries to access to system protected files.

The application should never look inside @eaDir folders which are used the by the operating system to store extra data.

I mention that the embysrv user already have RW access to these mounts.

	Command line: /var/packages/EmbyServer/target/server/EmbyServer.exe -package synology -programdata /var/packages/EmbyServer/target/var -ffmpeg /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/ffmpeg/bin/ffprobe -ffdetect /var/packages/EmbyServer/target/ffmpeg/bin/ffdetect -restartexitcode 121
	Operating system: Unix 3.10.105.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.18.0.240 (tarball Thu Jan 17 22:30:05 UTC 2019)
	Processor count: 4
	Program data path: /var/packages/EmbyServer/target/var
	Application directory: /volume1/@appstore/EmbyServer/releases/4.0.3.0
	System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/volume2/download/@eaDir/[email protected]' is denied.
	  at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x00129] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.IO.FileSystemEnumerableIterator`1[TSource].HandleError (System.Int32 hr, System.String path) [0x00006] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.IO.FileSystemEnumerableIterator`1[TSource].AddSearchableDirsToStack (System.IO.Directory+SearchData localSearchData) [0x00053] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.IO.FileSystemEnumerableIterator`1[TSource].MoveNext () [0x0008e] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.IO.DirectoryInfo+<CreateEnumerateFilesIterator>d__43.MoveNext () [0x0007a] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].ToList () [0x0002d] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at Emby.AutoOrganize.Core.TvFolderOrganizer.GetFilesToOrganize (System.String path) [0x0000d] in <ee96e3093afc4d1b9e34cdf35e55094e>:0 
	  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].ToArray () [0x00028] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x0000a] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.OrderedEnumerable`1+<GetEnumerator>d__3[TElement].MoveNext () [0x0001e] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToList () [0x00030] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at Emby.AutoOrganize.Core.TvFolderOrganizer.Organize (Emby.AutoOrganize.Model.TvFileOrganizationOptions options, System.Threading.CancellationToken cancellationToken, System.IProgress`1[T] progress) [0x000f6] in <ee96e3093afc4d1b9e34cdf35e55094e>:0 
	  at Emby.AutoOrganize.Core.OrganizerScheduledTask.Execute (System.Threading.CancellationToken cancellationToken, System.IProgress`1[T] progress) [0x00109] in <ee96e3093afc4d1b9e34cdf35e55094e>:0 
	  at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal (MediaBrowser.Model.Tasks.TaskOptions options) [0x00156] in <3d2456253cbd47f6ad5ba9987b1fa974>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	  at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x00129] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.IO.FileSystemEnumerableIterator`1[TSource].HandleError (System.Int32 hr, System.String path) [0x00006] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.IO.FileSystemEnumerableIterator`1[TSource].AddSearchableDirsToStack (System.IO.Directory+SearchData localSearchData) [0x00053] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.IO.FileSystemEnumerableIterator`1[TSource].MoveNext () [0x0008e] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.IO.DirectoryInfo+<CreateEnumerateFilesIterator>d__43.MoveNext () [0x0007a] in <06b73b509b314fc8a9db8d5f73b3c223>:0 
	  at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].ToList () [0x0002d] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at Emby.AutoOrganize.Core.TvFolderOrganizer.GetFilesToOrganize (System.String path) [0x0000d] in <ee96e3093afc4d1b9e34cdf35e55094e>:0 
	  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].ToArray () [0x00028] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x0000a] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.OrderedEnumerable`1+<GetEnumerator>d__3[TElement].MoveNext () [0x0001e] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToList () [0x00030] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <badee9b5b53f4a3c92ce72164f2a8645>:0 
	  at Emby.AutoOrganize.Core.TvFolderOrganizer.Organize (Emby.AutoOrganize.Model.TvFileOrganizationOptions options, System.Threading.CancellationToken cancellationToken, System.IProgress`1[T] progress) [0x000f6] in <ee96e3093afc4d1b9e34cdf35e55094e>:0 
	  at Emby.AutoOrganize.Core.OrganizerScheduledTask.Execute (System.Threading.CancellationToken cancellationToken, System.IProgress`1[T] progress) [0x00109] in <ee96e3093afc4d1b9e34cdf35e55094e>:0 
	  at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal (MediaBrowser.Model.Tasks.TaskOptions options) [0x00156] in <3d2456253cbd47f6ad5ba9987b1fa974>:0 
	
2019-03-24 16:13:51.681 Info TaskManager: Organize new media files Failed after 0 minute(s) and 0 seconds
2019-03-24 16:13:51.683 Info TaskManager: ExecuteQueuedTasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant