Mantis to Trac migration

Mantis and Trac are both bug tracking systems. A bug tracking system is a software application that is designed to help quality assurance and programmers keep track of reported software bugs in their work. It may be regarded as a sort of issue tracking system (Wikipedia). In this article we will use Trac's alias for an issue: Ticket.

mantis_logo

Recently I decided to replace Mantis installation used for one of my customers into Trac. Mantis worked pretty well until the date, but had missing features when compared to Trac:

  • Trac supports Wiki syntax both in standalone wiki pages and inside tasks and comments
  • Trac's reports and queries are superb! You can easily create custom views of Your tickets and even place it inside Your Wiki pages! Wow!
  • Has integration with many version control systems – I'm going to use git integration (existing GIT-based projects)

On the other hand Mantis has some benefits over Trac:

  • Comments could be edited after adding (sometimes I need to update my comment, to clarify it for instance)
  • Authorisation is configurable (you can restricts access even to single comment)
  • You can disable e-mail notifications about Your actions (Trac sends everything)

Migration

First of all you have to create Your Trac project:

$ trac-admin /path/to/myproject initenv

Trac supports importing Mantis database by using this script. There are few small defects in import script so execution is not straightforward (you have to change current directory to Trac project directory):

$ cd <trac-project-directory>
$ python ../mantis2trac.py –clean –db <mysql-mantis-database> –tracenv ./ -u <mysql-user> -p<mysql-password>

And finally you have to deploy Trac somewhere. Trac supports the following deployment methods:

  • standalone server
  • mod_python (Apache)
  • cgi
  • fastcgi
  • mod_wsgi

I selected FastCgi (as it's two times faster than CGI and less web-server dependant than mod_python):

$ trac-admin /path/to/env deploy /path/to/www/trac

Happy Tracking!

This entry was posted in en and tagged . Bookmark the permalink.

One Response to Mantis to Trac migration

  1. Steffen Hoffmann says:

    I've been attracted by migration stories, both towards Trac and away from it.

    What your readers should know: All the Mantis benefits over Trac are obsolete by now:
    * comments are editable for users with 'TICKET_EDIT_COMMENT', or 'TICKET_AMDIN' of course
    * arbitrary access restrictions can be applied with verious degrees of granularity from single documents to subsets (all wiki subpages, a range of tickets etc. by using http://trac.edgewall.org/wiki/TracFineGrainedPermissions
    * TracAnnouncer alias AnnouncerPlugin (http://trac-hacks.org/wiki/AnnouncerPlugin) is able to fine-tune notifications that way, and solutions within Trac are on the way too (http://trac.edgewall.org/ticket/2247)

    Greetings,
    Steffen Hoffmann
    a Trac plugin developer

Comments are closed.