Chiyu 2 Posted May 5, 2023 Share Posted May 5, 2023 I use docker to run emby. os:debian11 emby version:4.7.11.0 log: 2023-05-05 16:35:10.710 Error LibraryMonitor: Error watching path: /movie_1080p *** Error Report *** Version: 4.7.11.0 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 4.19.0 (mockbuild@builder2.eng.sw.ru) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Thu Sep 23 18:26:47 MSK 2021 Framework: .NET 6.0.8 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 2 Data path: /config Application path: /system System.IO.PathTooLongException: System.IO.PathTooLongException: The path '/movie_1080p/驯龙高手2 (2014)' is too long, or a component of the specified path is too long. at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext() at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName) at System.IO.FileSystemWatcher.RunningInstance.AddDirectoryWatchUnlocked(WatchedDirectory parent, String directoryName) at System.IO.FileSystemWatcher.RunningInstance..ctor(FileSystemWatcher watcher, SafeFileHandle inotifyHandle, String directoryPath, Boolean includeSubdirectories, NotifyFilters notifyFilters, CancellationToken cancellationToken) at System.IO.FileSystemWatcher.StartRaisingEvents() at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed() at Emby.Server.Implementations.IO.LibraryMonitor.<>c__DisplayClass37_0.<StartWatchingPath>b__0() Source: System.Private.CoreLib TargetSite: Boolean MoveNext() 2023-05-05 16:35:25.611 Error BaseItem: Error validating children for movie_1080p 38900 /movie_1080p *** Error Report *** Version: 4.7.11.0 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 4.19.0 (mockbuild@builder2.eng.sw.ru) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Thu Sep 23 18:26:47 MSK 2021 Framework: .NET 6.0.8 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 2 Data path: /config Application path: /system System.IO.PathTooLongException: System.IO.PathTooLongException: The path '/movie_1080p/驯龙高手2 (2014)' is too long, or a component of the specified path is too long. at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator`2.ToArray() at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path, Boolean clearCache) at Emby.Server.Implementations.Library.Resolvers.Movies.MovieResolver.ResolveVideos[T](IEnumerable`1 fileSystemEntries, Folder parent, IDirectoryService directoryService, Boolean supportMultiEditions, LibraryOptions libraryOptions, Boolean parseName, Boolean enforceIgnore, Boolean checkSubFolders) at Emby.Server.Implementations.Library.Resolvers.Movies.MovieResolver.ResolveMultiple(Folder parent, List`1 files, LibraryOptions libraryOptions, IDirectoryService directoryService) at Emby.Server.Implementations.Library.LibraryManager.ResolvePaths(FileSystemMetadata[] files, IDirectoryService directoryService, Folder parent, LibraryOptions libraryOptions) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at MediaBrowser.Controller.Entities.Folder.ValidateSubFolders(BaseItem[] children, IDirectoryService directoryService, IProgress`1 progress, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Boolean MoveNext( Link to comment Share on other sites More sharing options...
Luke 37231 Posted May 5, 2023 Share Posted May 5, 2023 Hi, please attach the complete Emby server log. Thanks. Link to comment Share on other sites More sharing options...
Chiyu 2 Posted May 5, 2023 Author Share Posted May 5, 2023 2 minutes ago, Luke said: Hi, please attach the complete Emby server log. Thanks. embyserver.txt Link to comment Share on other sites More sharing options...
Luke 37231 Posted May 5, 2023 Share Posted May 5, 2023 Why exactly do you think you can't scan? Link to comment Share on other sites More sharing options...
Chiyu 2 Posted May 6, 2023 Author Share Posted May 6, 2023 7 hours ago, Luke said: Why exactly do you think you can't scan? I have to say that I don't know the reason, so I'm here looking for some possible solutions. Link to comment Share on other sites More sharing options...
Junglejim 354 Posted May 6, 2023 Share Posted May 6, 2023 (edited) 5 hours ago, Chiyu said: I have to say that I don't know the reason, so I'm here looking for some possible solutions. How did you set up the container? cli or compose? I'm on OMV which is debian based and use portainer via compose (stack) to setup emby plus other containers. Could be a typo in the path command to your media share? Need more info to be sure... Edit: Can you stream your media..? (when you say scan do you mean metadata)? Edited May 6, 2023 by Junglejim Link to comment Share on other sites More sharing options...
Chiyu 2 Posted May 6, 2023 Author Share Posted May 6, 2023 2 minutes ago, Junglejim said: How did you set up the container? cli or compose? I'm on OMV which is debian based and use portainer via compose (stack) to setup emby plus other containers. Could be a typo in the path command to your media share? Need more info to be sure... I use cli,here is my cli: first: docker run -d \ --name emby \ --network host \ -e UID=1000 \ -e GID=100 \ -e GIDLIST=100 \ -v /root/emby/config:/config \ -v /home/115:/home/115 \ -v /home/gd:/home/gd \ emby/embyserver:latest And then, I checked the log and discovered that the long path was the reason for the error. As a result, I rebuilt my Emby instance by: docker run -d \ --name emby \ --network host \ -e UID=1000 \ -e GID=100 \ -e GIDLIST=100 \ -v /root/emby/config:/config \ -v /home/115:/home/115 \ -v /home/gd:/home/gd \ -v /home/115/movie_1080p:/movie_1080p \ emby/embyserver:latest Link to comment Share on other sites More sharing options...
Junglejim 354 Posted May 6, 2023 Share Posted May 6, 2023 2 minutes ago, Chiyu said: I use cli,here is my cli: first: docker run -d \ --name emby \ --network host \ -e UID=1000 \ -e GID=100 \ -e GIDLIST=100 \ -v /root/emby/config:/config \ -v /home/115:/home/115 \ -v /home/gd:/home/gd \ emby/embyserver:latest And then, I checked the log and discovered that the long path was the reason for the error. As a result, I rebuilt my Emby instance by: docker run -d \ --name emby \ --network host \ -e UID=1000 \ -e GID=100 \ -e GIDLIST=100 \ -v /root/emby/config:/config \ -v /home/115:/home/115 \ -v /home/gd:/home/gd \ -v /home/115/movie_1080p:/movie_1080p \ emby/embyserver:latest Ok, did that fix your problem?... (movie_1080p) folder? Link to comment Share on other sites More sharing options...
Chiyu 2 Posted May 6, 2023 Author Share Posted May 6, 2023 1 minute ago, Junglejim said: Ok, did that fix your problem?... (movie_1080p) folder? No, it didn't. The same error occurred. Link to comment Share on other sites More sharing options...
Junglejim 354 Posted May 6, 2023 Share Posted May 6, 2023 (edited) 1 hour ago, Chiyu said: No, it didn't. The same error occurred. OK this is beyond me, I see so many errors is not funny.. mainly due to text like this 驯龙高手2 Are you a English speaking country? Or is your library just a total mess.. ? Can you at least play your media? Can you show me your share dirs (home/115.. whats home/gd?), maybe you still have a typo there? Make sure you map the shares to embys library's (home/115 to ? | home/gd to ? | movie_1080p to ?) That's another problem you have too actually set up the share properly.? So many things to consider.. Not enough info mate, I'm just guessing which is bad! Are you new to Linux? I hope not! As a side note, when you map volumes in docker you can give them a more descriptive name.. e.g. -v /home/115:/movies Edited May 6, 2023 by Junglejim Link to comment Share on other sites More sharing options...
Chiyu 2 Posted May 6, 2023 Author Share Posted May 6, 2023 1 hour ago, Junglejim said: OK this is beyond me, I see so many errors is not funny.. mainly due to text like this 驯龙高手2 Are you a English speaking country? Or is your library just a total mess.. ? Can you at least play your media? Can you show me your share dirs (home/115.. whats home/gd?), maybe you still have a typo there? Make sure you map the shares to embys library's (home/115 to ? | home/gd to ? | movie_1080p to ?) That's another problem you have too actually set up the share properly.? So many things to consider.. Not enough info mate, I'm just guessing which is bad! Are you new to Linux? I hope not! As a side note, when you map volumes in docker you can give them a more descriptive name.. e.g. -v /home/115:/movies First of all, I live in China, and I have other media files with Chinese names that can be scanned and played without any issues. Now, I can show you my dirs: /home/115: /home/115/movie_1080P: /home/gd: Media files with the same naming style as the problematic one that can be scanned and played normally: Library setup: Media Play: Same named style media which scan abnormally: Link to comment Share on other sites More sharing options...
Junglejim 354 Posted May 6, 2023 Share Posted May 6, 2023 (edited) As I thought your library naming is a total mess (1080p especially) I can't read Chinese.. 007.... ? I suggest you have a look at the guides for naming media! What you have will not work! Also from your cli docker input your not ref... gd/euandus ??? you have to ref the folder directly in docker or at least add the subfolder in emby when you add it to the library. Sorry mate I can't help anymore! Have fun. Edited May 6, 2023 by Junglejim Link to comment Share on other sites More sharing options...
Luke 37231 Posted May 6, 2023 Share Posted May 6, 2023 That's really odd. It looks like the error is coming from the .net runtime when trying to list files in a directory. Is there any chance you can try the 4.8 beta server and see how that compares? Thanks. Link to comment Share on other sites More sharing options...
Chiyu 2 Posted June 6, 2023 Author Share Posted June 6, 2023 (edited) On 5/7/2023 at 5:14 AM, Luke said: That's really odd. It looks like the error is coming from the .net runtime when trying to list files in a directory. Is there any chance you can try the 4.8 beta server and see how that compares? Thanks. I have already used the 4.8 beta server, can not scan either... Here is the log: embyserver.txt Edited June 6, 2023 by Chiyu Link to comment Share on other sites More sharing options...
Carlo 4331 Posted June 7, 2023 Share Posted June 7, 2023 It's what @Junglejimsaid. Paths are likely getting crossed because of the layout. Mapping is wrong so Emby can't access the files. Link to comment Share on other sites More sharing options...
Chiyu 2 Posted June 7, 2023 Author Share Posted June 7, 2023 10 minutes ago, Carlo said: It's what @Junglejimsaid. Paths are likely getting crossed because of the layout. Mapping is wrong so Emby can't access the files. Okay, So what should I do to solve this problem next? Link to comment Share on other sites More sharing options...
seanbuff 842 Posted June 7, 2023 Share Posted June 7, 2023 18 hours ago, Chiyu said: Okay, So what should I do to solve this problem next? I would remove this mapping from your Docker config On 06/05/2023 at 17:08, Chiyu said: docker run -d \ --name emby \ --network host \ -e UID=1000 \ -e GID=100 \ -e GIDLIST=100 \ -v /root/emby/config:/config \ -v /home/115:/home/115 \ -v /home/gd:/home/gd \ -v /home/115/movie_1080p:/movie_1080p \ emby/embyserver:latest ...since it's already covered by the /home/115 mapping Then I would remove the /movie_1080p library in Emby, and re-add it using the full path: /home/115/movie_1080p which is the same path format that the "working" Anime library is using. Let it rescan the library and try again. 1 Link to comment Share on other sites More sharing options...
Chiyu 2 Posted June 8, 2023 Author Share Posted June 8, 2023 9 hours ago, seanbuff said: I would remove this mapping from your Docker config ...since it's already covered by the /home/115 mapping Then I would remove the /movie_1080p library in Emby, and re-add it using the full path: /home/115/movie_1080p which is the same path format that the "working" Anime library is using. Let it rescan the library and try again. In fact, the lastest log file producted by new docker beta emby, which create by cli: docker run -d --name emby1 --network host -e UID=1000 -e GID=100 -e GIDLIST=100 -v /root/emby/config:/config -v /home/115:/home/115 -v /home/gd:/home/gd --restart always emby/embyserver:beta Link to comment Share on other sites More sharing options...
seanbuff 842 Posted June 8, 2023 Share Posted June 8, 2023 4 minutes ago, Chiyu said: In fact, the lastest log file producted by new docker beta emby, which create by cli: docker run -d --name emby1 --network host -e UID=1000 -e GID=100 -e GIDLIST=100 -v /root/emby/config:/config -v /home/115:/home/115 -v /home/gd:/home/gd --restart always emby/embyserver:beta Okay great - so did you try this? 9 hours ago, seanbuff said: Then I would remove the /movie_1080p library in Emby, and re-add it using the full path: /home/115/movie_1080p which is the same path format that the "working" Anime library is using. Let it rescan the library and try again. Link to comment Share on other sites More sharing options...
Q-Droid 670 Posted June 8, 2023 Share Posted June 8, 2023 Could it be a naming problem with the server somehow trying to parse "1080p"? Has renaming the folder to something else, like "movie_abcd" been tried? Link to comment Share on other sites More sharing options...
Solution Chiyu 2 Posted June 9, 2023 Author Solution Share Posted June 9, 2023 OK, I solve this problem by deleting this file 驯龙高手2 (2014) ! Ha, simple but uesful Thanks for everyone who helps me!!!! 1 Link to comment Share on other sites More sharing options...
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