Opened 18 years ago
Closed 18 years ago
#4204 closed defect (fixed)
Resync broken
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | high | Milestone: | 0.10.3 |
Component: | admin/console | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | trac@…, brad@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Attachments (0)
Change History (9)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
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 by , 18 years ago
Cc: | added |
---|
I had the same issue with 4310 on a Debian Sarge with sqlite3. Let me know if you need more info.
comment:4 by , 18 years ago
Milestone: | → 0.10.3 |
---|---|
Owner: | changed from | to
Priority: | normal → high |
Status: | new → assigned |
No, it's OK, I can reproduce it too now… oops ;)
Sorry for the delays.
comment:6 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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 by , 18 years ago
Cc: | added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
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:8 by , 18 years ago
comment:9 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
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
cnx.commit()
immediately after theexecute
help?