[mythtv-commits] Ticket #9983: [PATCH] Fix upgrade from an empty database

MythTV noreply at mythtv.org
Thu Aug 11 11:15:41 UTC 2011


#9983: [PATCH] Fix upgrade from an empty database
-------------------------------------------------+-------------------------
 Reporter:  Lawrence Rust <lvr@…>                |          Owner:  danielk
     Type:  Patch - Bug Fix                      |         Status:  new
 Priority:  minor                                |      Milestone:  unknown
Component:  MythTV - Mythtv-setup                |        Version:  Trunk
 Severity:  medium                               |  Head
 Keywords:  database upgrade                     |     Resolution:
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------

Comment (by Lawrence Rust <lvr@…>):

 No, it isn't fixed:

 {{{
 2011-08-11 13:11:35.626483 I  No current database version?
 2011-08-11 13:11:35.644966 C  MythTV database schema is old. Waiting to
 see if DB is being upgraded.
 2011-08-11 13:11:36.653640 I  No current database version?
 2011-08-11 13:11:36.653703 I  Database connection created: DBManager2
 2011-08-11 13:11:36.653735 I  New DB connection, total: 2
 2011-08-11 13:11:36.657363 I  Connected to database 'test' at host: mac
 2011-08-11 13:11:36.677379 I  Database connection created: DBManager3
 2011-08-11 13:11:36.677416 I  New DB connection, total: 3
 2011-08-11 13:11:36.680978 I  Connected to database 'test' at host: mac
 2011-08-11 13:11:37.735033 I  Current MythTV Schema Version (DBSchemaVer):
 1226
 2011-08-11 13:11:38.745884 I  Current MythTV Schema Version (DBSchemaVer):
 1226
 2011-08-11 13:11:39.756360 I  Current MythTV Schema Version (DBSchemaVer):
 1226
 2011-08-11 13:11:40.766854 I  Current MythTV Schema Version (DBSchemaVer):
 1226
 2011-08-11 13:11:40.767228 C  Timed out waiting.
 2011-08-11 13:11:40.811345 E  SG(DB Backups): Unable to find any Storage
 Group Directories.  Using hardcoded default value of '/mnt/store'
 2011-08-11 13:11:40.811404 E  SG(DB Backups): FindNextDirMostFree:
 '/mnt/store' does not exist!
 2011-08-11 13:11:40.818387 E  Backing up database with script:
 '/home/lvr/Projects/myth/mythinstall/share/mythtv/mythconverg_backup.pl'
 2011-08-11 13:11:41.997263 C  Database Backup complete.
 2011-08-11 13:11:41.997574 C  Backed up database to file:
 '/tmp/test-1226-20110811131140.sql.gz'
 2011-08-11 13:11:44.540146 C  Newest MythTV Schema Version : 1280
 2011-08-11 13:11:44.552310 E  Unrecognized database schema version. Unable
 to upgrade database.
 2011-08-11 13:11:44.552316 E  Database Schema upgrade FAILED, unlocking.
 2011-08-11 13:11:44.552929 E  Couldn't upgrade database to new schema.
 }}}

 I believe that commit 8e783b75bf4 might have fixed the lockSchema issue
 but doesn't fix problem #1 (MythDB::GetSetting)

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9983#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list