Warning: Can't synchronize with the repository (Unsupported version control system "mtn": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #3 (closed enhancement: invalid)

Opened 5 years ago

Last modified 8 months ago

0.10.3 broken against head of trac-monotone

Reported by: ssamuel@… Owned by: moschny
Priority: major Component: tracmtn
Version: 0.0.7 Keywords: <Key>
Cc:

Description

Running trac 0.10.3 against the head of trac monotone available on venge.net (is this the right place to get it?) Immediately get the following error when clicking on browse source:

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.py", line 100, in process_request

rev_or_latest = rev or repos.youngest_rev

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 189, in <lambda>

youngest_rev = property(lambda x: x.get_youngest_rev())

File "/usr/lib/python2.4/site-packages/TracMonotone-0.0.2-py2.4.egg/tracvc/mtn/backend.py", line 170, in get_youngest_rev

return leaves[dates[-1]]

IndexError: list index out of range

Attachments

Change History

follow-up: ↓ 2   Changed 5 years ago by moschny

  • priority changed from blocker to major

This is most likely a configuration problem. If your webserver uses multiple processes to serve your trac instance, you must use the bsddb3 caching backend. The dbmshelve backend cannot be used in multi-process environment.

in reply to: ↑ 1   Changed 5 years ago by ssamuel@…

Replying to moschny: I'm running tracd, so I don't think this applies (only one process). I tried adding the dbmshelve backend as suggested, but still got the same error.

  Changed 5 years ago by anonymous

  • cc ssamuel@… added

  Changed 5 years ago by moschny

Please try the latest version from venge.net (sorry, no downloads here yet) and flush (i.e. remove) the cache before running it. Also, make sure that tracd can write to the cache dir.

Did you properly set the path to the monotone binary in your trac.conf? The path must be absolute.

And, does your database to be served contain revisions at all? I think TracMtn misbehaves in the case of an empty database.

The error message you gave indicates that the output of 'mtn -d your.db automate leaves' was empty (and this output is not cached), so maybe you should try that command by hand.

  Changed 5 years ago by ssamuel@…

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

After upgrading to 0.32 everything looks good. Marking as invalid. Thanks for your help.

Add/Change #3 (0.10.3 broken against head of trac-monotone)

Author


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


Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.