Edgewall Software
Modify

Opened 18 years ago

Closed 16 years ago

#5048 closed defect (worksforme)

Cannot operate on a closed database

Reported by: Emmanuel Blot Owned by: Christian Boos
Priority: normal Milestone:
Component: admin/console Version: devel
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

There is a small issue with trac-admin when upgrade is followed by a resync command.

This is a very minor issue as exiting/restarting the administration console bypasses the issue.

python2.4 trac/admin/console.py /local/db/trac/project
Welcome to trac-admin 0.11dev-r208
Interactive Trac administration console.
Copyright (c) 2003-2007 Edgewall Software

Type:  '?' or 'help' for help on commands.

Trac [/local/db/trac/project]> upgrade
Upgrade done.
Trac [/local/db/trac/project]> resync
Resyncing repository history...
Command failed: Cannot operate on a closed database.
Trac [/local/db/trac/project]> quit

r208 here matches [5148].

Attachments (0)

Change History (6)

comment:1 by Christian Boos, 18 years ago

Milestone: 0.10.4
Owner: changed from Christopher Lenz to Christian Boos
Priority: lowestnormal

Ok, noted.

Btw, 0.11dev-r208, does that mean you're a happy SVK user? ;-)

in reply to:  1 comment:2 by Emmanuel Blot, 18 years ago

Replying to cboos:

Btw, 0.11dev-r208, does that mean you're a happy SVK user? ;-)

Not at all, I've never used SVK.

However as our Trac is a bit "customized" (the kind of customization that is hard to achieve with plugins) I maintain a SVN repository for our Trac, and the official Trac repos is mirrored in a local vendor branch with the help of svn:externals. I sync our repos with Trac's about once a week (which means that we use the latest Trac 0.11dev for real in a 9 people C++ dev team).

comment:3 by Christian Boos, 18 years ago

Back to the issue… it's strange, I couldn't reproduce this, nor do I see an obvious "close" on the db. What backend are you using? Is this 100% reproducible for you?

in reply to:  3 comment:4 by Emmanuel Blot, 18 years ago

Replying to cboos:

Back to the issue… it's strange, I couldn't reproduce this, nor do I see an obvious "close" on the db. What backend are you using? Is this 100% reproducible for you?

The config is SQLite 3, FSFS, Subversion 1.4.2, Python 2.4, Linux/Debian. The repositories have "real" 1.4.2 repository (I mean that I've dump&recreated them when I've upgraded to SVN 1.4.x, in order to take advantage of the embedded changeset compression of the 1.4 series).

There are about 2500 changesets in the repository, and the 'resync' took quite a while (about 15 minutes), while the 'upgrade' took about 1 minute.

Fully reproducible I can't tell, as I had only one repository to sync.

comment:5 by Christian Boos, 18 years ago

Milestone: 0.10.40.10.5

comment:6 by Christian Boos, 16 years ago

Milestone: 0.10.6
Resolution: worksforme
Status: newclosed

Well, looks like nobody else ever had that issue, closing.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.