Opened 17 years ago
Last modified 17 years ago
#6210 closed defect
Major problem with out of synch Trac and SVN Repository. — at Initial Version
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | general | Version: | 0.10.3.1 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
We have just had to restore a server from backup which held our Trac Python engine and SVN Repository on its C: drive. The physical SVN Folders and PostgreSQL database (Trac) are on a seperate E: drive.
The end result is that the SVN repo. only holds information up to the last backup/snapshot at Oct 17th 9:25 am, while the actual files on E: are the latest commits performed up until Oct 18th at approx. 4:00pm. So Trac appears to be pretty upset with not being able to see the latest SVN Changeset in the now out of date Repository. Hence we see the error message below, everytime we try to access our Trac project.
I know that this is mostly an SVN Repo. problem but I thought it worth while to let you see the Python Traceback and hope that someone may have had to deal with this sort of problem before.
Python Traceback Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\trac\web\main.py", line 387, in dispatch_request
dispatcher.dispatch(req)
File "C:\Python24\Lib\site-packages\trac\web\main.py", line 191, in dispatch
chosen_handler = self._pre_process_request(req, chosen_handler)
File "C:\Python24\Lib\site-packages\trac\web\main.py", line 263, in _pre_process_request
chosen_handler = f.pre_process_request(req, chosen_handler)
File "C:\Python24\Lib\site-packages\trac\versioncontrol\api.py", line 73, in pre_process_request
self.get_repository(req.authname) # triggers a sync if applicable
File "C:\Python24\Lib\site-packages\trac\versioncontrol\api.py", line 101, in get_repository
repos = self._connector.get_repository(rtype, rdir, authname)
File "C:\Python24\Lib\site-packages\trac\versioncontrol\svn_fs.py", line 260, in get_repository
crepos = CachedRepository(self.env.get_db_cnx(), repos, None, self.log)
File "C:\Python24\Lib\site-packages\trac\versioncontrol\cache.py", line 34, in init
self.sync()
File "C:\Python24\Lib\site-packages\trac\versioncontrol\cache.py", line 78, in sync
current_rev = self.repos.next_rev(youngest_stored)
File "C:\Python24\Lib\site-packages\trac\versioncontrol\svn_fs.py", line 393, in next_rev
rev = self.normalize_rev(rev)
File "C:\Python24\Lib\site-packages\trac\versioncontrol\svn_fs.py", line 334, in normalize_rev
raise NoSuchChangeset(rev)
NoSuchChangeset: No changeset 1515 in the repository