[solved] V 1.7 upgrade - Unable to connect to TV Server on host

thekiwi

MP Donator
  • Premium Supporter
  • January 26, 2007
    287
    18
    Gisborne
    Country flag
    Hi

    Have upgraded a previously perfectly working multiseat setup from 1.6 to 1.7, and on the face of it all seems to have been OK, except for the client when going to watch live TV.

    The Config interface on the client gives "Unable to connect to host 'mediaserver'". The host is running, Can check all the settings, manually stream etc. The service is running on the host and all mapped drives are OK. Can even access live and recorded TV via WebMP ... suggesting the server side is all OK?

    Any ideas?

    Cheers

    Craig
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,541
    113
    Country flag
    Hello Craig

    Please post the result of the command "ping mediaserver" from the client.

    mm
     

    thekiwi

    MP Donator
  • Premium Supporter
  • January 26, 2007
    287
    18
    Gisborne
    Country flag
    Hello Craig

    Please post the result of the command "ping mediaserver" from the client.

    mm
    Hi mm

    Sorry, I should have outlined more my network setup and what Ive tested:
    * Entering the IP Address into the Client config also doesnt solve. The mediaserver is on a fixed IP Address of 10.0.0.11 as is the client.
    * The mediaserver is fully accessible, all DNS is working internally as well as name resolution,
    * The client is a Windows 7 Pro build
    * The host is a Window 7 Pro with a few Virtuam machines on it (one is the Domain Controller running Win2k8)[DOUBLEPOST=1398131551][/DOUBLEPOST]Actually, it might be the server ... as the following is showing inthe TV Server logs

    [2014-04-22 13:06:19,286] [Log ] [4 ] [ERROR] - Exception :confused:ystem.Runtime.Remoting.RemotingException: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
    at System.Net.Sockets.TcpListener.Start(Int32 backlog)
    at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse)
    at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)
    at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
    at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
    at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
    at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
    at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry)
    at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
    at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'.
    at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
    at System.Runtime.Remoting.RemotingConfigHandler.DoConfiguration(String filename, Boolean ensureSecurity)
    at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename, Boolean ensureSecurity)
    at TvService.TvServiceThread..ctor()

    [2014-04-22 13:06:19,829] [Log ] [TVService] [ERROR] - Exception :confused:ystem.Exception: Error initializing streaming server
    at TvLibrary.Streaming.RtspStreaming..ctor(String hostName, Int32 port)
     

    thekiwi

    MP Donator
  • Premium Supporter
  • January 26, 2007
    287
    18
    Gisborne
    Country flag
    Attached from the server[DOUBLEPOST=1398134714][/DOUBLEPOST]Just bounced the server process and the logs are showing

    TVService-Error.log
    Code:
    [2014-04-22 14:40:51,658] [Log    ] [4        ] [ERROR] - Exception   :System.Runtime.Remoting.RemotingException: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
       at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
       at System.Net.Sockets.Socket.Bind(EndPoint localEP)
       at System.Net.Sockets.TcpListener.Start(Int32 backlog)
       at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse)
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
       at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
       at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry)
       at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
       at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'.
       at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
       at System.Runtime.Remoting.RemotingConfigHandler.DoConfiguration(String filename, Boolean ensureSecurity)
       at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename, Boolean ensureSecurity)
       at TvService.TvServiceThread..ctor()
    
    [2014-04-22 14:40:52,157] [Log    ] [TVService] [ERROR] - Exception   :System.Exception: Error initializing streaming server
       at TvLibrary.Streaming.RtspStreaming..ctor(String hostName, Int32 port)
    whilst the streaming server.Log gave
    Code:
    22-04-2014 14:40:52.151 -------------- v1.0.5 ---------------
    22-04-2014 14:40:52.153 Stream server:Setup stream server for ip: 10.0.0.11
    22-04-2014 14:40:52.155 Stream server:Failed to create RTSP server: bind() error (port number: 554): Unknown error
     
    Last edited:

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,541
    113
    Country flag
    Hmm, the server seems happy sometimes, but not at other times.

    The log excerpts you've posted indicate some process (possibly a zombie TV service) is blocking the normal TV Server ports. That also happened earlier in the logs.

    I'm not sure what is causing that. There is no indication of dirty service shutdown or anything. Very odd.

    When you had problems with that client, were you able to check any other clients (ie. not just a TV Server configuration test)? Alternatively was the single seat install on the server working okay (or is it a server-only install?)?

    I do think the problem is probably server side network configuration - perhaps the VPN? - but need to find some way to decisively prove that.
     

    thekiwi

    MP Donator
  • Premium Supporter
  • January 26, 2007
    287
    18
    Gisborne
    Country flag
    Yea, what I was thinking as well ... that some process was on the same port.

    Tried again bouncing the process but no luck. THe server is just server, no client .. and unfortunately only have one full client setup.

    Definetly server side, as did a full reboot and this now shows for the streaming server:

    Code:
    22-04-2014 15:12:08.762 -------------- v1.0.5 ---------------
    22-04-2014 15:12:08.764 Stream server:Setup stream server for ip: 10.0.0.11
     
    Top Bottom