Modify

Opened 15 years ago

Closed 15 years ago

Last modified 9 years ago

#4438 closed defect (fixed)

trac-admin /trac/path resync "fails"

Reported by: winnie@… Owned by: Herbert Valerio Riedel
Priority: high Component: GitPlugin
Severity: major Keywords:
Cc: Trac Release: 0.11

Description

Hey there,

I've a small problem with my trac which is based on git:

I've tried to do a resync of the git repro into the cache and it "fails" everytime without caching the whole content of the git repro. E.g. there are ~8000 commits inside the repro and when calling trac-admin once it states:

h1190993:/srv# trac-admin /srv/trac resync
Resyncing repository history...
177 revisions cached.8161c3e1abc71669a7c83]
Done.

The second time I call trac-admin it states:

h1190993:/srv# trac-admin /srv/trac resync
Resyncing repository history...
245 revisions cached.4659067d0523a1405e58d]
Done.

And so on. It never caches the whole repository. This is _very_ nasty since now I need to disable caching which makes the site very very slow. As this is in my eyes a showstopper for the Gitplugin setting the priority to high and the severity to major.

Please can you help me to find a fix for this issue? I'll ask also for help on the trac mailinglist if someone else have seen this error and knows a fix for this.

Greetings Winnie

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by winnie@…

Hey, today the resync runs really long but then breaks with this error msg:

Resyncing repository history...
Traceback (most recent call last):fcfa67fe]
  File "/usr/bin/trac-admin", line 8, in <module>
    load_entry_point('Trac==0.11.1', 'console_scripts', 'trac-admin')()
  File "/usr/lib/python2.5/site-packages/trac/admin/console.py", line 1295, in run
    return admin.onecmd(command)
  File "/usr/lib/python2.5/site-packages/trac/admin/console.py", line 123, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib/python2.5/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.5/site-packages/trac/admin/console.py", line 665, in do_resync
    repos = env.get_repository().sync(self._resync_feedback)
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/cache.py", line 200, in sync
    for path,kind,action,bpath,brev in cset.get_changes():
  File "/usr/lib/python2.5/site-packages/tracext/git/git_fs.py", line 432, in get_changes
    action = GitChangeset.action_map[action[0]]
KeyError: 'T'

What is going wrong here? This error makes it impossible to use trac atm with caching

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:2 Changed 15 years ago by winnie@…

Resolution: fixed
Status: newclosed

Not taking the version which is shipped inside debian fixed this issue. Sorry for the noise

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.