Jump to content

Auto-Organise restarts Emby if it can't complete an action


PhelanPKell

Recommended Posts

PhelanPKell

Hey, so this doesn't seem to have any results when I Google it.

 

So what I've been experiencing for a week or two now, is that Auto-Organise has started rebooting Emby when it fails to complete a task for a file.

This task has been both for moves, and for deletes.

 

The problem is, this happens when I'll be in the middle of watching something, so it freezes and I'm stuck waiting 2-5 minutes to continue watching my show, only to have it happen at a random time in the future.

 

I'm not certain why it feels the need to restart for such a pointless task, but it's a REALLY big piss off.

 

Here's some info from the server log.

2016-12-30 14:30:16.2160 Error App: Failed to move file from /media/scratchdisk/complete/Van.Helsing.S01E02.720p.WEB-DL.DD5.1.H264-RARBG[rarbg]/Van.Helsing.S01E02.720p.WEB-DL.DD5.1.H264-RARBG.mkv to /tvshows/tvshows/Van Helsing/Season 01/Van Helsing - S01E02 - Seen You.mkv: Access to the path "/media/scratchdisk/complete/Van.Helsing.S01E02.720p.WEB-DL.DD5.1.H264-RARBG[rarbg]/Van.Helsing.S01E02.720p.WEB-DL.DD5.1.H264-RARBG.mkv" or "/tvshows/tvshows/Van Helsing/Season 01/Van Helsing - S01E02 - Seen You.mkv" is denied.
	*** Error Report ***
	Version: 3.0.7200.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.4.0.36
	Processor count: 8
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /var/lib/emby-server
	Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Tue Aug 30 15:48:05 UTC 2016)
	Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
	Access to the path "/media/scratchdisk/complete/Van.Helsing.S01E02.720p.WEB-DL.DD5.1.H264-RARBG[rarbg]/Van.Helsing.S01E02.720p.WEB-DL.DD5.1.H264-RARBG.mkv" or "/tvshows/tvshows/Van Helsing/Season 01/Van Helsing - S01E02 - Seen You.mkv" is denied.
	System.UnauthorizedAccessException
	  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) <0x7f38c19822a0 + 0x004d1> in <filename unknown>:0 
	  at CommonIO.ManagedFileSystem.CopyFile (System.String source, System.String target, Boolean overwrite) <0x411e2e80 + 0x0002c> in <filename unknown>:0 
	  at MediaBrowser.Server.Implementations.FileOrganization.EpisodeFileOrganizer.PerformFileSorting (MediaBrowser.Model.FileOrganization.TvFileOrganizationOptions options, MediaBrowser.Model.FileOrganization.FileOrganizationResult result) <0x412a0800 + 0x00137> in <filename unknown>:0 

You'll notice the command line it runs initiates a restart.

 

 

Does anyone have an idea to get around this?

I would love to continue using a scheduled auto-organise function, but I can't if this is going to happen.

Link to comment
Share on other sites

Hi, can you please update to the latest version of emby server and then we'll look at it from there? thanks !

Link to comment
Share on other sites

PhelanPKell

Updated the server to the latest version, which in turn automatically re-added the default organise schedule, which in turn was causing media to freeze on playback while it happened.

 

Log attached.

 

To reiterate, this was not a problem when I first started using media organisation. It started sometime (roughly) between 3-4 weeks after I started using it.

emby_logs_20170102_001325.txt

Link to comment
Share on other sites

For starters, there are lots of access denied errors coming from auto-organize, so you will need to make sure that Emby Server has permission to the folders you want it to manipulate.

2017-01-02 04:02:06.8353 Error App: Error deleting /media/scratchdisk/complete/001_RENAMED/Legends of Tomorrow/Season 02/Legends of Tomorrow - S02E08 - The Chicago Way.mkv
	*** Error Report ***
	Version: 3.1.2.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.4.0.36
	64-Bit OS: True
	64-Bit Process: True
	Mono: 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 28 20:49:26 UTC 2016)
	Processor count: 8
	Program data path: /var/lib/emby-server
	Application directory: /usr/lib/emby-server/bin
	System.UnauthorizedAccessException: Access to the path "/media/scratchdisk/complete/001_RENAMED/Legends of Tomorrow/Season 02/Legends of Tomorrow - S02E08 - The Chicago Way.mkv" is denied.
	  at System.IO.File.Delete (System.String path) [0x00082] in <8f2c484307284b51944a1a13a14c0266>:0 

That is causing it to keep retrying the same files over and over again. See if that helps and then we can go from there. thanks.

Link to comment
Share on other sites

PhelanPKell

Yeah, I saw the access denied errors, but that is no reason for Emby to restart itself.

Especially since Emby should have full permissions there anyway.

Link to comment
Share on other sites

@@PhelanPKell i agree that is no reason to restart but since the cause of the restart is not obvious yet I am asking you to try that and see if it resolves it.

Link to comment
Share on other sites

  • 5 weeks later...
PhelanPKell

My apologies for the delayed reply. I've had an incredibly busy month, and this just took a low priority on my list (and I just disabled the auto-organise interval a while back to stop the problem from happening).

 

I've got a script and cronjob running to keep permissions in my media pool and my "scratchdisk" (download drive) in check, and I'll see what happens.

 

At some point I need to make a new thread for the problem where update 3.1.5 broke the webplayer in Chrome as well. T_T

Edited by PhelanPKell
Link to comment
Share on other sites

PhelanPKell

So I haven't set the schedule for auto-organise yet, because since the 3.1.5 update, my server is having some sort of error that invokes a pretty large stack trace.

 

I've attached the section of the log from one of these occurrences. Just seems to be one thing after another here. :S

2017-02-05 22:09:17.3651 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.1.5.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.4.0.36
	64-Bit OS: True
	64-Bit Process: True
	Mono: 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 28 20:49:26 UTC 2016)
	Processor count: 8
	Program data path: /var/lib/emby-server
	Application directory: /usr/lib/emby-server/bin
	System.IO.IOException: Unable to write data to the transport connection: Connection reset by peer. ---> System.Net.Sockets.SocketException: Connection reset by peer
	  at System.Net.Sockets.Socket.EndSend (System.IAsyncResult result) [0x00033] in <bd46d4d4f7964dfa9beea098499ab597>:0 
	  at System.Net.Sockets.NetworkStream.EndWrite (System.IAsyncResult asyncResult) [0x0005f] in <bd46d4d4f7964dfa9beea098499ab597>:0 
	   --- End of inner exception stack trace ---
	  at System.Net.Sockets.NetworkStream.EndWrite (System.IAsyncResult asyncResult) [0x000af] in <bd46d4d4f7964dfa9beea098499ab597>:0 
	  at System.IO.Stream.<BeginEndWriteAsync>m__8 (System.IO.Stream stream, System.IAsyncResult asyncResult) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at (wrapper delegate-invoke) System.Func`3[System.IO.Stream,System.IAsyncResult,System.Threading.Tasks.VoidTaskResult]:invoke_TResult_T1_T2 (System.IO.Stream,System.IAsyncResult)
	  at System.Threading.Tasks.TaskFactory`1+FromAsyncTrimPromise`1[TResult,TInstance].Complete (TInstance thisRef, System.Func`3[T1,T2,TResult] endMethod, System.IAsyncResult asyncResult, System.Boolean requiresSynchronization) [0x00002] in <8f2c484307284b51944a1a13a14c0266>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at SocketHttpListener.Net.ResponseStream+<WriteAsync>c__async0.MoveNext () [0x0020c] in <8d9474d581314a45a6b32562b4715ed2>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.Stream+<CopyToAsyncInternal>c__async0.MoveNext () [0x0009b] in <8f2c484307284b51944a1a13a14c0266>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at Emby.Server.Implementations.HttpServer.StreamWriter+<WriteToAsync>c__async0.MoveNext () [0x00139] in <4befeb91008442abb91c42256be0e953>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at ServiceStack.HttpResponseExtensionsInternal+<WriteToOutputStream>c__async0.MoveNext () [0x000a6] in <09a657d82da645e2adfa9b340e203ed5>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at ServiceStack.HttpResponseExtensionsInternal+<WriteToResponseInternal>c__async1.MoveNext () [0x002d1] in <09a657d82da645e2adfa9b340e203ed5>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at ServiceStack.Host.RestHandler+<ProcessRequestAsync>c__async1.MoveNext () [0x00253] in <09a657d82da645e2adfa9b340e203ed5>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>c__async0.MoveNext () [0x00668] in <4befeb91008442abb91c42256be0e953>:0 
	System.IO.IOException
	  at System.Net.Sockets.NetworkStream.EndWrite (System.IAsyncResult asyncResult) [0x000af] in <bd46d4d4f7964dfa9beea098499ab597>:0 
	  at System.IO.Stream.<BeginEndWriteAsync>m__8 (System.IO.Stream stream, System.IAsyncResult asyncResult) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at (wrapper delegate-invoke) System.Func`3[System.IO.Stream,System.IAsyncResult,System.Threading.Tasks.VoidTaskResult]:invoke_TResult_T1_T2 (System.IO.Stream,System.IAsyncResult)
	  at System.Threading.Tasks.TaskFactory`1+FromAsyncTrimPromise`1[TResult,TInstance].Complete (TInstance thisRef, System.Func`3[T1,T2,TResult] endMethod, System.IAsyncResult asyncResult, System.Boolean requiresSynchronization) [0x00002] in <8f2c484307284b51944a1a13a14c0266>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at SocketHttpListener.Net.ResponseStream+<WriteAsync>c__async0.MoveNext () [0x0020c] in <8d9474d581314a45a6b32562b4715ed2>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.Stream+<CopyToAsyncInternal>c__async0.MoveNext () [0x0009b] in <8f2c484307284b51944a1a13a14c0266>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at Emby.Server.Implementations.HttpServer.StreamWriter+<WriteToAsync>c__async0.MoveNext () [0x00139] in <4befeb91008442abb91c42256be0e953>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at ServiceStack.HttpResponseExtensionsInternal+<WriteToOutputStream>c__async0.MoveNext () [0x000a6] in <09a657d82da645e2adfa9b340e203ed5>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at ServiceStack.HttpResponseExtensionsInternal+<WriteToResponseInternal>c__async1.MoveNext () [0x002d1] in <09a657d82da645e2adfa9b340e203ed5>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at ServiceStack.Host.RestHandler+<ProcessRequestAsync>c__async1.MoveNext () [0x00253] in <09a657d82da645e2adfa9b340e203ed5>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>c__async0.MoveNext () [0x00668] in <4befeb91008442abb91c42256be0e953>:0 
	InnerException: System.Net.Sockets.SocketException
	System.Net.Sockets.SocketException (0x80004005): Connection reset by peer
	  at System.Net.Sockets.Socket.EndSend (System.IAsyncResult result) [0x00033] in <bd46d4d4f7964dfa9beea098499ab597>:0 
	  at System.Net.Sockets.NetworkStream.EndWrite (System.IAsyncResult asyncResult) [0x0005f] in <bd46d4d4f7964dfa9beea098499ab597>:0 
	  at System.Net.Sockets.Socket.EndSend (System.IAsyncResult result) [0x00033] in <bd46d4d4f7964dfa9beea098499ab597>:0 
	  at System.Net.Sockets.NetworkStream.EndWrite (System.IAsyncResult asyncResult) [0x0005f] in <bd46d4d4f7964dfa9beea098499ab597>:0 
	
2017-02-05 22:09:17.3651 Info HttpServer: HTTP Response 500 to 13.37.42.54. Time: 2500ms (slow). http://13.37.42.50:8096/emby/videos/3b016ea45669193b6c4f285593d44f74/hls1/main/99.ts?DeviceId=c8fd07d170a688fcc3a67adfb62d0d2c2ae76bae&MediaSourceId=3b016ea45669193b6c4f285593d44f74&VideoCodec=h264&AudioCodec=ac3,aac,mp3&AudioStreamIndex=1&VideoBitrate=7616000&AudioBitrate=384000&Level=41&Profile=high&PlaySessionId=a17867e9f8fb49deb90e809678d72e04&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&Tag=a67affdde49ad801898fe24607353cd6&RequireAvc=true
2017-02-05 22:09:17.3688 Info HttpServer: HTTP Response 204 to 13.37.42.54. Time: 8ms. http://13.37.42.50:8096/emby/Sessions/Playing/Stopped
2017-02-05 22:09:17.3713 Info HttpServer: HTTP Response 200 to 13.37.42.54. Time: 13ms. http://13.37.42.50:8096/emby/Users/e13ee0b2865540c8863379fb709f3987/Items/977d02a01c4b13af8718d09ec2eac1b3
2017-02-05 22:09:17.4194 Info HttpServer: HTTP GET http://13.37.42.50:8096/emby/Shows/8ed4e5954942dde4e82d3ae9c4fc484f/Episodes?seasonId=dfc218bc0527069455f9b717ea87958a&userId=e13ee0b2865540c8863379fb709f3987&Fields=ItemCounts%2CAudioInfo%2CPrimaryImageAspectRatio%2CBasicSyncInfo%2CCanDelete. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
2017-02-05 22:09:17.4221 Info HttpServer: HTTP GET http://13.37.42.50:8096/emby/Items/977d02a01c4b13af8718d09ec2eac1b3/ThemeMedia?userId=e13ee0b2865540c8863379fb709f3987&InheritFromParent=true. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
2017-02-05 22:09:17.4243 Info HttpServer: HTTP Response 200 to 13.37.42.54. Time: 2ms. http://13.37.42.50:8096/emby/Items/977d02a01c4b13af8718d09ec2eac1b3/ThemeMedia?userId=e13ee0b2865540c8863379fb709f3987&InheritFromParent=true
Link to comment
Share on other sites

PhelanPKell

Yeah, sorry. It was late, and I was frustrated.

 

So the timing lines up with those messages where playback freezes and the WebUI becomes unresponsive.

I can't get into the Dashboard, or anything.

 

It's inducing a restart like the auto-organise problem, but since auto-organise is disabled right now, it's logical to presume the problem is elsewhere.

That being said, I'm not a coder, and reading stack traces isn't my forte.

 

Since this all runs on a Hyper-V virtual machine, I considered that maybe there was a hardware lag happening somewhere.

I checked performance on the host, and did find that the hard drive shared by the main VM drive, and my "scratch disk" used for downloads, was peaking at 100% for extended periods.

I swapped the main VM drive to my SSD, and the 100% disk usage disappeared, yet this issue continued. That's when I dug through the logs for the events that coincided with the most recent (at that time) event.

Link to comment
Share on other sites

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...