Edgewall Software
Modify

Opened 19 years ago

Closed 18 years ago

#2562 closed defect (wontfix)

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: Branch:
Release Notes:
API Changes:
Internal Changes:

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 (0)

Change History (3)

comment:1 by Christopher Lenz, 19 years ago

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.

comment:2 by stratosgear (at) googlemail (period) com, 19 years ago

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…

comment:3 by Christian Boos, 18 years ago

Resolution: wontfix
Status: newclosed

The ticket is probably irrelevant these days, closing.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.