Opened 7 years ago
Closed 7 years ago
Last modified 7 years ago
#13079 closed Bug Report - General (fixed)
Change to MYSQL_OPT_READ_TIMEOUT causes errors when running mythfilldatabase
Reported by: | Owned by: | Peter Bennett | |
---|---|---|---|
Priority: | minor | Milestone: | 29.0 |
Component: | MythTV - General | Version: | Unspecified |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
In 119d733df13e88d8ff636730a97d1468bfde1719, there was a change to reduce MYSQL_OPT_READ_TIMEOUT to 30 seconds. This seems to cause errors when running mythfilldatabase:
2017-07-19 10:16:54.763165 I Updating programs. 2017-07-19 10:17:24.865920 E Driver error was [2/2013]: QMYSQL3: Unable to execute statement Database error was: Lost connection to MySQL server during query DB Error (Inserting into program table): Query was: INSERT IGNORE INTO program ( chanid, starttime, endtime, title, subtitle, description, showtype, category, [...]
There are more errors after reconnection since the temporary tables are gone:
2017-07-19 10:17:24.866790 I MySQL reconnected successfully: DataDirectCon 2017-07-19 10:17:24.867534 E Driver error was [2/1146]: QMYSQL3: Unable to prepare statement Database error was: Table 'mythconverg.dd_v_program' doesn't exist DB Error (Inserting into programrating table): Query was: INSERT IGNORE INTO program ( chanid, starttime, endtime, title, subtitle, description, showtype, category, [...]
If I change the timeout to 300, the errors go away. (From logs, it appears this step typically takes around 80 seconds for this particular videosource.)
Change History (6)
comment:1 Changed 7 years ago by
Owner: | set to Peter Bennett |
---|---|
Status: | new → assigned |
comment:2 Changed 7 years ago by
comment:3 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 7 years ago by
Milestone: | needs_triage → 29.0 |
---|
comment:6 Changed 7 years ago by
Owner: | changed from Peter Bennett to Peter Bennett |
---|
Note: See
TracTickets for help on using
tickets.
I changed it to reduce the amount of time the frontend hangs if the backend database is shut down. I will increase it again.