Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#9130 closed defect (worksforme)

"trac-admin env resync" terminates prematurely

Reported by: exarkun Owned by:
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The path to my svn repository changed, so I ran resync as directed by the error in the web ui. However, the command completed claiming to be "Done." before it had actually sync'd all of the revisions. Partial transcript below:

trac-migration@cube:~/Run/trac/trac-projects/twisted$ trac-admin . resync
Resyncing repository history...
7 revisions cached.
Done.
trac-migration@cube:~/Run/trac/trac-projects/twisted$ trac-admin . resync
Resyncing repository history...
7 revisions cached.
Done.
trac-migration@cube:~/Run/trac/trac-projects/twisted$ trac-admin . resync
Resyncing repository history...
9 revisions cached.
Done.
trac-migration@cube:~/Run/trac/trac-projects/twisted$ trac-admin . resync
Resyncing repository history...
9 revisions cached.
Done.
trac-migration@cube:~/Run/trac/trac-projects/twisted$ trac-admin . resync
Resyncing repository history...
9 revisions cached.
Done.
trac-migration@cube:~/Run/trac/trac-projects/twisted$ trac-admin . resync
Resyncing repository history...
803 revisions cached.
Done.
trac-migration@cube:~/Run/trac/trac-projects/twisted$ trac-admin . resync
Resyncing repository history...
12 revisions cached.
Done.
trac-migration@cube:~/Run/trac/trac-projects/twisted$ trac-admin . resync
Resyncing repository history...
 [17717]

There are 28710 revisions in the repository. Using 0.11.6 on Linux, Python 2.5, postgresql backend.

Attachments (0)

Change History (3)

comment:1 by Remy Blank, 15 years ago

Anything special in the log? Did you shut down the web server during the resync, or did you get requests in parallel? I wonder if resyncs due to normal requests could interrupt a running resync.

in reply to:  1 comment:2 by Christian Boos, 15 years ago

Resolution: worksforme
Status: newclosed

Replying to rblank:

I wonder if resyncs due to normal requests could interrupt a running resync.

Yes they can. However, such a request should normally complete the sync, unless killed by the web front-end if it takes too much time. The next request should then continue with the sync, etc. Of course, if you do a resync meanwhile on the command line this would reset the tables and start the sync from 0 again.

As we don't have a trac-admin sync in 0.11.x like we have now in 0.12dev which simply completes a sync without resetting the tables, the best advice here is to put the web front end temporarily off line while the resync is in progress.

comment:3 by Christian Boos, 15 years ago

Now that I've seen #9129, I wonder if this couldn't also be a duplicate of #8067.

Modify Ticket

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