DJBlu any ideas how to stop this :
My tvservice has been crashing the last few days.
I got this from the log
If I am correct the tvservice stopped due to what I have highlighted in bold ?
It crashed when it was updating the sky epg using your grabber
Now it seems to be to do with my mysql database . So what is there I can do. It seems to be to do with timeout.
How can I increase the timeout ?
Also for any other issues, if something like this ever happens how can I get the TVService to restart automatically instead of me manually having to restart it ??
As sometimes I don't notice or I am away and recordings won't start because tvservice has crashed and is not running
Thanks
My tvservice has been crashing the last few days.
I got this from the log
If I am correct the tvservice stopped due to what I have highlighted in bold ?
It crashed when it was updating the sky epg using your grabber
2012-05-08 06:57:43.727538 [(28)]: Tvservice stopped due to an unhandled app domain exception Error: StatementErrorUnclassified
Gentle.Common.GentleException: select p.* from Program p inner join Channel c on c.idChannel = p.idChannel where ((EndTime > '2012-05-08 06:57:13' and EndTime < '2012-05-09 06:57:13') or (StartTime >= '2012-05-08 06:57:13' and StartTime <= '2012-05-09 06:57:13') or (StartTime <= '2012-05-08 06:57:13' and EndTime >= '2012-05-09 06:57:13')) and c.visibleInGuide = 1 order by startTime ---> MySql.Data.MySqlClient.MySqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
--- End of inner exception stack trace ---
at Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
at Gentle.Framework.PersistenceBroker.Execute(SqlStatement stmt, IDbConnection dbConnection, IDbTransaction dbTransaction)
at Gentle.Framework.SqlStatement.Execute()
at TvDatabase.TvBusinessLayer.GetPrograms(DateTime startTime, DateTime endTime)
at Sky_UK_Channel_and_EPG_Grabber.SkyGrabber.UpdateEPG()
at Sky_UK_Channel_and_EPG_Grabber.SkyGrabber.UpdateDataBase(Boolean err, String errormessage)
at Custom_Data_Grabber.CustomDataGRabber.ProcessPackets(String Filename)
at Custom_Data_Grabber.CustomDataGRabber.GrabData1(Object[] ChannelID1)
at Custom_Data_Grabber.CustomDataGRabber._Lambda$__1(Object a0)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)MySql.Data.MySqlClient.MySqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
Now it seems to be to do with my mysql database . So what is there I can do. It seems to be to do with timeout.
How can I increase the timeout ?
Also for any other issues, if something like this ever happens how can I get the TVService to restart automatically instead of me manually having to restart it ??
As sometimes I don't notice or I am away and recordings won't start because tvservice has crashed and is not running
Thanks