Edgewall Software

Ticket #2562 (closed defect: wontfix)

Opened 3 years ago

Last modified 21 months ago

Failed to upgrade trac db

Reported by: stratosgear (at) googlemail (period) com Owned by: daniel
Priority: normal Milestone:
Component: admin/console Version: 0.9.2
Severity: normal Keywords: to_sql, DatabaseManager, upgrade, 0.9.2, trac-admin
Cc:

Description

Upgrading Trac 0.8.4 to 0.9.2 and trying a:

I:\dev\tracrepos>python i:\dev\python23\Scripts\trac-admin.py i:\dev\tracrepos\testProj.db upgrade

I am getting:

Upgrade: Upgrading i:\dev\tracrepos\artipia.db to db version 16
Upgrade: Backup of old database saved in i:\dev\tracrepos\testProj.db/db/trac.db.7.bak
Please perform a "resync" after this upgrade.
Upgrade failed:  to_sql

I've found another mention of this problem, http://lists.edgewall.com/archive/trac/2005-November/005613.html, but overiding the db15.py file with the suggested on gives me:

Upgrade: Upgrading i:\dev\tracrepos\artipia.db to db version 16
Upgrade: Backup of old database saved in i:\dev\tracrepos\testProj.db/db/trac.db.
7.bak
Please perform a "resync" after this upgrade.
Upgrade failed:  cannot import name DatabaseManager

I'm running on WinXP and I have followed all the installation instructions of TracOnWindows (version numbers and all).

Finally any search on "to_sql" and "DatabaseManager?" on the Trac website does not return any usefull information.

Thanks

Attachments

Change History

Changed 3 years ago by cmlenz

Do you have any plugins installed? DatabaseManager has been added in trunk (not in the 0.9.x line), so something is messed up.

Also enable DEBUG logging and check for other messages regarding the upgrade process.

Changed 3 years ago by stratosgear (at) googlemail (period) com

Hmmm,

after adding:

[logging]
log_file = I:\dev\tracrepos\trac.log
log_level = ERROR
log_type = file

to the trac.ini file of the database I am trying to upgrade (I:\dev\tracrepos\testProj.db\conf\trac.ini) I get a zero length file, trac.log, created in the folder I specified with no debug messages inside, while I am still getting the same error while upgrading...

Changed 21 months ago by cboos

  • status changed from new to closed
  • resolution set to wontfix

The ticket is probably irrelevant these days, closing.

Add/Change #2562 (Failed to upgrade trac db)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from daniel. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.