Jump to content

Emby Theater won't play video from Emby server on Linux


Recommended Posts

wirehack7
Posted (edited)

Hello,

 

since a few days Emby Theater for Windows won't play any videos from my server which is running on Debian 8. Emby version is: 3.0.5972.0

Emby listens on 8096 for HTTP and 8920 for HTTPS. These ports are open on the server. Also there is Apache2 as reverse proxy with this settings:

<IfModule mod_ssl.c>
NameVirtualHost *:80
NameVirtualHost *:443
SSLStrictSNIVHostCheck off

<VirtualHost *:443>
        ServerName [censored].com
        ServerAlias [censored].com

        ProxyVia On
        ProxyRequests Off
        ProxyPreserveHost On
        SSLProxyEngine On

        #ProxyPass / https://127.0.0.1:8920/
        #ProxyPassReverse / https://127.0.0.1:8920/


        <Location />
                ProxyPass        https://127.0.0.1:8920/
                ProxyPassReverse https://127.0.0.1:8920/
        </Location>

        <Location /embywebsocket>
                ProxyPass        ws://127.0.0.1:8096/embywebsocket
                ProxyPassReverse ws://127.0.0.1:8096/embywebsocket
        </Location>

SSLCertificateFile /etc/letsencrypt/live/[censored].com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/[censored].com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>

</IfModule>
 

I changed no config, but suddenly that error below appear.

I really don't know from where this comes and how to resolve so I am looking forward for any help.

Processor count: 8
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Dec  3 03:58:58 UTC 2015)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
        The authentication or decryption has failed.
        System.IO.IOException
          at Mono.Security.Protocol.Tls.SslStreamBase.InternalBeginWrite (Mono.Security.Protocol.Tls.InternalAsyncResult asyncResult) <0x417c4dc0 + 0x00217> in <filename unknown>:0
          at Mono.Security.Protocol.Tls.SslStreamBase.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 count, System.AsyncCallback callback, System.Object state) <0x41792fe0 + 0x0010f> in <filename unknown>:0
          at System.Net.Security.SslStream.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 count, System.AsyncCallback asyncCallback, System.Object asyncState) <0x417a9e40 + 0x00054> in <filename unknown>:0
          at System.Net.Security.SslStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x417e3350 + 0x00029> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x41785410 + 0x0008f> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x417841e0 + 0x001eb> in <filename unknown>:0
          at ServiceStack.Formats.HtmlFormat.SerializeToStream (IRequest request, System.Object response, IResponse httpRes) <0x419a8da0 + 0x00c18> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse (IResponse httpRes, IRequest httpReq, System.String contentType, System.String operationName, System.String errorMessage, System.Exception ex, Int32 statusCode) <0x419a8350 + 0x001df> in <filename unknown>:0
          at ServiceStack.ServiceStackHost.OnUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x419a7c20 + 0x0024b> in <filename unknown>:0
          at ServiceStack.HostContext.RaiseUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x419a7be0 + 0x0003a> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse response, System.Object result, ServiceStack.Web.ResponseSerializerDelegate defaultAction, IRequest request, System.Byte[] bodyPrefix, System.Byte[] bodySuffix) <0x41781d40 + 0x01003> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse httpRes, IRequest httpReq, System.Object result, System.Byte[] bodyPrefix, System.Byte[] bodySuffix) <0x417818b0 + 0x00247> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse httpRes, IRequest httpReq, System.Object result) <0x41781680 + 0x0001b> in <filename unknown>:0
          at ServiceStack.Host.RestHandler+<>c__DisplayClass5.<ProcessRequestAsync>b__0 (System.Object response) <0x4177f570 + 0x001c7> in <filename unknown>:0
          at ServiceStack.Host.Handlers.ServiceStackHandlerBase.HandleResponse (System.Object response, System.Func`2 callback, System.Func`2 errorCallback) <0x4177f290 + 0x00229> in <filename unknown>:0
        InnerException: System.IO.IOException
        Error while sending TLS Alert (Fatal:InternalError): System.IO.IOException: BeginWrite failure ---> System.Net.Sockets.SocketException: The socket is not connected
          at System.Net.Sockets.Socket.BeginSend (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags socket_flags, System.AsyncCallback callback, System.Object state) <0x41715850 + 0x00143> in <filename unknown>:0
          at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 size, System.AsyncCallback callback, System.Object state) <0x417153a0 + 0x000af> in <filename unknown>:0
          --- End of inner exception stack trace ---
          at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 size, System.AsyncCallback callback, System.Object state) <0x417153a0 + 0x0011b> in <filename unknown>:0
          at Mono.Security.Protocol.Tls.SslStreamBase.InternalBeginWrite (Mono.Security.Protocol.Tls.InternalAsyncResult asyncResult) <0x417c4dc0 + 0x00155> in <filename unknown>:0
        InnerException: System.IO.IOException
        BeginWrite failure
          at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 size, System.AsyncCallback callback, System.Object state) <0x417153a0 + 0x0011b> in <filename unknown>:0
          at Mono.Security.Protocol.Tls.SslStreamBase.InternalBeginWrite (Mono.Security.Protocol.Tls.InternalAsyncResult asyncResult) <0x417c4dc0 + 0x00155> in <filename unknown>:0
        InnerException: System.Net.Sockets.SocketException
        The socket is not connected
          at System.Net.Sockets.Socket.BeginSend (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags socket_flags, System.AsyncCallback callback, System.Object state) <0x41715850 + 0x00143> in <filename unknown>:0
          at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 size, System.AsyncCallback callback, System.Object state) <0x417153a0 + 0x000af> in <filename unknown>:0
Edited by wirehack7
Posted

Hi, try http for now. there are some issues with certain versions of tls with the mono server. we are waiting on the next mono release because it looks like there are going to be some improvements. thanks.

wirehack7
Posted

Hi, try http for now. there are some issues with certain versions of tls with the mono server. we are waiting on the next mono release because it looks like there are going to be some improvements. thanks.

 

Thanks for the answer. I'm not really into .NET developing or Mono as I am mainly a Linux user. Is there any ETA for that? And I have I to disable HTTPS everywhere for Emby? Apache and Emby.

Posted

Strangely it looks like mono 4.4 went stable today but no, i can't offer an eta because usually the brand new stable releases can't be trusted yet anyway.

 

You don't need to touch your apache config. Just go into emby theater, log out, then do a manual server connection using the http url.

Posted

I just wanted to add that I have the same problem running on CentOS 7.2.1511

 

http://pastebin.com/8qAXEsny

 

Hi, yes same thing, so i would try the same suggestions already mentioned here. Thanks.

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