Edgewall Software

Opened 17 years ago

Last modified 17 years ago

#5967 closed defect

problem after recreating subversion repository — at Version 2

Reported by: meinholz@… Owned by: Christian Boos
Priority: normal Milestone:
Component: version control Version: 0.10.4
Severity: normal Keywords: svn resync needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I am using trac 0.10.4 and python 2.5.1 on ubuntu. I am using the debian/ubuntu pkgs that have been installed using apt-get.

I had to delete and recreate a subversion repository after associating a trac project with the repository. I have run the command:

trac-admin /path/to/tracproj resync

This partially works. My wiki seems to be recovered and I can edit a page. However, after I have edited a wiki page, submitted the change and then attempt a second edit, I get the following error:

Python Traceback

Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 191, in dispatch
    chosen_handler = self._pre_process_request(req, chosen_handler)
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 263, in _pre_process_request
    chosen_handler = f.pre_process_request(req, chosen_handler)
  File "/var/lib/python-support/python2.5/trac/versioncontrol/api.py", line 73, in pre_process_request
    self.get_repository(req.authname).sync()
  File "/var/lib/python-support/python2.5/trac/versioncontrol/cache.py", line 82, in sync
    raise TracError("The 'repository_dir' has changed, "
TracError: The 'repository_dir' has changed, a 'trac-admin resync' operation is needed.

If I re-run the trac-admin resync, I am able to do another edit before the problem recurs.

Change History (2)

comment:1 by ThurnerRupert, 17 years ago

Resolution: duplicate
Status: newclosed

of #5788

comment:2 by Christian Boos, 17 years ago

Component: wikiversion control
Description: modified (diff)
Resolution: duplicate
Status: closedreopened

No, #5788 is about a "No such revision message" error. Here it's a different story:

The 'repository_dir' has changed, a 'trac-admin resync' operation is needed.

In the trac log, at INFO level, there must be a line like:

repository_dir' has changed from /a/b/c to /x/y/z

Can you tell from that what's wrong?

(e.g. that could be a trac-admin resync performed on a different environment than the one used by the web application, when both are sharing the same db but have different 'repository_dir' settings in their trac.ini)

Note: See TracTickets for help on using tickets.