Edgewall Software

Ticket #4137 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Trac doesn't recover from repository change

Reported by: amd@… Owned by: cboos
Priority: normal Milestone: 0.10.3
Component: version control Version: 0.10
Severity: normal Keywords:
Cc:

Description

I changed the repository of my application and after that trac gives an error message when trying to use use the timeline module:

Repository checkins event provider (ChangesetModule) failed:
NoSuchChangeset: No changeset 72 in the repository

IMHO, it should recover from this kind of error silently.

Attachments

Change History

  Changed 2 years ago by Noah Kantrowitz (coderanger) <coderanger@…>

Just run trac-admin /path/to/env resync to gather data from the new repo.

  Changed 2 years ago by cboos

Trac already tries to detect this situation, by storing the repository UUID and the scope used. In your case, what exactly has changed, did you reuse the same UUID?

  Changed 2 years ago by amd@…

I just removed the old repo and created a new one. After the trac-admin resync, things were all ok again :)

  Changed 2 years ago by cboos

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.11

Yes, and with r4252, Trac will now tell you to do so ;)

  Changed 2 years ago by cboos

  • milestone changed from 0.11 to 0.10.3

Backported in r4300.

follow-up: ↓ 7   Changed 2 years ago by anonymous

i have the same errors in 0.10.3 i already tried the resync but this doesn't solve the problem. i am just refreshing the windows several times and the error is gone. this seems to be sporadic.

in reply to: ↑ 6   Changed 2 years ago by anonymous

Replying to anonymous:

i have the same errors in 0.10.3 i already tried the resync but this doesn't solve the problem. i am just refreshing the windows several times and the error is gone. this seems to be sporadic.

sry. meant 0.10.2

  Changed 2 years ago by cboos

... so try with 0.10.3dev, source:branches/0.10-stable. Either do a checkout of the corresponding path (i.e. svn co http://svn.edgewall.org/repos/trac/branches/0.10-stable, useful for keeping up-to-date and eventually getting a follow-up fix if needed, or use the Zip archive link found at the bottom of the page linked above, for one time install.

Add/Change #4137 (Trac doesn't recover from repository change)

Author



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