Recently updated my server to a clean instal of 1.2.3, all databases and files. All previous MP releases used didn't have this problem. 1.2.2 was fine but I will reinstal and test again.
2012-05-22 23:00:50.779125 [EPG Update thread(21)]: Tvservice stopped due to an unhandled app domain exception Error: StatementErrorUnclassified
Gentle.Common.GentleException: select idProgram, idChannel, startTime, endTime, title, description, genre, [state], originalAirDate, seriesNum, episodeNum, episodePart, episodeName, starRating, classification, parentalRating from Program where title = @title and startTime = @startTime and endTime = @endTime and idChannel = @idChannel; ---> System.Data.SqlClient.SqlException: Transaction (Process ID 54) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
It is possibly linked to this error in the EPG update logs
2012-05-22 22:59:35.622875 [EPG Update thread(21)]: Exception in Program.Persist() with Message insert into Program ( idChannel, startTime, endTime, title, description, genre, [state], originalAirDate, seriesNum, episodeNum, episodePart, episodeName, starRating, classification, parentalRating ) values ( @idChannel, @startTime, @endTime, @title, @description, @genre, @state, @originalAirDate, @seriesNum, @episodeNum, @episodePart, @episodeName, @starRating, @classification, @parentalRating ); select SCOPE_IDENTITY();
It looks like there is now a conflict as multiple TIMESHIFT EPG update threads access the database at the same time which causes the exception and the TVService stops in a forced manner.
I have the TVservice set to restart on errors so the impact is lessened.
I will try and get 1.2.2 to a similar situation this evening and see if it produces the same result, more logs to follow and better initial logs from 1.2.3 as I am working remotely and don't have a clean connection to the server via remote desktop so just working from network folders.
2012-05-22 23:00:50.779125 [EPG Update thread(21)]: Tvservice stopped due to an unhandled app domain exception Error: StatementErrorUnclassified
Gentle.Common.GentleException: select idProgram, idChannel, startTime, endTime, title, description, genre, [state], originalAirDate, seriesNum, episodeNum, episodePart, episodeName, starRating, classification, parentalRating from Program where title = @title and startTime = @startTime and endTime = @endTime and idChannel = @idChannel; ---> System.Data.SqlClient.SqlException: Transaction (Process ID 54) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
It is possibly linked to this error in the EPG update logs
2012-05-22 22:59:35.622875 [EPG Update thread(21)]: Exception in Program.Persist() with Message insert into Program ( idChannel, startTime, endTime, title, description, genre, [state], originalAirDate, seriesNum, episodeNum, episodePart, episodeName, starRating, classification, parentalRating ) values ( @idChannel, @startTime, @endTime, @title, @description, @genre, @state, @originalAirDate, @seriesNum, @episodeNum, @episodePart, @episodeName, @starRating, @classification, @parentalRating ); select SCOPE_IDENTITY();
It looks like there is now a conflict as multiple TIMESHIFT EPG update threads access the database at the same time which causes the exception and the TVService stops in a forced manner.
I have the TVservice set to restart on errors so the impact is lessened.
I will try and get 1.2.2 to a similar situation this evening and see if it produces the same result, more logs to follow and better initial logs from 1.2.3 as I am working remotely and don't have a clean connection to the server via remote desktop so just working from network folders.