Failed to initialize TVServer (1 Viewer)

CluelessOne

New Member
June 30, 2009
4
0
Home Country
New Zealand New Zealand
Thanks in advance.
I have a HTPC and its driving me nuts !! The purpose is to watch NZ's Freeview HD. Using a Hauppuage 4000 quad tuner card.

Having completely given up on PowerCinema and their rubbish support I am trying MediaPortal. Was working in the shop but back home and its not.
I think its a networking problem according to the error log.

The machine is on a home network and the router assigned it an IP address, 192.168.1.5

The TV service is up and running, but has issues connecting to the SQL Server database.

From the error log...

2009-06-30 21:26:44.446724 [SetupTv]: RemoteControl: Error getting server Instance - Invalid URI: A port was expected because of there is a colon (':') present but the port could not be parsed.
2009-06-30 21:26:44.446724 [SetupTv]: RemoteControl - Error checking connection state
2009-06-30 21:28:19.404128 [5]: applyProcessPriority: exception is at Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String msg)
at Gentle.Common.Check.Fail(Exception e, Error error, Object[] args)
at Gentle.Provider.SQLServer.SQL92Analyzer.Analyze(String tableName)
at Gentle.Provider.SQLServer.SQLServerAnalyzer.Analyze(String tableName)
at Gentle.Framework.GentleAnalyzer.UpdateObjectMap(ObjectMap map)
at Gentle.Framework.ObjectFactory.ConstructMap(PersistenceBroker broker, Type type)
at Gentle.Framework.ObjectFactory.GetMap(PersistenceBroker broker, Type type)
at Gentle.Framework.SqlBuilder..ctor(IGentleProvider provider, StatementType stmtType, Type type, LogicalOperator logicalOperator)
at Gentle.Framework.SqlBuilder..ctor(StatementType stmtType, Type type)
at TvDatabase.TvBusinessLayer.GetSetting(String tagName, String defaultValue)
at TvService.Service1.applyProcessPriority()
2009-06-30 21:28:19.514128 [TVService]: Exception :Error: DatabaseUnavailableUnclassified
Gentle.Common.GentleException: The database backend (provider SQLServer) could not be reached.
Check the connection string: Password=***;Persist Security Info=True;User ID=sa;Initial Catalog=MpTvDb;Data Source=Media-PC\SQLEXPRESS;Connection Timeout=300; ---> System.Data.SqlClient.SqlException: Cannot open database "MpTvDb" requested by the login. The login failed.
Login failed for user 'sa'.

.. more but thats probably enough

From tv.log...

4 attempts then on the 5th...

2009-06-30 21:28:42.517128 [TVService]: Controller: 5 init attempt
2009-06-30 21:28:42.517128 [TVService]: C:\ProgramData\Team MediaPortal\MediaPortal TV Server\gentle.config
2009-06-30 21:28:42.518128 [TVService]: Controller: using SQLServer database connection: Password
2009-06-30 21:28:42.518128 [TVService]: ----------------------------
2009-06-30 21:28:42.519128 [TVService]: Detecting Cards in 5 seconds
2009-06-30 21:28:47.519128 [TVService]: Detecting Cards
2009-06-30 21:28:47.542128 [TVService]: Detected DVB-T card:hauppauge wintv 88x dvb-t tuner/demod
2009-06-30 21:28:47.552128 [TVService]: Detected DVB-S card:hauppauge wintv 88x dvb-s/s2 tuner/demod
2009-06-30 21:28:47.557128 [TVService]: Detected analog card:hauppauge wintv 88x tuner
2009-06-30 21:28:47.560128 [TVService]: Controller: started at Media-PC
2009-06-30 21:28:47.565128 [TVService]: Controller: local ip address:192.168.1.5
2009-06-30 21:28:47.570128 [TVService]: Controller: Failed to initialize TVServer
2009-06-30 21:28:47.573128 [TVService]: TV Service: Load plugins
2009-06-30 21:28:47.582128 [TVService]: PluginManager: Loaded ComSkipLauncher version:1.0.2.0 author:and-81
2009-06-30 21:28:47.766128 [TVService]: PluginManager: Loaded ConflictsManager version:1.0.0.1 author:Broceliande
etc etc.

There is nothing in the hosts file except the standard localhost entry.
This machine is a Gigabyte AMD thing with 4GB RAM, 1TB disk, one giant lemon !!

Any ideas much appreciated.

Should mention the database setup initially was fine.
Now when I try to load the TV Server configuration, I get a message "Unable to connect to fe80::3ce0:c2c:...."
 

aidbish

MP Donator
  • Premium Supporter
  • March 7, 2007
    207
    20
    righthandside 3/4 way up
    have you tried setting the server to use ip instead of hostname
    its in the tv server config under tv servers. "choose ip fro streaming"
    also try disabling any firewall on the machine, to rule out any issue with tha firewall blocking anything
     

    CluelessOne

    New Member
    June 30, 2009
    4
    0
    Home Country
    New Zealand New Zealand
    Thanks. I disabled the firewall and rebooted. No effect.
    I tried altering the IP setting but there is nothing at all in the LOV.
     

    aidbish

    MP Donator
  • Premium Supporter
  • March 7, 2007
    207
    20
    righthandside 3/4 way up
    Now when I try to load the TV Server configuration, I get a message "Unable to connect to fe80::3ce0:c2c:...."
    it seems like its trying to connect to the IPv6 address instead of the ipv4 address 192.168.1.5, did you select anything like this during config

    what do you mean by the LOV
    i would suggest you download and install the sql server management studio and see if you can connect to the database fine with that
    then we can see what else it maybe
     

    CluelessOne

    New Member
    June 30, 2009
    4
    0
    Home Country
    New Zealand New Zealand
    The last install was done by the guy in the shop and the PC was not networked at the time.

    So I uninstalled the whole thing and started again. This time I got as far as "Failed to create database" in the TV Server config.
    The log showed it was unable to create a couple of database files because they existed already.
    I renamed them and now it works a treat !!!!

    Unlike Powercinema 5 and 6 I can watch the TV and actually hear it, recordings and all !!!!

    Now my only challenges left are :
    1 - Unable to delete recorded TV files - A Vista permissions problem probably.
    2 - Get the NZ Freeview EPG working
    3 - Somehow get rid of the "trial version has expired" message from elecard. Any ideas ? Is there an alternative ?

    It is often slow to show the video and I get a lot of jagged edges. Not perfect but I might blame my ancient TV cable.

    Thanks for the help aidbish.
     

    Users who are viewing this thread

    Top Bottom