Wiki Navigation
- Loading...
Overview
After a fresh install (can sometimes happen on an upgrade too) on a multiseat environment the TV Client may not able to connect to the TV-Server
Symptoms
Error Message
When the TV Client is not able to connect to the TV-Server but there is all TV program information available on the TV Server. On the client side you will get an error that the database is not available.
An error.log will be created which should have entries similar to this:
Exception :Error: DatabaseUnavailableUnclassified Gentle.Common.GentleException: The database backend (provider MySQL) could not be reached. Check the connection string: Server=localhost;Database=MpTvDb;User ID=root;Password=***;charset=utf8;Connection Timeout=300; ---> MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Exception of type 'System.Exception' was thrown. at MySql.Data.MySqlClient.NativeDriver.Open() --- End of inner exception stack trace --- at MySql.Data.MySqlClient.NativeDriver.Open() at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() at MySql.Data.MySqlClient.MySqlPool.GetConnection() at MySql.Data.MySqlClient.MySqlConnection.Open() at Gentle.Provider.MySQL.MySQLProvider.GetConnection() --- End of inner exception stack trace --- 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.MySQL.MySQLAnalyzer.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 TvPlugin.ChannelNavigator.ReLoad()MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Exception of type 'System.Exception' was thrown. at MySql.Data.MySqlClient.NativeDriver.Open() --- End of inner exception stack trace --- at MySql.Data.MySqlClient.NativeDriver.Open() at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() at MySql.Data.MySqlClient.MySqlPool.GetConnection() at MySql.Data.MySqlClient.MySqlConnection.Open() at Gentle.Provider.MySQL.MySQLProvider.GetConnection()System.Exception: Exception of type 'System.Exception' was thrown. at MySql.Data.MySqlClient.NativeDriver.Open()
No TV Guide info
If you open the TV Guide on client side you will get a picture similar to this:
Watching TV is not possible.
Resolution
You can fix this problem by yourself:
- Navigate to the folder: C:\ProgramData\TeamMediaPortal\MediaPortal TV Server (note: ProgramData is a hidden folder)
- Open gentle.config with a text editor
- Search for the line which looks similar to:
<DefaultProvider name="MySQL" connectionString="Server=localhost;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=300;" />
4. Change the red marked word above to :
<DefaultProvider name="MySQL" connectionString="Server=<NameOfMyTVServer>;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=300;" />
* *where <NameOfMyTVServer> is the name of your TVServer.
5. Save the file.
If this does not help and you still don't get a database connection look for the gentle.config in C:\ProgramData\Team MediaPortal\MediaPortal on *client side *and redo the steps above.
Summary
If the TV-Server fails to start because it can't connect to DB then the gentle.config in its own directory (C:\ProgramData\TeamMediaPortal\MediaPortal TV) needs correcting.
If the MP client fails to connect to DB then the gentle.config in its own directory (C:\ProgramData\Team MediaPortal\MediaPortal) on the client needs correcting.
Related


This page has no comments.