Jump to content

Emby Server 4.3.1.0 timeouts


Recommended Posts

Posted

Hello to all and a happy and prosperous 2020!!

 

I have been testing Emby during the past couple of weeks with various devices within my home network (Android, Kodi, Samsung & LG Smart TVs). Not all clients are user-friendly and not of them operate with equal reliability.

 

My server setup is a HP ML-310 server with Win10 installed and my library consists of thousands of movies and TV episodes. Also, most clients are connected via a wired 1 GBps connections to the server. Firewall has been adjusted accordingly and the antivirus software does not scan the Emby server folder.

 

I have been experiencing severe timeout errors to all clients. For example, within Kodi (EmbyCon client) many times the client times out when trying to list TV series or movies. The relevant notification pops up and - some times - the emby login window also pops up. Furthermore, the Emby interface lags in responsiveness in many cases even from Firefox desktop clients (browser), for example when selecting "Manage Emby Server".. the interface hangs and the loading image keeps on appearing.

 

I tried to pinpoint the cause of these timeouts within the Emby error log and I found the following errors. Some of them might be related to the timeout issue, some of them might be bugs of another nature:

2019-12-31 01:06:56.380 Info HttpServer: HTTP GET http://test:8096/emby/LiveTv/Recordings?UserId=174f75ba32be4fef95951873c7b6e4ca&IsInProgress=true&Fields=CanDelete%2CPrimaryImageAspectRatio&EnableTotalRecordCount=false&EnableImageTypes=Primary%2CThumb%2CBackdrop. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 01:06:56.601 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.3.1.0
	Command line: C:\Program Files\EmbyServer\system\EmbyServer.dll
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///C:/Program Files/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Program data path: C:\Program Files\EmbyServer\programdata
	Application directory: C:\Program Files\EmbyServer\system
	System.InvalidOperationException: System.InvalidOperationException: Operation is not valid due to the current state of the object.
	   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, CancellationToken cancellationToken)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
	   at MediaBrowser.Api.Images.ImageService.GetImage(ImageRequest request, Int64 itemId, BaseItem item, Boolean isHeadRequest)
	   at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	
2019-12-31 01:06:56.601 Info HttpServer: HTTP Response 500 to 192.168.0.10. Time: 382ms. http://test:8096/emby/Items/192430/Images/Primary?maxWidth=293&tag=fe5bd26c2c52f4391347e071f29c5b0d&quality=90

 

2019-12-31 12:33:01.770 Info HttpServer: HTTP GET http://test:8096/emby/Items/2491e2a2f60e16ba3c92e0d613b23416/Images/Primary?maxHeight=105&maxWidth=187&tag=b55c81f5bcdf7893756ee3fb0277a06e&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 12:33:01.860 Error ImageProcessor: Error encoding image
	*** Error Report ***
	Version: 4.3.1.0
	Command line: C:\Program Files\EmbyServer\system\EmbyServer.dll
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///C:/Program Files/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Program data path: C:\Program Files\EmbyServer\programdata
	Application directory: C:\Program Files\EmbyServer\system
	System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Emby\Metadata\metadata\library\24\2491e2a2f60e16ba3c92e0d613b23416\poster.png'.
	   at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
	   at Emby.Drawing.Skia.SkiaEncoder.GetSKFileStream(String path)
	   at Emby.Drawing.Skia.SkiaEncoder.EncodeImage(String inputPath, String outputPath, Boolean autoOrient, Nullable`1 orientation, Int32 quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
	Source: System.IO.FileSystem
	TargetSite: Void CopyFile(System.String, System.String, Boolean)
	
2019-12-31 12:33:01.861 Info HttpServer: HTTP Response 404 to 192.168.0.10. Time: 91ms. http://test:8096/emby/Items/2491e2a2f60e16ba3c92e0d613b23416/Images/Primary?maxHeight=105&maxWidth=187&tag=b55c81f5bcdf7893756ee3fb0277a06e&quality=90

 

2019-12-31 10:40:28.379 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 1
2019-12-31 10:40:28.381 Error App: Error in ffprobe
	*** Error Report ***
	Version: 4.3.1.0
	Command line: C:\Program Files\EmbyServer\system\EmbyServer.dll
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///C:/Program Files/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Program data path: C:\Program Files\EmbyServer\programdata
	Application directory: C:\Program Files\EmbyServer\system
	System.Exception: System.Exception: ffprobe failed for file:"C:\Top Gear\Season 15\Top Gear S15E03 720p.mkv" - streams and format are both null: 
{
	
	}
	
	
ffprobe version 4.3.0-emby_2019_11_25-g5abbb1430d+3686 Copyright (c) 2007-2019 the FFmpeg developers and softworkz for Emby LLC
	  built with gcc 9.2.0 (Rev2, Built by MSYS2 project)
	[matroska,webm @ 000001edb7930780] Format matroska,webm detected only with low score of 1, misdetection possible!
	[matroska,webm @ 000001edb7930780] 0x00 at pos 0 (0x0) invalid as first byte of an EBML number
	[matroska,webm @ 000001edb7930780] EBML header parsing failed
	file:C:\Top Gear\Season 15\Top Gear S15E03 720p.mkv: Invalid data found when processing input
	
	
	   at Emby.Server.MediaEncoding.Probing.MediaProbeManager.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Boolean forceEnableLogging, CancellationToken cancellationToken)
	   at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](T item, MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken)
	   at MediaBrowser.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, TItemType item, String logName, MetadataRefreshOptions options, RefreshResult refreshResult, CancellationToken cancellationToken)
	Source: Emby.Server.MediaEncoding
	TargetSite: Void MoveNext()

 

2019-12-31 10:34:52.526 Info HttpClient: GET https://private.omdbapi.com?apikey=fe53f97e&i=tt3325692/?ref_=fn_al_tt_1&season=2&detail=full
2019-12-31 10:34:52.554 Error App: Error in The Open Movie Database
	*** Error Report ***
	Version: 4.3.1.0
	Command line: C:\Program Files\EmbyServer\system\EmbyServer.dll
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///C:/Program Files/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Program data path: C:\Program Files\EmbyServer\programdata
	Application directory: C:\Program Files\EmbyServer\system
	System.IO.IOException: System.IO.IOException: The filename, directory name, or volume label syntax is incorrect. : 'D:\Emby\cache\omdb\tt3325692\?ref_=fn_al_tt_1_season_2.json'
	   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
	   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
	   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
	   at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, FileOpenOptions fileOpenOptions)
	   at Emby.Common.Implementations.Serialization.JsonSerializer.SerializeToFile(Object obj, String file)
	   at OMDb.Common.OmdbProvider.EnsureSeasonInfo(String seriesImdbId, Int32 seasonId, CancellationToken cancellationToken)
	   at OMDb.Common.OmdbProvider.GetSeasonRootObject(String imdbId, Int32 seasonId, CancellationToken cancellationToken)
	   at OMDb.Common.OmdbProvider.FetchEpisodeData[T](MetadataResult`1 itemResult, Int32 episodeNumber, Int32 seasonNumber, String episodeImdbId, String seriesImdbId, String language, String country, CancellationToken cancellationToken)
	   at OMDb.TV.OmdbEpisodeProvider.GetMetadata(EpisodeInfo info, CancellationToken cancellationToken)
	   at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)
	Source: System.Private.CoreLib
	TargetSite: Microsoft.Win32.SafeHandles.SafeFileHandle ValidateFileHandle(Microsoft.Win32.SafeHandles.SafeFileHandle)
	

After refreshing the TV series web interface, the following are recorded and the GUI displays only the loading image with no TV Series data:

2019-12-31 13:19:33.001 Debug SessionManager: Removing active session Firefox TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NDsgcnY6NzEuMCkgR2Vja28vMjAxMDAxMDEgRmlyZWZveC83MS4wfDE1NzY1MDgxMTA3MzU1
2019-12-31 13:19:33.001 Debug SessionManager: Disposing session controller WebSocketController
2019-12-31 13:19:33.001 Info HttpServer: HTTP GET http://test:8096/emby/Items/192509/Images/Primary?maxHeight=440&maxWidth=293&tag=3527452bbd55eaae64a8c2b56a20b2f3&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:33.021 Info HttpServer: HTTP GET http://test:8096/emby/Items/192432/Images/Backdrop?maxWidth=293&tag=9333530f4fb83a22a145364756026743&quality=70. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:33.022 Info HttpServer: HTTP GET http://test:8096/emby/Items/203363/Images/Primary?maxWidth=293&tag=72df7d6fc8b11ca798e84eda03323149&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:33.022 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 1ms. http://test:8096/emby/Items/192432/Images/Backdrop?maxWidth=293&tag=9333530f4fb83a22a145364756026743&quality=70
2019-12-31 13:19:34.001 Info HttpServer: HTTP GET http://test:8096/emby/Items/203334/Images/Primary?maxWidth=293&tag=913e0cb25e9b431e695a8d258c6a1020&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:35.002 Info HttpServer: HTTP GET http://test:8096/emby/Items/192429/Images/Primary?maxWidth=293&tag=f51bba3bd3dd8cbdd27e12564ef69b9b&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:36.001 Info HttpServer: HTTP GET http://test:8096/emby/Items/192441/Images/Primary?maxHeight=281&maxWidth=187&tag=ff35e6d0749d68a778d280266044fa5a&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:37.002 Info HttpServer: HTTP GET http://test:8096/emby/Items/151555/Images/Primary?maxHeight=281&maxWidth=187&tag=b2e2b0bc9c43a3a5f24647fc7f725bb2&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.002 Info HttpServer: HTTP GET http://test:8096/favicon.ico. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.004 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 2ms. http://test:8096/favicon.ico
2019-12-31 13:19:38.044 Info HttpServer: HTTP GET http://test:8096/web/bower_components/emby-webcomponents/themes/logowhite.png. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.044 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 1ms. http://test:8096/web/bower_components/emby-webcomponents/themes/logowhite.png
2019-12-31 13:19:38.098 Info HttpServer: HTTP GET http://test:8096/web/touchicon114.png. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.099 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 1ms. http://test:8096/web/touchicon114.png
2019-12-31 13:19:38.117 Info HttpServer: HTTP GET http://test:8096/web/favicon.ico. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.118 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 1ms. http://test:8096/web/favicon.ico
2019-12-31 13:19:38.270 Info HttpServer: HTTP GET http://test:8096/web/strings/en-US.json?v=1577791181005. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.271 Info HttpServer: HTTP GET http://test:8096/web/bower_components/emby-webcomponents/strings/en-US.json?v=1577791181005. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.271 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 1ms. http://test:8096/web/strings/en-US.json?v=1577791181005
2019-12-31 13:19:38.272 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 1ms. http://test:8096/web/bower_components/emby-webcomponents/strings/en-US.json?v=1577791181005
2019-12-31 13:19:38.901 Info HttpServer: HTTP GET http://test:8096/emby/system/info/public. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.902 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 1ms. http://test:8096/emby/system/info/public
2019-12-31 13:19:38.913 Info HttpServer: HTTP GET http://test:8096/emby/System/Info. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.915 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 2ms. http://test:8096/emby/System/Info
2019-12-31 13:19:38.930 Info HttpServer: HTTP GET http://test:8096/emby/DisplayPreferences/usersettings?userId=174f75ba32be4fef95951873c7b6e4ca&client=emby. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.931 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 1ms. http://test:8096/emby/DisplayPreferences/usersettings?userId=174f75ba32be4fef95951873c7b6e4ca&client=emby
2019-12-31 13:19:38.944 Info HttpServer: HTTP GET http://test:8096/emby/Users/174f75ba32be4fef95951873c7b6e4ca. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.945 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 1ms. http://test:8096/emby/Users/174f75ba32be4fef95951873c7b6e4ca
2019-12-31 13:19:38.971 Info HttpServer: WS http://test:8096/embywebsocket?api_key=5733bd1cc9054103b01d97c1e6602735&deviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NDsgcnY6NzEuMCkgR2Vja28vMjAxMDAxMDEgRmlyZWZveC83MS4wfDE1NzY1MDgxMTA3MzU1. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:38.971 Debug HttpServer: Web socket connection allowed
2019-12-31 13:19:38.972 Debug SessionManager: Creating new WebSocketController
2019-12-31 13:19:39.017 Info HttpServer: HTTP GET http://test:8096/emby/Users/174f75ba32be4fef95951873c7b6e4ca/Items/6c2a057148b4d7c20a207c789aba6d07. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:39.018 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 2ms. http://test:8096/emby/Users/174f75ba32be4fef95951873c7b6e4ca/Items/6c2a057148b4d7c20a207c789aba6d07
2019-12-31 13:19:39.030 Info HttpServer: HTTP GET http://test:8096/emby/Users/174f75ba32be4fef95951873c7b6e4ca/Views. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:40.003 Info HttpServer: HTTP GET http://test:8096/emby/Users/174f75ba32be4fef95951873c7b6e4ca/Items?SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series&Recursive=true&Fields=BasicSyncInfo%2CtestSourceCount%2CSortName%2CPrimaryImageAspectRatio&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CThumb&StartIndex=0&Limit=100&ParentId=6c2a057148b4d7c20a207c789aba6d07. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:41.001 Info HttpServer: HTTP POST http://test:8096/emby/Sessions/Capabilities/Full. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:41.012 Info HttpServer: HTTP Response 204 to 192.168.1.50. Time: 11ms. http://test:8096/emby/Sessions/Capabilities/Full
2019-12-31 13:19:42.242 Info HttpServer: HTTP GET http://test:8096/emby/System/Logs/embyserver.txt. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:43.492 Info HttpServer: HTTP GET http://test:8096/favicon.ico. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
2019-12-31 13:19:43.494 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 2ms. http://test:8096/favicon.ico
2019-12-31 13:19:44.595 Info HttpServer: HTTP Response 200 to 192.168.1.50. Time: 2353ms. http://test:8096/emby/System/Logs/embyserver.txt
2019-12-31 13:21:18.429 Info HttpServer: HTTP GET http://test:8096/emby/System/Logs/embyserver.txt. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...