Ticket #4204 (closed defect: fixed)
Resync broken
| Reported by: | M.v.Kalmthout_1@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | high | Milestone: | 0.10.3 |
| Component: | admin/console | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | trac@…, brad@… |
Attachments
Change History
comment:2 Changed 3 years ago by M.v.Kalmthout_1@…
I use a source installation using
./setup.py install --force
So I think all files should be up to date ?
I changed the script as you suggest to:
repos = self.__env.get_repository() cursor.execute("DELETE FROM system WHERE name='repository_dir'") cnx.commit()
This solves my problem IF I use the following order:
- add 'cnx.commit()'
- resync the repository history
- change the 'repository_dir'
- resync again
For your information: following order still reproduces the error
- add 'cnx.commit()'
- change the 'repository_dir'
- resync
Additional info:
- repository_dir is only changed to an 'other' scope within the previous repository.
- Python 2.4.4 (windows)
- pysqlite-2.3.2.win32-py2.4
- mod_python-3.2.10.win32-py2.4-apache2.0
Let me know if I you like me to do some additional tests or provide more info.
comment:3 Changed 3 years ago by Lutz Frommberger <trac@…>
- Cc trac@… added
I had the same issue with 4310 on a Debian Sarge with sqlite3. Let me know if you need more info.
comment:4 Changed 3 years ago by cboos
- Owner changed from cmlenz to cboos
- Priority changed from normal to high
- Status changed from new to assigned
- Milestone set to 0.10.3
No, it's OK, I can reproduce it too now... oops ;)
Sorry for the delays.
comment:6 Changed 3 years ago by cboos
- Status changed from assigned to closed
- Resolution set to fixed
Damn, first I failed to see the problem, now I forget to close it... there's something wrong with this ticket ;)
Must be the numbers...
comment:7 Changed 3 years ago by brad <brad@…>
- Cc brad@… added
- Status changed from closed to reopened
- Resolution fixed deleted
I can recreate this at r4385 in 0.10-stable branch.
> trac-admin arclib resync Resyncing repository history... Command failed: The 'repository_dir' has changed, a 'trac-admin resync' operation is needed.
comment:9 Changed 3 years ago by anonymous
- Status changed from reopened to closed
- Resolution set to fixed
okay, I'm a blockhead. I was not fully switched over from SQLite to Postgres with this project/repos/env. When I got it back fully to PG (and noted this in trac.ini), and deleted the 'repository_dir' record from 'system', things worked fine. Sorry for the noise.



I can't reproduce the problem, neither with r4303, nor with r4310, now even trying SQLite, PostgreSQL and MySQL in turn.
Are you sure that you're using a clean install? In particular, check the following: source:branches/0.10-stable/trac/scripts/admin.py@4310#L682