[mythtv-commits] Ticket #11096: Settings might be silently reset if DB is unavailable

MythTV noreply at mythtv.org
Mon Sep 17 19:13:16 UTC 2012


#11096: Settings might be silently reset if DB is unavailable
-------------------------+--------------------------------------
 Reporter:  anonymous@…  |           Type:  Bug Report - General
   Status:  new          |       Priority:  minor
Milestone:  unknown      |      Component:  MythTV - General
  Version:  0.25.2       |       Severity:  medium
 Keywords:               |  Ticket locked:  0
-------------------------+--------------------------------------
 I noticed that some of my settings (most critically 'ISO639Language0' and
 'ISO639Language1') had been reset back to 'eng' (from 'fin'). I started
 digging in my DB backups and was able to pinpoint a day when this
 happened. I then found the following entries in the mythconverg.logging
 table:

 | SaveSettingOnHost('FreqTable') - No database yet              |

 | SaveSettingOnHost('ISO639Language0') - No database yet        |

 | SaveSettingOnHost('ISO639Language1') - No database yet        |

 | SaveSettingOnHost('TVFormat') - No database yet               |

 | SaveSettingOnHost('VbiFormat') - No database yet              |

 | SaveSettingOnHost('prefDupMethod') - No database yet          |

 | SaveSettingOnHost('Country') - No database yet                |

 | SaveSettingOnHost('DateFormat') - No database yet             |

 | SaveSettingOnHost('EnableMHEG') - No database yet             |

 | SaveSettingOnHost('Language') - No database yet               |

 | SaveSettingOnHost('MythArchiveVideoFormat') - No database yet |

 | SaveSettingOnHost('ShortDateFormat') - No database yet        |

 | SaveSettingOnHost('TimeFormat') - No database yet             |

 In mythbackend log I found a bunch of DB connection issues (a few seconds
 later than the logs above):

 2012-09-14 18:00:43.237956 E [20573/17377] HttpServer245 mythdbcon.cpp:214
 (OpenDatabase) - Driver error was [1/1040]:
 QMYSQL: Unable to connect
 Database error was:
 Too many connections

 2012-09-14 18:00:43.238098 I [20573/17386] HttpServer281 mythdbcon.cpp:808
 (prepare) - MySQL server disconnected

 So, it seems that due to the DB connection problems, mythtv reset some of
 my settings back to their default setting.

 Proper behavior would be to not override DB settings with default values.

 In this case, this had quite bad consequences, because I started getting
 EIT data in the wrong language - thus a lot of recordings based on title
 were missed.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11096>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list