hatharry 113 Posted July 12, 2016 Posted July 12, 2016 When a chromecast is unplugged. My default Port 8920 stops working but port 8096 still works. I have to restart the server to get it working again. I found this in the logs. 2016-07-12 22:15:13.6374 Error App: Error streaming media. The client has most likely disconnected or transcoding has failed. *** Error Report *** Version: 3.0.5985.0 Command line: C:\Users\.\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: True Program data path: C:\Users\.\AppData\Roaming\Emby-Server Application Path: C:\Users\.\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe One or more errors occurred. System.AggregateException at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at MediaBrowser.Api.Playback.Progressive.ProgressiveStreamWriter.WriteToInternal(Stream responseStream) InnerException: System.IO.IOException Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Security._SslStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security._SslStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count) at SocketHttpListener.Net.ResponseStream.InternalWrite(Byte[] buffer, Int32 offset, Int32 count) at SocketHttpListener.Net.ResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count) at MediaBrowser.Api.Playback.Progressive.ProgressiveFileCopier.CopyToInternal(Stream source, Stream destination, Int32 bufferSize) at MediaBrowser.Api.Playback.Progressive.ProgressiveFileCopier.<StreamFile>d__6.MoveNext() InnerException: System.Net.Sockets.SocketException An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) 2016-07-12 22:15:13.6374 Error HttpServer: Error in HttpListenerResponseWrapper: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. *** Error Report *** Version: 3.0.5985.0 Command line: C:\Users\.\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: True Program data path: C:\Users\.\AppData\Roaming\Emby-Server Application Path: C:\Users\.\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. System.IO.IOException at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Security._SslStream.StartWriting(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security._SslStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslStream.Write(Byte[] buffer, Int32 offset, Int32 count) at SocketHttpListener.Net.ResponseStream.InternalWrite(Byte[] buffer, Int32 offset, Int32 count) at SocketHttpListener.Net.ResponseStream.Close() at MediaBrowser.Server.Implementations.HttpServer.SocketSharp.Extensions.CloseOutputStream(HttpListenerResponse response, ILogger logger) InnerException: System.Net.Sockets.SocketException An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
Luke 42083 Posted July 12, 2016 Posted July 12, 2016 I don't understand. How do you define not working?
hatharry 113 Posted July 13, 2016 Author Posted July 13, 2016 Not working as in port 8920 is closed and not allowing traffic. I have my HTTPS set as my external address
Luke 42083 Posted July 13, 2016 Posted July 13, 2016 Have you tried configuring port 8920 on your router?
hatharry 113 Posted July 14, 2016 Author Posted July 14, 2016 Port forwarding is setup correct. happened again last night. I was watching a tv show playlist in kodi when it tryed to open a stream for the next show it failed and said emby is not connected. So i fired up firefox and noticed page can not be found for https emby port 8920. but http emby port 8096 worked fine. I found no errors in the log this time. I had to restart the server twice due to it not starting correctly the first time. looks like this one is going to be hard to debug. I did find this error as it was restarting, maybe the reason i had to restart the server twice. 2016-07-13 23:34:47.3035 Error MediaEncoder: Error killing process *** Error Report *** Version: 3.0.5985.0 Command line: C:\Users\.\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: True Program data path: C:\Users\.\AppData\Roaming\Emby-Server Application Path: C:\Users\.\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe No process is associated with this object. System.InvalidOperationException at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.Kill() at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.StopProcess(ProcessWrapper process, Int32 waitTimeMs, Boolean enableForceKill) 2016-07-13 23:34:47.3035 Info MediaEncoder: Killing ffmpeg process 2016-07-13 23:34:47.3035 Error MediaEncoder: Error sending q command to process 2016-07-13 23:34:47.3035 Error MediaEncoder: Error in WaitForExit 2016-07-13 23:34:47.3035 Error MediaEncoder: Error killing process *** Error Report *** Version: 3.0.5985.0 Command line: C:\Users\.\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 8 64-Bit OS: True 64-Bit Process: True Program data path: C:\Users\.\AppData\Roaming\Emby-Server Application Path: C:\Users\.\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe No process is associated with this object. System.InvalidOperationException at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) at System.Diagnostics.Process.Kill() at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.StopProcess(ProcessWrapper process, Int32 waitTimeMs, Boolean enableForceKill)
Luke 42083 Posted July 14, 2016 Posted July 14, 2016 Please make sure to always provide complete log files, thanks. Also are we going off topic in relation to Kodi? I thought this was about Chromecast?
hatharry 113 Posted July 15, 2016 Author Posted July 15, 2016 I've setup a script to dump the latest log file as soon as https becomes unresponsive. I still think chromecast is the problem. I'll test with some more hard shutdowns and see if the script can pick anything up. I only mentioned kodi because it alerted me the connection was unavailable.
Solution hatharry 113 Posted July 20, 2016 Author Solution Posted July 20, 2016 I think I found the problem, my reverse proxy local lan settings had the wrong bindings.
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