Opened 12 years ago

Closed 12 years ago

#10831 closed Bug Report - Crash (Upstream Bug)

Corrupted record in database

Reported by: dhighley@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - General Version: 0.25
Severity: medium Keywords: msql corrupt record
Cc: Ticket locked: no

Description (last modified by Raymond Wagner)

mythbackend version: fixes/0.25 [0.25-6.fc16

MythBackend?: Starting up as the master server.

2012-06-13 19:12:30.690212 E [1675/1675] CoreContext mythdbcon.cpp:823 (prepare) - Error preparing query: SELECT DISTINCT LEFT(programid, LOCATE('/', programid)) FROM oldrecorded WHERE programid <> ''
2012-06-13 19:12:30.690241 E [1675/1675] CoreContext mythdbcon.cpp:825 (prepare) - Driver error was [2/145]:
QMYSQL3: Unable to prepare statement
Database error was:
Table './mythconverg/oldrecorded' is marked as crashed and should be repaired
2012-06-13 19:12:30.690272 E [1675/1675] CoreContext mythdb.cpp:192 (DBError) - DB Error (CheckProgramIDAuthorities):
Query was:
SELECT DISTINCT LEFT(programid, LOCATE('/', programid)) FROM oldrecorded WHERE programid <> ''
No error type from QSqlError?  Strange...
2012-06-13 19:12:30.690284 I [1675/1675] CoreContext programinfo.cpp:2052 (CheckProgramIDAuthorities) - Found 1 distinct programid authorities
2012-06-13 19:12:30.690528 I [1675/2430] Scheduler mythdbcon.cpp:422 (getStaticCon) - New static DB connectionSchedCon
2012-06-13 19:12:30.695036 E [1675/2430] Scheduler mythdbcon.cpp:823 (prepare) - Error preparing query: UPDATE oldrecorded SET recstatus = :RSABORTED   WHERE recstatus = :RSRECORDING OR recstatus = :RSTUNING
2012-06-13 19:12:30.695049 E [1675/2430] Scheduler mythdbcon.cpp:825 (prepare) - Driver error was [2/145]:
QMYSQL3: Unable to prepare statement

Attachments (1)

corrupt_record.pdf (40.3 KB) - added by dhighley@… 12 years ago.
PDF showing partial mysql.php trace back

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by dhighley@…

Attachment: corrupt_record.pdf added

PDF showing partial mysql.php trace back

comment:1 Changed 12 years ago by dhighley@…

Note: was able to fix the database by doing the following: mysqlcheck -r -umythtv -p<password> mythconverg

Documented here: http://www.mythtv.org/docs/mythtv-HOWTO-22.html

comment:2 Changed 12 years ago by Raymond Wagner

Description: modified (diff)
Priority: majorminor
Resolution: Upstream Bug
Severity: highmedium
Status: newclosed
Note: See TracTickets for help on using tickets.