webpostkastl 4 Posted July 29, 2019 Posted July 29, 2019 Hi, I'm fighting with a really strange permission issue since one of the last server updates in folder /volume3/AUDIO/ALEX there are almost 300 sub folders (each a different artist) again with multiple subfolders (1 per album) e.g. /volume3/AUDIO/ALEX /THE DARKNESS /[2012] Hot Cakes - 01. Every Inch of You.mp3 - 02. Nothin's Gonna Stop Us.mp3 - etc. although everything was working fine before I can now only see 7 albums in my "ALEX" library - for all other folders I'm getting a System.IO.IOException: Permission denied error (see log below) I already tried to completely remove emby server and installed it from scratch - even tried with a different user name and gave read/write permission for user embysvr to folder AUDIO but that didn't work out either any idea why the library scan is only working for 7 random folders but not for the rest? (I'm running emby server on a Synology Diskstation) e.g. 2019-07-29 19:26:17.696 Error LibraryMonitor: Error watching path: /volume3/AUDIO/ALEX *** Error Report *** Version: 4.2.0.40 Command line: /volume1/@appstore/EmbyServer/releases/4.2.0.40/EmbyServer.dll -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 -ignore_vaapi_enabled_flag Operating system: Unix 3.10.105.0 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///volume1/@appstore/EmbyServer/3rdparty/netcore/2.2.1/runtime/System.Private.CoreLib.dll Processor count: 4 Program data path: /var/packages/EmbyServer/target/var Application directory: /volume1/@appstore/EmbyServer/releases/4.2.0.40 System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/volume3/AUDIO/ALEX/THE DARKNESS' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(String directory, String expression, EnumerationOptions options) at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName) in /source/corefx/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.Linux.cs:line 438 at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName) in /source/corefx/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.Linux.cs:line 445 at System.IO.FileSystemWatcher.RunningInstance..ctor(FileSystemWatcher watcher, SafeFileHandle inotifyHandle, String directoryPath, Boolean includeSubdirectories, NotifyFilters notifyFilters, CancellationToken cancellationToken) in /source/corefx/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.Linux.cs:line 306 at System.IO.FileSystemWatcher.StartRaisingEvents() in /source/corefx/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.Linux.cs:line 77 at Emby.Server.Implementations.IO.LibraryMonitor.<>c__DisplayClass37_0.<StartWatchingPath>b__0() Source: System.IO.FileSystem TargetSite: IntPtr CreateDirectoryHandle(System.String, Boolean) InnerException: System.IO.IOException: Permission denied Source: TargetSite:
Luke 39620 Posted July 29, 2019 Posted July 29, 2019 Hi, the above error is for the real-time monitor. It won't affect the library scan, although if you have general permissions problems then that might. Have you checked the permissions of all sub-folders? @@FrostByte may have some tips on this.
Solution FrostByte 5216 Posted July 29, 2019 Solution Posted July 29, 2019 Did you follow the example for all the security steps in post after the reinstall? https://github.com/MediaBrowser/Wiki/wiki/Synology-:-Setting-Up-Your-Media-Library-Share 1
webpostkastl 4 Posted July 30, 2019 Author Posted July 30, 2019 thanks a lot Luke & FrostByte. It was indeed a permissions issue. Don't know why, but somehow my embysvr user lost its permissions for almost all of my subfolders although I didn't change anything. Maybe this was due to some emby server updates? Nevertheless, everything is working fine again. Thanks for your help!! 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now