Opened 18 years ago
Closed 18 years ago
#5490 closed defect (worksforme)
cvs2svn
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | version control/browser | Version: | 0.10.3 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
Python Traceback
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
dispatcher.dispatch(req)
File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "/var/lib/python-support/python2.4/trac/versioncontrol/web_ui/browser.py", line 131, in process_request
self._render_directory(req, repos, node, rev)
File "/var/lib/python-support/python2.4/trac/versioncontrol/web_ui/browser.py", line 156, in _render_directory
changes = get_changes(self.env, repos, [i['rev'] for i in info])
File "/var/lib/python-support/python2.4/trac/versioncontrol/web_ui/util.py", line 37, in get_changes
changeset = repos.get_changeset(rev)
File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py", line 41, in get_changeset
self.authz)
File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py", line 147, in __init__
"WHERE rev=%s", (rev,))
File "/var/lib/python-support/python2.4/trac/db/util.py", line 50, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/var/lib/python-support/python2.4/trac/db/sqlite_backend.py", line 56, in execute
args or [])
File "/var/lib/python-support/python2.4/trac/db/sqlite_backend.py", line 48, in _rollback_on_error
return function(self, *args, **kwargs)
OperationalError: Could not decode to UTF-8 column 'message' with text 'Cambiamos esto de otro lugar, ya que estaba en el Head dentro de FET
Esta es la versi�n con todas las mejoras hasta la fecha
'
when i got to Browsource
Attachments (1)
Change History (10)
comment:1 by , 18 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 18 years ago
comment:3 by , 18 years ago
proho:/var/lib/trac/tiny# trac-admin proho:/var/lib/trac/tiny# trac-admin /var/lib/trac/tiny/ resync Resyncing repository history… Done.
nothing happens I got the same problem when I go into "Trunk" in Browse source
thanks.
comment:4 by , 18 years ago
could be a problem of the cvs2svn convertion? do u know if there's a GOOD scv2svn convertion how-to (hopefully with examples).
follow-up: 6 comment:5 by , 18 years ago
Replying to jcasanova@vantageglobal.com:
proho:/var/lib/trac/tiny# trac-admin proho:/var/lib/trac/tiny# trac-admin /var/lib/trac/tiny/ resync Resyncing repository history… Done.
nothing happens I got the same problem when I go into "Trunk" in Browse source
That is the second part of the fix: you first need to fix the log message in your SVN repository (if this is the source of the problem). The log message should be encoded as UTF-8
comment:6 by , 18 years ago
sorry I didn't understand you this part.. can u explain it again.
Replying to eblot:
Replying to jcasanova@vantageglobal.com:
proho:/var/lib/trac/tiny# trac-admin proho:/var/lib/trac/tiny# trac-admin /var/lib/trac/tiny/ resync Resyncing repository history… Done.
nothing happens I got the same problem when I go into "Trunk" in Browse source
That is the second part of the fix: you first need to fix the log message in your SVN repository (if this is the source of the problem). The log message should be encoded as UTF-8
comment:7 by , 18 years ago
I fixed the problem with the UTF encoding, y fixed with the —encoding=latin1 in the dump part with cvs2svn, but when get into browse source or timeline or even when I click in to a file to see the source code I get this error
Python Traceback
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
dispatcher.dispatch(req)
File "/var/lib/python-support/python2.4/trac/web/main.py", line 191, in dispatch
chosen_handler = self._pre_process_request(req, chosen_handler)
File "/var/lib/python-support/python2.4/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.4/trac/versioncontrol/api.py", line 73, in pre_process_request
self.get_repository(req.authname) # triggers a sync if applicable
File "/var/lib/python-support/python2.4/trac/versioncontrol/api.py", line 101, in get_repository
repos = self._connector.get_repository(rtype, rdir, authname)
File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py", line 260, in get_repository
crepos = CachedRepository(self.env.get_db_cnx(), repos, None, self.log)
File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py", line 34, in __init__
self.sync()
File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py", line 59, in sync
raise TracError("The 'repository_dir' has changed, "
TracError: The 'repository_dir' has changed, a 'trac-admin resync' operation is needed.
I run the resync comand, it resync and works… but then again when click in another link like roadmap or browse source it crash again.. I run the sync again it works but then i get the same error again…
any clue??
thanks
comment:9 by , 18 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Assuming it works with 0.10.4.



It looks like your SVN repository contains non-UTF8 log message.
You need to fix the log message in your SVN repostitory, then run
trac-admin resynccommand.