[mythtv-users] Database Schema Upgrade Fails with 'No Current Database Version'

David Watkins watkinshome at gmail.com
Thu Aug 11 22:49:41 UTC 2011


I've just tried to upgrade a combined BE/FE from 0.24 to 0.25.

Both old and new versions were compiled from git.

I've upgraded several times in the past wthout difficulty but this
time the database upgrade is failing with the headline error

No current database version?

..although from the log it appears to have detected the current schema
version as 1264 and the new schema version as 1280.

The backend log below is after mythbackend for the first time
following the upgrade.

If instead I run mythtv-setup I get pretty much the same thing except
that in the mythttv-setup window I see the message


About to upgrade the schema from  to 1280   (ie with a blank)


2011-08-11 23:07:54.936201 C  mythbackend version: master
[v0.25pre-3052-gf659892] www.mythtv.org
2011-08-11 23:07:54.936294 N  Enabled verbose msgs:  general
2011-08-11 23:07:54.936436 N  Setting Log Level to LOG_INFO
2011-08-11 23:07:54.936657 I  Added logging to the console
2011-08-11 23:07:54.936682 I  Added database logging to table logging
2011-08-11 23:07:54.937035 N  Setting up SIGHUP handler
2011-08-11 23:07:54.937654 N  Using runtime prefix = /usr/local
2011-08-11 23:07:54.937809 N  Using configuration directory = /root/.mythtv
2011-08-11 23:07:54.949156 N  Empty LocalHostName.
2011-08-11 23:07:54.949196 I  Using localhost value of <removed>
2011-08-11 23:08:00.171364 A  Cannot find default UPnP backend
2011-08-11 23:08:00.171474 I  Testing network connectivity to '192.168.1.85'
2011-08-11 23:08:00.172498 I  Starting process manager
2011-08-11 23:08:00.172558 I  Starting process signal handler
2011-08-11 23:08:00.172770 I  Starting IO manager (read)
2011-08-11 23:08:00.176166 I  Starting IO manager (write)
2011-08-11 23:08:00.291178 I  Database connection created: DBManager0
2011-08-11 23:08:00.291329 I  New DB connection, total: 1
2011-08-11 23:08:00.444319 I  Connected to database 'mythconverg' at
host: 192.168.1.85
2011-08-11 23:08:00.451411 I  Closing DB connection named 'DBManager0'
2011-08-11 23:08:00.452190 I  Database connection created: DBManager1
2011-08-11 23:08:00.452267 I  New DB connection, total: 1
2011-08-11 23:08:00.526544 I  Connected to database 'mythconverg' at
host: 192.168.1.85
2011-08-11 23:08:00.531912 I  Current locale en_GB
2011-08-11 23:08:00.532133 E  Reading locale defaults from
/usr/local/share/mythtv//locales/en_gb.xml
2011-08-11 23:08:00.543613 I  Database connection created: DBManager2
2011-08-11 23:08:00.543732 I  New DB connection, total: 2
2011-08-11 23:08:00.580565 I  Current MythTV Schema Version (DBSchemaVer): 1264
2011-08-11 23:08:00.580688 C  MythTV database schema is old. Waiting
to see if DB is being upgraded.
2011-08-11 23:08:01.591183 I  No current database version?
2011-08-11 23:08:02.606226 I  No current database version?
2011-08-11 23:08:03.024531 I  Connected to database 'mythconverg' at
host: 192.168.1.85
2011-08-11 23:08:03.621050 I  No current database version?
2011-08-11 23:08:04.635906 I  No current database version?
2011-08-11 23:08:05.650651 I  No current database version?
2011-08-11 23:08:05.656245 C  Timed out waiting.
2011-08-11 23:08:05.690270 E  Backing up database with script:
'/usr/local/share/mythtv/mythconverg_backup.pl'
2011-08-11 23:08:18.505285 C  Database Backup complete.
2011-08-11 23:08:18.509484 C  Backed up database to file:
'/mythtv/store/mythconverg-1264-20110811230805.sql.gz'
2011-08-11 23:08:18.526687 I  Console is non-interactive, can't prompt user...
2011-08-11 23:08:18.526723 C  Upgrading.
2011-08-11 23:08:18.527783 C  Newest MythTV Schema Version : 1280
2011-08-11 23:08:18.536839 E  Unrecognized database schema version.
Unable to upgrade database.
2011-08-11 23:08:18.536869 E  Database Schema upgrade FAILED, unlocking.
2011-08-11 23:08:18.537515 E  Couldn't upgrade database to new schema

I've done some googling but most references to the error seem to go
with corrupt databases, which I'm pretty sure I haven't got.

Any help much appreciated.

D


More information about the mythtv-users mailing list