home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
SOLVED - Powerscheduler stopped working, won't suspend = MySQL DB corruption
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="feizex" data-source="post: 705605" data-attributes="member: 96644"><p>Hi,</p><p></p><p>It took me a while to find this, so I thought I'd share.</p><p></p><p>I had MP setup and powerscheduler working fine. PC would suspend OK and wake up to record.</p><p></p><p>But then I had problems with a RAID card locking up the system and crashing it.</p><p></p><p>It turns out that the crashes had caused corruption in the MpTvDb database.</p><p></p><p>The corruption prevented powersheduler from suspending the machine (even though it thought it was successful). Pressing Sleep on my keyboard was seemingly ignored (except for log entries showing that powersheduler had tried to suspend). Strangely if I stopped TVservice my computer would immediately suspend.</p><p></p><p>I only found the solution because I got the following error message and decided to investigate. </p><p></p><p>[CODE]2011-01-20 23:33:26.656645 [Powerscheduler Timer(9)]: Powerscheduler: Exception in OnTimerElapsed(): The columns idProgram, idChannel, startTime, endTime, title, description, genre, state, originalAirDate, seriesNum, episodeNum, episodePart, episodeName, starRating, classification, parentalRating in table Program do not exist.</p><p>[/CODE]</p><p></p><p>Note that initially when I had the problem this did not show - I must not have corrupted this table yet. In either case using mysql to repair the table fixed it. I was getting this error though. Perhaps it was an indicator...</p><p></p><p>[CODE]2011-01-20 20:27:39.075000 [PowerEventThread(8)]: TV service PowerEventThread: Exception: System.NullReferenceException: Object reference not set to an instance of an object.</p><p> at TvService.TVController.get_CanSuspend()</p><p> at TvService.Service1.OnPowerEventHandler(PowerEventType powerStatus)</p><p> at TvService.Service1.OnPowerEvent(PowerEventType powerStatus)</p><p> at TvService.Service1.PowerEventThreadWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)</p><p> at TvService.Service1.GetMessageA(MSG& msg, IntPtr hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)</p><p> at TvService.Service1.PowerEventThread()[/CODE]</p><p></p><p>Going to MySql Workbench and trying to run a query resulted in the attached error showing..</p><p>[CODE]</p><p>Error Code: 145</p><p>Table '.\mptvdb\program' is marked as crashed and should be repaired.[/CODE]</p><p></p><p>This was a pretty good tip that there was database corruption. A bit of googling and playing later lead to me running the following command which fixed the tables. After that NO PROBLEM! FIXED! I pressed suspend and it worked straight away. </p><p></p><p>Regards,</p><p>Feizex. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p></p><p>[CODE]C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqlcheck --database MpTvDb -r --au</p><p>to-repair --user root --password</p><p>Enter password: ***********</p><p>mptvdb.canceledschedule OK</p><p>mptvdb.card OK</p><p>mptvdb.cardgroup OK</p><p>mptvdb.cardgroupmap OK</p><p>mptvdb.channel OK</p><p>mptvdb.channelgroup OK</p><p>mptvdb.channellinkagemap OK</p><p>mptvdb.channelmap OK</p><p>mptvdb.conflict OK</p><p>mptvdb.diseqcmotor OK</p><p>mptvdb.favorite OK</p><p>mptvdb.groupmap OK</p><p>mptvdb.history OK</p><p>mptvdb.keyword OK</p><p>mptvdb.keywordmap OK</p><p>mptvdb.personaltvguidemap OK</p><p>mptvdb.program</p><p>warning : Number of rows changed from 5898 to 5857</p><p>status : OK</p><p>mptvdb.radiochannelgroup OK</p><p>mptvdb.radiogroupmap OK</p><p>mptvdb.recording</p><p>warning : Number of rows changed from 23 to 22</p><p>status : OK</p><p>mptvdb.satellite OK</p><p>mptvdb.schedule OK</p><p>mptvdb.server OK</p><p>mptvdb.setting OK</p><p>mptvdb.timespan OK</p><p>mptvdb.tuningdetail OK</p><p>mptvdb.tvmoviemapping OK</p><p>mptvdb.version OK[/CODE]</p></blockquote><p></p>
[QUOTE="feizex, post: 705605, member: 96644"] Hi, It took me a while to find this, so I thought I'd share. I had MP setup and powerscheduler working fine. PC would suspend OK and wake up to record. But then I had problems with a RAID card locking up the system and crashing it. It turns out that the crashes had caused corruption in the MpTvDb database. The corruption prevented powersheduler from suspending the machine (even though it thought it was successful). Pressing Sleep on my keyboard was seemingly ignored (except for log entries showing that powersheduler had tried to suspend). Strangely if I stopped TVservice my computer would immediately suspend. I only found the solution because I got the following error message and decided to investigate. [CODE]2011-01-20 23:33:26.656645 [Powerscheduler Timer(9)]: Powerscheduler: Exception in OnTimerElapsed(): The columns idProgram, idChannel, startTime, endTime, title, description, genre, state, originalAirDate, seriesNum, episodeNum, episodePart, episodeName, starRating, classification, parentalRating in table Program do not exist. [/CODE] Note that initially when I had the problem this did not show - I must not have corrupted this table yet. In either case using mysql to repair the table fixed it. I was getting this error though. Perhaps it was an indicator... [CODE]2011-01-20 20:27:39.075000 [PowerEventThread(8)]: TV service PowerEventThread: Exception: System.NullReferenceException: Object reference not set to an instance of an object. at TvService.TVController.get_CanSuspend() at TvService.Service1.OnPowerEventHandler(PowerEventType powerStatus) at TvService.Service1.OnPowerEvent(PowerEventType powerStatus) at TvService.Service1.PowerEventThreadWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) at TvService.Service1.GetMessageA(MSG& msg, IntPtr hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax) at TvService.Service1.PowerEventThread()[/CODE] Going to MySql Workbench and trying to run a query resulted in the attached error showing.. [CODE] Error Code: 145 Table '.\mptvdb\program' is marked as crashed and should be repaired.[/CODE] This was a pretty good tip that there was database corruption. A bit of googling and playing later lead to me running the following command which fixed the tables. After that NO PROBLEM! FIXED! I pressed suspend and it worked straight away. Regards, Feizex. :D [CODE]C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqlcheck --database MpTvDb -r --au to-repair --user root --password Enter password: *********** mptvdb.canceledschedule OK mptvdb.card OK mptvdb.cardgroup OK mptvdb.cardgroupmap OK mptvdb.channel OK mptvdb.channelgroup OK mptvdb.channellinkagemap OK mptvdb.channelmap OK mptvdb.conflict OK mptvdb.diseqcmotor OK mptvdb.favorite OK mptvdb.groupmap OK mptvdb.history OK mptvdb.keyword OK mptvdb.keywordmap OK mptvdb.personaltvguidemap OK mptvdb.program warning : Number of rows changed from 5898 to 5857 status : OK mptvdb.radiochannelgroup OK mptvdb.radiogroupmap OK mptvdb.recording warning : Number of rows changed from 23 to 22 status : OK mptvdb.satellite OK mptvdb.schedule OK mptvdb.server OK mptvdb.setting OK mptvdb.timespan OK mptvdb.tuningdetail OK mptvdb.tvmoviemapping OK mptvdb.version OK[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
SOLVED - Powerscheduler stopped working, won't suspend = MySQL DB corruption
Contact us
RSS
Top
Bottom