Client tvserver connection problems (1 Viewer)

bakerpr3

Portal Member
October 14, 2014
12
0
51
Home Country
Great Britain (UK) Great Britain (UK)
I am having problems connecting to my tvserver from a client on the same network. Done some research and have tried checking and copying the gentle file as described in the wiki.
When I add the IP address of the server machine I get a green box and it says it's connected but when I open MP it just freezes.
 

bakerpr3

Portal Member
October 14, 2014
12
0
51
Home Country
Great Britain (UK) Great Britain (UK)
Thanks for the welcome mm,
Attached two log files one with address and the other where I try to change tvserver to Media-PC
Let me know if you need anything else to help.

Thanks
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Thanks for the log files (y)
    In the second set of logs I can see that MediaPortal is configured to look for a TV Server running on 192.168.1.104. It seems to find the TV Server fine:
    [collapse]
    [2014-10-14 17:26:56,073] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [DEBUG] - RemoteControl: RegisterChannel first called in Domain MediaPortal.exe for thread TvClient-TvHome: HeartBeat transmitter thread with id 11
    [2014-10-14 17:26:56,088] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [DEBUG] - RemoteControl: TCP connect took : 1
    [2014-10-14 17:26:56,088] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [INFO ] - RemoteControl - Connected
    [2014-10-14 17:26:56,088] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [INFO ] - TVHome: OnRemotingConnected, recovered from a disconnection
    [2014-10-14 17:26:56,104] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [INFO ] - TVHome:OnLoaded
    [2014-10-14 17:26:56,104] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [DEBUG] - ChannelNavigator: ctor()
    [2014-10-14 17:26:56,120] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [INFO ] - RemoteControl - Connected
    [2014-10-14 17:26:56,120] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [INFO ] - ChannelNavigator::Reload()
    [2014-10-14 17:26:56,182] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [INFO ] - get channels from database
    [/collapse]

    However, it is not able to connect to the TV Server database (a separate connection):
    [2014-10-14 17:27:17,426] [Error ] [TvClient-TvHome: HeartBeat transmitter thread] [ERROR] - TVHome: Error in Reload
    [2014-10-14 17:27:17,458] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [ERROR] - Exception: Error: DatabaseUnavailableUnclassified
    Gentle.Common.GentleException: The database backend (provider MySQL) could not be reached.
    Check the connection string: Server=Media-PC;Database=MpTvDb;User ID=root;Password=***;charset=utf8;Connection Timeout=30; ---> MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Exception of type 'System.Exception' was thrown.

    As you have noticed, the database connection is configured in the gentle.config file. The logs show the gentle.config file is configured to look for "Media-PC"... and it seems that name is not working.

    A few comments...

    The gentle.config file is pushed from the server to the client. If "Media-PC" is wrong and you've been trying to change it, make sure you make the change in the server's gentle.config file because any changes on the client will just be overwritten.

    On the other hand, if "Media-PC" is right and not working then
    1. You may have a DNS issue. In other words, the client can't convert the hostname (Media-PC) to the correct IP address.
    2. You may have a connectivity issue. In other words, firewalls on either the client or server blocking the connection, or database user/security configuration preventing the client from logging into the database.
    My suggestion would be to try to use the IP address in the gentle.config file for a start. If that works, you know the problem is likely to be a DNS issue (...which can be resolved by adding an entry to the Windows hosts file c:\WINDOWS\system32\drivers\etc).
    If using the IP address doesn't work then try temporarily disabling all firewalls on the client and server (don't forget the built-in Windows firewalls).
    If that doesn't help you'll probably need to look at database configuration. That's a bit more involved so I'm going to delay explaining how to do that until it is necessary.

    Best regards,
    mm
     

    bakerpr3

    Portal Member
    October 14, 2014
    12
    0
    51
    Home Country
    Great Britain (UK) Great Britain (UK)
    Have tried using the IP address in the gentle.config file and turned off windows firewalls and can now access the tv guide but when I try to play a channel the connection to the server is lost.

    Attached is the log file hopefully showing this.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hmmm, odd.
    Can you please post the corresponding log file from the server. Running the watchdog on the server with option 3 should do the trick.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Thanks.

    The Windows application event log shows that the TV service crashed. The crash was caused by the M**** filter:
    "15/10/2014 10:53:10";"Windows Error Reporting";"(0)";"Information";"Fault bucket 569081103, type 17 Event Name: APPCRASH Response: Not available Cab Id: 0 Problem signature: P1: TVService.exe P2: 1.9.0.0 P3: 542be891 P4: mdapifilter.ax P5: 2.0.0.11 P6: 4b06edd9 P7: c0000005 P8: 0003a543 P9: P10: Attached files: C:\Windows\Temp\WER8AE6.tmp.appcompat.txt C:\Windows\Temp\WER8BA2.tmp.WERInternalMetadata.xml C:\Windows\Temp\WER8BA3.tmp.hdmp C:\Windows\Temp\WER9FEF.tmp.mdmp These files may be available here: C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_TVService.exe_4e808b8cf838cbb662b522ba1a85596278b829b_06bcc81e Analysis symbol: Rechecking for solution: 0 Report Id: 0a583bc2-544f-11e4-a655-e0cb4ebb98e6 Report Status: 0";"1001"

    There are other similar crashes in the log.

    We have a policy relating to this subject:
    https://forum.team-mediaportal.com/threads/mdapi-softcam-support-again.12620/

    So, you're going to need to investigate this problem further yourself.

    Good luck!
    mm
     

    bakerpr3

    Portal Member
    October 14, 2014
    12
    0
    51
    Home Country
    Great Britain (UK) Great Britain (UK)
    Full re-install still causes the same issue, if you would be kind enough to review I would be extremely grateful.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Can you please clarify what you mean by "the same issue", because I don't see any problem in those log files.
     

    Users who are viewing this thread

    Top Bottom