Can't start live tv after restart (4 Viewers)

radical

Portal Pro
December 16, 2010
1,465
193
Home Country
Germany Germany
This one?
 

Attachments

  • Server.PNG
    Server.PNG
    23.4 KB

radical

Portal Pro
December 16, 2010
1,465
193
Home Country
Germany Germany
Solution: delay the start of the TV service until your network adaptor has received the IP address.

Tested this Workaround and it seems to work. But now TV-Service is needing nearly 4 Minutes to start after reboot, instead of 1 Minute on default Setting.
I would try another dependency, but as far I understand "Netman" Service is responsible for the ip. And on this Service a dependency is allready set.
 

Vasilich

Portal Pro
August 30, 2009
3,392
1,173
Germany, Mayence
Home Country
Russian Federation Russian Federation
try to set dependency on netman for your sql server, and then set dependency on SQL for TVServer. "Automatic(delayed)" variant also should be set for TVServer.
 

radical

Portal Pro
December 16, 2010
1,465
193
Home Country
Germany Germany

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Tested this Workaround and it seems to work. But now TV-Service is needing nearly 4 Minutes to start after reboot, instead of 1 Minute on default Setting.
    I would try another dependency, but as far I understand "Netman" Service is responsible for the ip. And on this Service a dependency is allready set.
    Yes, the dependency on Netman is meant to ensure that the IP address has been assigned before the TV service will start. I can't understand why it would take so long for an IP address to be assigned - especially if you've set a static IP address. Something seems really wrong there.
     

    radical

    Portal Pro
    December 16, 2010
    1,465
    193
    Home Country
    Germany Germany
    use xPerf for this if you want to see what prevents fast start

    1,7 GB download for using a little boot protocol tool? o_O
    At the moment I'm going to have to live with delayed start, Yesterdays testing ended in full crash.
    Code:
    [2014-02-06 23:10:51,605] [Log    ] [PS StandbyWakeup] [DEBUG] - PS: LoadSettings()
    [2014-02-06 23:11:15,722] [Log    ] [PS StandbyWakeup] [INFO ] - Tvservice stopped due to an unhandled app domain exception Error: DatabaseUnavailableUnclassified
    Gentle.Common.GentleException: The database backend (provider MySQL) could not be reached.
    Check the connection string: Server=TV-Server;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=30; ---> MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Eine Ausnahme vom Typ "System.Exception" wurde ausgelöst.
       bei MySql.Data.MySqlClient.NativeDriver.Open()
       --- Ende der internen Ausnahmestapelüberwachung ---
       bei MySql.Data.MySqlClient.NativeDriver.Open()
       bei MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
       bei MySql.Data.MySqlClient.MySqlPool.CheckoutConnection()
       bei MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
       bei MySql.Data.MySqlClient.MySqlPool.GetConnection()
       bei MySql.Data.MySqlClient.MySqlConnection.Open()
       bei Gentle.Provider.MySQL.MySQLProvider.GetConnection()
       --- Ende der internen Ausnahmestapelüberwachung ---
       bei Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String msg)
       bei Gentle.Common.Check.Fail(Exception e, Error error, Object[] args)
       bei Gentle.Provider.MySQL.MySQLProvider.GetConnection()
       bei Gentle.Framework.PersistenceBroker.Execute(SqlStatement stmt, IDbConnection dbConnection, IDbTransaction dbTransaction)
       bei TvDatabase.TvBusinessLayer.GetSetting(String tagName, String defaultValue)
       bei TvEngine.PowerScheduler.PowerScheduler.LoadSettings()
       bei TvEngine.PowerScheduler.PowerScheduler.StandbyWakeupThread()
       bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bei System.Threading.ThreadHelper.ThreadStart()MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Eine Ausnahme vom Typ "System.Exception" wurde ausgelöst.
       bei MySql.Data.MySqlClient.NativeDriver.Open()
       bei MySql.Data.MySqlClient.NativeDriver.Open()
       bei MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
       bei MySql.Data.MySqlClient.MySqlPool.CheckoutConnection()
       bei MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
       bei MySql.Data.MySqlClient.MySqlPool.GetConnection()
       bei MySql.Data.MySqlClient.MySqlConnection.Open()
       bei Gentle.Provider.MySQL.MySQLProvider.GetConnection()System.Exception: Eine Ausnahme vom Typ "System.Exception" wurde ausgelöst.
       bei MySql.Data.MySqlClient.NativeDriver.Open()
    [2014-02-06 23:11:16,393] [Log    ] [TVService] [INFO ] - TvService is being stopped
    [2014-02-06 23:11:16,814] [Log    ] [TVService] [INFO ] - TV Service: stopping
    [2014-02-06 23:11:16,814] [Log    ] [TVService] [INFO ] - TV Service: Stop plugins
    [2014-02-06 23:11:16,814] [Log    ] [TVService] [INFO ] - PS: Stopping PowerScheduler server plugin...
    [2014-02-06 23:11:18,296] [Log    ] [scheduler thread] [ERROR] - RecordingDetail: exception occured Error: DatabaseUnavailableUnclassified


    In near future I'll maybe make a full clean installation.
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,392
    1,173
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    1,7 GB download for using a little boot protocol tool?
    if you want it - i can give you xperf setup only, 21MB

    The database backend (provider MySQL) could not be reached.
    MySQL is either crashed or not started yet. Nothing to do with MP itself.
     

    Users who are viewing this thread

    Top Bottom