TV Streaming - "Unable to connect to database" (1 Viewer)

Knobby

Portal Pro
February 21, 2007
59
4
Home Country
United Kingdom United Kingdom
I'm trying to stream TV (live and recorded) from my server to my laptop. I did a new installation of MP on my laptop and in the configuration I entered the servers IP address which is fixed.

When I try to access recorded TV a screen pops up asking me to change the hostname or IP address of the server. When I click "Done" I get another message box saying:

"Connected to TV-Server
Unable to connect to database
All IP Ports seem to be fine"

Any idea why? Watching TV on the server is perfect! I've attached logs from my Laptop.
Thanks in advance.
 

Holzi

Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    I'm trying to stream TV (live and recorded) from my server to my laptop. I did a new installation of MP on my laptop and in the configuration I entered the servers IP address which is fixed.

    When I try to access recorded TV a screen pops up asking me to change the hostname or IP address of the server. When I click "Done" I get another message box saying:

    "Connected to TV-Server
    Unable to connect to database
    All IP Ports seem to be fine"

    Any idea why? Watching TV on the server is perfect! I've attached logs from my Laptop.
    Thanks in advance.

    Hello!
    Can you backup your gentle.config on your client (e.g. copy it to desktop) and replace it with your gentle.config from your Server.
    Otherwise it could be a firewall issue.
     

    Knobby

    Portal Pro
    February 21, 2007
    59
    4
    Home Country
    United Kingdom United Kingdom
    The problem was my network. Windows 7 would not connect to the server which is Windows XP. I've now put XP back on the laptop and everything is working fine.
     

    Phil McCavity

    Portal Member
    July 24, 2013
    8
    0
    71
    Home Country
    Australia Australia
    I have this exact same issue (logs attached).

    The TV server is running Windows 7 with MP 1.4. I have multiple clients : a Windows 8 tablet (running 1.5), a Windows 7 desktop (1.7.1), an older Windows XP machine (not sure which MP version) and a Windows 7 laptop (1.5). Everything used to work just fine.

    Yesterday afternoon my daughter, knowing I was planning to monopolise the TV for a big football game, tested the XP machine to make sure it was working, which it was. By night, it wasn't. Neither was my dekstop PC, though the Windows 8 tablet was working. I downgraded the dekstop to 1.5 but still no luck. I upgraded everything to 1.7.1 and still no luck. I disabled all the firewalls to no avail.

    In Mediaportal configuration I have the server configured by IP address. Pressing the "test" button says it works. When I scan for, or enter the TV server name, it fails.

    Logs attached - if anyone can suggest a solution I'd be most grateful.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    Hello

    In case you weren't already aware:
    1. Running mixed versions of MP and TV Server is not supported. We don't test mixed configurations, and they may break in strange and unpredictable ways.
    2. MP 1.7.1 will still work on XP [though we don't provide support anymore], so XP is no reason to stay on older versions of MP.

    In Mediaportal configuration I have the server configured by IP address. Pressing the "test" button says it works. When I scan for, or enter the TV server name, it fails.
    The second point about the server name is critical because your database configuration (gentle.config) is still using the server name. For whatever reason - something unrelated to MediaPortal - it seems your client(s) cannot resolve "mediacentre" to the server's IP address. In other words you have a network DNS issue. Taking down firewalls won't make any difference; it isn't that kind of problem.

    Clients have the following connections to the server:
    • .NET remoting using the hostname or IP address configured in MediaPortal configuration
    • RTSP streaming using the hostname or IP address configured in MediaPortal configuration
    • database using the credentials in the gentle.config file which is pushed down from the server to clients
    So, when you manipulate the MediaPortal configuration you're only looking at two thirds of the equation. You need to deal with the server's gentle.config file as well.

    mm
     

    Phil McCavity

    Portal Member
    July 24, 2013
    8
    0
    71
    Home Country
    Australia Australia
    Bingo. I cured the problem with an entry in the hosts file on each client machine. Interesting, because nothing else has trouble resolving the address. No matter - it works now.

    Thanks heaps!
     

    Users who are viewing this thread

    Top Bottom