kalon33 0 Posted August 9, 2019 Posted August 9, 2019 Trying to use my library, I got permission problems: 2019-08-09 20:36:29.255 Error App: Error validating images for /var/lib/emby/root/default/Musique *** Error Report *** Version: 4.2.1.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 4.15.0.55 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll Processor count: 4 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/srv/media/truc.mp3' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.FileStatus.EnsureStatInitialized(ReadOnlySpan`1 path, Boolean continueOnError) at System.IO.FileSystemInfo.Init(FileStatus& fileStatus) at System.IO.FileSystemInfo.Create(String fullPath, String fileName, FileStatus& fileStatus) at System.IO.Enumeration.FileSystemEntry.ToFileSystemInfo() at System.IO.Enumeration.FileSystemEnumerableFactory.<>c.<FileInfos>b__6_0(FileSystemEntry& entry) at System.IO.Enumeration.FileSystemEnumerable`1.DelegateEnumerator.TransformEntry(FileSystemEntry& entry) at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext() at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items) at System.Collections.Generic.SparseArrayBuilder`1.AddRange(IEnumerable`1 items) at System.Collections.Generic.SparseArrayBuilder`1.ReserveOrAdd(IEnumerable`1 items) at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToArray() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.OrderedEnumerable`1.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetImages(BaseItem item, IEnumerable`1 paths, Boolean arePathsInMediaFolders, IDirectoryService directoryService) at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at MediaBrowser.Providers.Manager.ItemImageProvider.ValidateImages(BaseItem item, IEnumerable`1 providers, IDirectoryService directoryService) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) Source: System.IO.FileSystem TargetSite: Void EnsureStatInitialized(System.ReadOnlySpan`1[System.Char], Boolean) InnerException: System.IO.IOException: Permission denied Source: TargetSite: But when I look at permissions, I applied the same thing everywhere, giving emby user full access on files and folders recursively: root@panoramix:/home/nicolas# ls -lha /srv/ total 32K drwxr-xr-x+ 1 emby emby 76 juil. 12 22:54 . drwxr-xr-x 1 root root 234 juil. 23 06:00 .. drw-rw---- 1 emby emby 64K juil. 27 12:30 media drw-rw---- 1 emby emby 0 juil. 12 22:54 photos drw-rw---- 1 emby emby 0 juil. 12 22:53 recordings drw-rw---- 1 emby emby 32 juil. 13 00:52 transcoding drw-rw---- 1 emby emby 31K août 9 19:54 videos How can I fix that boring problem? I had a look at other posts but couldn't found a working solution. Thanks for your help.
mastrmind11 722 Posted August 9, 2019 Posted August 9, 2019 (edited) Trying to use my library, I got permission problems: 2019-08-09 20:36:29.255 Error App: Error validating images for /var/lib/emby/root/default/Musique *** Error Report *** Version: 4.2.1.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 4.15.0.55 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll Processor count: 4 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/srv/media/truc.mp3' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.FileStatus.EnsureStatInitialized(ReadOnlySpan`1 path, Boolean continueOnError) at System.IO.FileSystemInfo.Init(FileStatus& fileStatus) at System.IO.FileSystemInfo.Create(String fullPath, String fileName, FileStatus& fileStatus) at System.IO.Enumeration.FileSystemEntry.ToFileSystemInfo() at System.IO.Enumeration.FileSystemEnumerableFactory.<>c.<FileInfos>b__6_0(FileSystemEntry& entry) at System.IO.Enumeration.FileSystemEnumerable`1.DelegateEnumerator.TransformEntry(FileSystemEntry& entry) at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext() at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items) at System.Collections.Generic.SparseArrayBuilder`1.AddRange(IEnumerable`1 items) at System.Collections.Generic.SparseArrayBuilder`1.ReserveOrAdd(IEnumerable`1 items) at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToArray() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.OrderedEnumerable`1.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetImages(BaseItem item, IEnumerable`1 paths, Boolean arePathsInMediaFolders, IDirectoryService directoryService) at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at MediaBrowser.Providers.Manager.ItemImageProvider.ValidateImages(BaseItem item, IEnumerable`1 providers, IDirectoryService directoryService) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) Source: System.IO.FileSystem TargetSite: Void EnsureStatInitialized(System.ReadOnlySpan`1[System.Char], Boolean) InnerException: System.IO.IOException: Permission denied Source: TargetSite: But when I look at permissions, I applied the same thing everywhere, giving emby user full access on files and folders recursively: root@panoramix:/home/nicolas# ls -lha /srv/ total 32K drwxr-xr-x+ 1 emby emby 76 juil. 12 22:54 . drwxr-xr-x 1 root root 234 juil. 23 06:00 .. drw-rw---- 1 emby emby 64K juil. 27 12:30 media drw-rw---- 1 emby emby 0 juil. 12 22:54 photos drw-rw---- 1 emby emby 0 juil. 12 22:53 recordings drw-rw---- 1 emby emby 32 juil. 13 00:52 transcoding drw-rw---- 1 emby emby 31K août 9 19:54 videos How can I fix that boring problem? I had a look at other posts but couldn't found a working solution. Thanks for your help. did you apply the chown recursively? if not, it's entirely possible the file listed in the error log still has the bad permissions. Folder permission changes don't automatically apply to its children. Edited August 9, 2019 by mastrmind11
kalon33 0 Posted August 9, 2019 Author Posted August 9, 2019 (edited) did you apply the chmod recursively? if not, it's entirely possible the file listed in the error log still has the bad permissions. Folder permission changes don't automatically apply to its children. yep, I did a chown -R emby. /srv I there anything else to do? I can't access to any of my data anymore in my library... Edited August 9, 2019 by kalon33
mastrmind11 722 Posted August 9, 2019 Posted August 9, 2019 yep, I did a chown -R emby. /srv I there anything else to do? I can't access to any of my data anymore in my library... well, what are the permissions of the file emby doesn't like?
kalon33 0 Posted August 9, 2019 Author Posted August 9, 2019 well, what are the permissions of the file emby doesn't like? Ok, a chmod -R 770 /srv finally seems to did the trick, even it's something emby could have done as the files owner.
mastrmind11 722 Posted August 9, 2019 Posted August 9, 2019 Ok, a chmod -R 770 /srv finally seems to did the trick, even it's something emby could have done as the files owner. Emby wouldn't be able to chown files it doesn't have access to in the first place. Glad you got it sorted out.
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