Edgewall Software

Ticket #5490 (closed defect: worksforme)

Opened 19 months ago

Last modified 14 months ago

cvs2svn

Reported by: jcasanova@… Owned by: cboos
Priority: high Milestone:
Component: version control/browser Version: 0.10.3
Severity: normal Keywords:
Cc:

Description (last modified by eblot) (diff)

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

trac.jpg (155.8 KB) - added by jcasanova@… 19 months ago.
This is a shot of the problem

Change History

  Changed 19 months ago by eblot

  • description modified (diff)

  Changed 19 months ago by eblot

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 resync command.

Changed 19 months ago by jcasanova@…

This is a shot of the problem

  Changed 19 months ago by jcasanova@…

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.

  Changed 19 months ago by jcasanova@…

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   Changed 19 months ago by 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

in reply to: ↑ 5   Changed 19 months ago by jcasanova@…

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

  Changed 19 months ago by jcasanova@…

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

  Changed 19 months ago by cboos

Upgrade to 0.10.4, see TracDownload.

  Changed 14 months ago by cboos

  • status changed from new to closed
  • resolution set to worksforme

Assuming it works with 0.10.4.

Add/Change #5490 (cvs2svn)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.