Opened 11 years ago

Closed 11 years ago

#6429 closed defect (invalid)

mythweb reports error

Reported by: eric678@… Owned by: xris
Priority: minor Milestone: unknown
Component: Plugin - MythWeb Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I clicked on a future date in mythweb (12 days from today) and this error appeared.

Backtrace:

datetime: 2009-04-06 20:41:11 (EDT) errornum: 256

error type: User Error

error string: SQL Error: Table 'program' is marked as crashed and should be repaired #1194

filename: /usr/share/mythtv/mythweb/objects/Database/Query/mysql.php

error line: 83

==========================================================================

Backtrace:

file: /usr/share/mythtv/mythweb/objects/Database/Query/mysql.php line: 83

class:

function: trigger_error

type: args: Array

(

[0] => SQL Error: Table 'program' is marked as crashed and should be repaired #1194 [1] => 256

)

file: /usr/share/mythtv/mythweb/objects/Database.php line: 261

class: Database_Query_mysql

function: execute

type: -> args: Array

(

[0] => Array ( )

)

file: /usr/share/mythtv/mythweb/modules/tv/includes/programs.php line: 169

class: Database

function: query

type: -> args: Array

(

[0] => SELECT program.*,

UNIX_TIMESTAMP(program.starttime) AS starttime_unix, UNIX_TIMESTAMP(program.endtime) AS endtime_unix, IFNULL(programrating.system, "") AS rater, IFNULL(programrating.rating, "") AS rating, channel.callsign, channel.channum

FROM program

LEFT JOIN programrating USING (chanid, starttime) LEFT JOIN channel ON program.chanid = channel.chanid LEFT JOIN credits ON (program.chanid = credits.chanid AND program.starttime = credits.starttime) LEFT JOIN people ON (credits.person = people.person)

WHERE program.chanid IN (3145,1002,1003,1004,1005,1006,1007,2072,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1057,1069,1070,1071,1072,2740,2742,2743,2744,2745,2780,2790,2800,2799,2821,2830,2822,2823,2824,2825,2826,2827,2828,2829,2832,2840,2833,2834,2835,2836,2837,2839,1095,1096,1099,1100,3144,2831,2442,2444,2443,2022,2820,2051,2251,2071,2561,2741,2381) AND (program.endtime > FROM_UNIXTIME('1240012800') AND program.starttime < FROM_UNIXTIME('1240023600') AND program.starttime != program.endtime)

GROUP BY channel.callsign, program.chanid, program.starttime ORDER BY program.starttime )

file: /usr/share/mythtv/mythweb/modules/tv/list.php line: 49

class:

function: load_all_program_data

type: args: Array

(

[0] => 1240012800 [1] => 1240023600

)

file: /usr/share/mythtv/mythweb/modules/tv/handler.php line: 85

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/modules/tv/list.php

)

file: /usr/share/mythtv/mythweb/mythweb.php line: 28

class:

function: require_once

type: args: Array

(

[0] => /usr/share/mythtv/mythweb/modules/tv/handler.php

)

==========================================================================

$_POST: Array (

[ajax] => true [time] => 1240012800

)

==========================================================================

$_SESSION: Array (

[language] => English [tmpl] => default [skin] => default [prefer_channum] => 1 [date_statusbar] => %a %b %e, %Y, %I:%M %p [date_scheduled] => %a %b %e, %Y (%I:%M %p) [date_scheduled_popup] => %a %b %e, %Y [date_recorded] => %a %b %e, %Y (%I:%M %p) [date_search] => %a %b %e, %Y, %I:%M %p [date_listing_key] => %a %b %e, %Y, %I:%M %p [date_listing_jump] => %a %b %e, %Y [date_channel_jump] => %a %b %e, %Y [date_job_status] => %a %b %e, %Y, %I:%M %p [time_format] => %I:%M %p [recorded_pixmaps] => 1 [guide_favonly] => [timeslot_size] => 300 [num_time_slots] => 36 [timeslot_blocks] => 3 [timeslotbar_skip] => 20 [max_stars] => 4 [star_character] => &diams; [show_popup_info] => 1 [show_channel_icons] => 1 [sortby_channum] => 1 [show_video_covers] => 1 [tv] => Array

(

[last] => Array

(

[0] => list

)

)

[list_time] => 1240012800

)

==========================================================================

$_SERVER: Array (

[REDIRECT_STATUS] => 200 [HTTP_HOST] => 192.168.10.120 [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 GTB5 (.NET CLR 3.5.30729) [HTTP_ACCEPT] => text/javascript, text/html, application/xml, text/xml, */* [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5 [HTTP_ACCEPT_ENCODING] => gzip,deflate [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7 [HTTP_KEEP_ALIVE] => 300 [HTTP_CONNECTION] => keep-alive [HTTP_X_REQUESTED_WITH] => XMLHttpRequest [HTTP_X_PROTOTYPE_VERSION] => 1.6.0.2 [CONTENT_TYPE] => application/x-www-form-urlencoded; charset=UTF-8 [HTTP_REFERER] => http://192.168.10.120/mythweb/tv/list [CONTENT_LENGTH] => 25 [HTTP_COOKIE] => mythweb_id=08216df3c8fb7b8b812f1b7c1b6d24ca [HTTP_PRAGMA] => no-cache [HTTP_CACHE_CONTROL] => no-cache [PATH] => /usr/local/bin:/usr/bin:/bin [SERVER_SIGNATURE] => <address>Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at 192.168.10.120 Port 80</address>

[SERVER_SOFTWARE] => Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch [SERVER_NAME] => 192.168.10.120 [SERVER_ADDR] => 192.168.10.120 [SERVER_PORT] => 80 [REMOTE_ADDR] => 192.168.10.194 [DOCUMENT_ROOT] => /var/www [SERVER_ADMIN] => webmaster@localhost [SCRIPT_FILENAME] => /var/www/mythweb/mythweb.php [REMOTE_PORT] => 60622 [REDIRECT_URL] => /mythweb/tv/list [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => POST [QUERY_STRING] => [REQUEST_URI] => /mythweb/tv/list [SCRIPT_NAME] => /mythweb/mythweb.php [PATH_INFO] => /tv/list [PATH_TRANSLATED] => /var/www/tv/list [PHP_SELF] => /mythweb/mythweb.php/tv/list [REQUEST_TIME] => 1239064870 [argv] => Array ( ) [argc] => 0 [STATUS] => 200 [URL] => /mythweb/tv/list

)

Change History (2)

comment:1 Changed 11 years ago by Nick Morrott <knowledgejunkie (at) gmail (dot) com>

MythWeb is reporting that you have a SQL error:

"SQL Error: Table 'program' is marked as crashed and should be repaired #1194"

Please check the health of your database (you can use mysqlcheck or the optimise_mythdb.pl script in MythTV's contrib/ directory). Repair any bad tables, and then retry the activity in MythWeb.

You can run optimize_mythdb.pl daily via a cron job - this should help to keep your database in good health.

comment:2 Changed 11 years ago by Dibblah

Resolution: invalid
Status: newclosed

As above - This is a database error.

Note: See TracTickets for help on using tickets.