elonden 0 Posted September 5, 2016 Posted September 5, 2016 Hello, Thought I ramp up a seemingly old article which I haven't been able to resolve not have found any clues how other fixed it. My home folder has a directory called "movies" (Without the quotes). The full path is /home/erwin/movies and is world read accessible. For some reason emby is not able to grasp this and simply refuses it to add and scan. Snippet of the log shows some weird stuff: 2016-09-05 16:54:59.1596 Error HttpServer: Error processing request for /emby/Environment/DirectoryContents?includeDirectories=true&path=%2Fhome%2Ferwin *** Error Report *** Version: 3.1.136.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.6.4.301 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.2.4 (tarball Thu Jun 23 18:49:17 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Win32 IO returned ERROR_NO_MORE_FILES. Path: /home/erwin ServiceStack.HttpError No Stack Trace Available InnerException: System.IO.IOException Win32 IO returned ERROR_NO_MORE_FILES. Path: /home/erwin at System.IO.Directory+<EnumerateKind>c__Iterator0.MoveNext () <0x40e2f5e0 + 0x0039b> in <filename unknown>:0 at System.IO.DirectoryInfo+<CreateEnumerateDirectoriesIterator>c__Iterator0.MoveNext () <0x4118c590 + 0x00273> in <filename unknown>:0 at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () <0x40cd70b0 + 0x001a6> in <filename unknown>:0 at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () <0x40e12420 + 0x00166> in <filename unknown>:0 at System.Linq.Enumerable+<ConcatIterator>c__IteratorE`1[TSource].MoveNext () <0x4118be80 + 0x001f1> in <filename unknown>:0 at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () <0x40cd70b0 + 0x001a6> in <filename unknown>:0 at System.Collections.Generic.List`1[T]..ctor (IEnumerable`1 collection) <0x40c36440 + 0x00286> in <filename unknown>:0 at System.Linq.Enumerable.ToList[TSource] (IEnumerable`1 source) <0x40c361b0 + 0x00063> in <filename unknown>:0 at MediaBrowser.Api.EnvironmentService.GetFileSystemEntries (MediaBrowser.Api.GetDirectoryContents request) <0x414e15a0 + 0x001ff> in <filename unknown>:0 at MediaBrowser.Api.EnvironmentService.Get (MediaBrowser.Api.GetDirectoryContents request) <0x414e1130 + 0x001c7> in <filename unknown>:0 at (wrapper dynamic-method) System.Object:lambda_method (System.Runtime.CompilerServices.Closure,object,object) at ServiceStack.Host.ServiceRunner`1[TRequest].Execute (IRequest request, System.Object instance, ServiceStack.Host.TRequest requestDto) <0x41130400 + 0x003cd> in <filename unknown>:0 2016-09-05 16:54:59.1611 Info HttpServer: HTTP Response 500 to 127.0.0.1. Time: 7ms. http://localhost:8096/emby/Environment/DirectoryContents?includeDirectories=true&path=/home/erwin2016-09-05 16:54:59.1611 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 7ms. http://localhost:8096/emby/Environment/ParentPath?path=/home/erwin The emby user is also member of my home group so it should be able to traverse that path easily. /etc/group: erwin:x:1000:emby folder permissions: drwxrw-r--. 85 erwin erwin 4096 Sep 5 16:29 movies This is the latest beta version installed from the Suse repo ========================= For Fedora 24 run the following as root: dnf config-manager --add-repo http://download.opensuse.org/repositories/home:emby/Fedora_24/home:emby.repodnf install emby-server-beta ======================== The server itself runs fine and I can access the webconsole without a problem. Anyone have any ideas? Thanks.
fc7 123 Posted September 5, 2016 Posted September 5, 2016 You have the wrong permissions setup: drwxrw-r--. 85 erwin erwin 4096 Sep 5 16:29 movies Read permissions are not enough in Linux to access a directory. You should add execute permissions too. This command should do the trick for you $ chown 755 /home/erwin/movies Cheers.
elonden 0 Posted September 5, 2016 Author Posted September 5, 2016 Hmm no juice: 2016-09-05 18:57:35.6001 Error HttpServer: Error processing request for /emby/Library/VirtualFolders?collectionType=movies&refreshLibrary=true&name=Movies *** Error Report *** Version: 3.1.136.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.6.4.301 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.2.4 (tarball Thu Jun 23 18:49:17 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe The specified path does not exist: /home/erwin/movies/. ServiceStack.HttpError No Stack Trace Available InnerException: System.ArgumentException The specified path does not exist: /home/erwin/movies/. at MediaBrowser.Server.Implementations.Library.LibraryManager.AddVirtualFolder (System.String name, System.String collectionType, System.String[] mediaPaths, MediaBrowser.Model.Configuration.LibraryOptions options, Boolean refreshLibrary) <0x414ed880 + 0x00507> in <filename unknown>:0 at MediaBrowser.Api.Library.LibraryStructureService.Post (MediaBrowser.Api.Library.AddVirtualFolder request) <0x414ed7d0 + 0x00083> in <filename unknown>:0 at (wrapper dynamic-method) System.Object:lambda_method (System.Runtime.CompilerServices.Closure,object,object) at ServiceStack.Host.ServiceExec`1+<>c__DisplayClass3_0[TService].<CreateExecFn>b__0 (System.Object service, System.Object request) <0x4146f9c0 + 0x0002d> in <filename unknown>:0 at ServiceStack.Host.ServiceRunner`1[TRequest].Execute (IRequest request, System.Object instance, ServiceStack.Host.TRequest requestDto) <0x41130400 + 0x003cd> in <filename unknown>:0 But it does exist: [1859][erwin@monster:~/movies]$ pwd/home/erwin/movies With 755 permissions down the three: drwxr-xr-x. 85 erwin erwin 4096 Sep 5 18:05 movies
fc7 123 Posted September 5, 2016 Posted September 5, 2016 Weird. Is movies a mount of a different volume (external usb drive for example)? Sent from my iPad using Tapatalk
elonden 0 Posted September 6, 2016 Author Posted September 6, 2016 No, is just a simple folder in my home directory. The logs do show a "." after the folder name which emby tries to access: The specified path does not exist: /home/erwin/Music. It does this the same with any folder I try to add irrespective of location in my home folder.
Solution elonden 0 Posted September 6, 2016 Author Solution Posted September 6, 2016 Figured it out. This volume had extended attributes and ACL's active. Given it was a subfolder in my homefolder there was a restrictive mask active. By adjusting the acl and adding the emby user to the folder it was sorted. Will change that btw due to security concerns.
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