Notes about the Trac Upgrades / Configs

Our Trac installation was recently upgraded to version 0.12.2. Work is underway to update Trac has been updated to 1.0.1. A test site is available to get a sneak peek.

The site is served as HTTPS (ticket:595) and HSTS has been enabled (ticket:794#comment:5).

Changes from default installation

Plugins (only for 1.0.1)

Any other useful plugins? Is having an integrated Pastebin a bad idea?

Template customizations


  • footer: add login, register, and logout links (ticket:917)
  • newticket: Add note to top of add ticket page


  • Add dynamic informative message, remove help text from report # 1

Temporary redirects

Since we no longer have Trac-Monotone installed—-and haven't had it installed for several months—-some of the links in our documentation were broken. The web site has been changed to point to github but I thought redirecting from the old locations within Trac to github would be better instead of sending 410 Gone. Within I2P I'm redirecting to my ViewMTN installation.

If a user is accessing Trac from the Internet via an In-Proxy I redirect them to


RewriteRule /browser/Makefile\.gcj [R=301,L,NC]
RewriteRule ^/browser/core/java/src/net/i2p/crypto/(.+)\.java.*$ [R=301,L,NC]
RewriteRule ^/browser/plugin/makeplugin\.sh.* [R=301,L,NC]

RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*)$1  [NC,R=301,L]

Within I2P

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule /browser/Makefile\.gcj [R=301,L,NC]

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule ^/browser/core/java/src/net/i2p/crypto/(.+)\.java.*$ [R=301,L,NC]

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule ^/browser/plugin/makeplugin\.sh.* [R=301,L,NC]

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule (.*)$1 [R=301,L,NC]

RewriteRule ^/browser/Makefile\.gcj http://killyourtv.i2p/viewmtn/branch/head/file/i2p.i2p/Makefile.gcj [R=301,L,NC]
RewriteRule ^/browser/core/java/src/net/i2p/crypto/(.+)\.java.* http://killyourtv.i2p/viewmtn/branch/head/file/i2p.i2p/core/java/src/net/i2p/crypto/$ [R=301,L,NC]
RewriteRule ^/browser/plugin/makeplugin\.sh.* http://killyourtv.i2p/viewmtn/branch/head/file/i2p.scripts/plugin/  [R=301,L,NC]

Both Internally and Externally

RewriteRule ^/browser/ - [G]
RewriteRule ^/changeset/ - [G]
RewriteRule ^/diff/ - [G]
RewriteRule ^/export/ - [G]
RewriteRule ^/log/ - [G]


  • Opera and Konqueror may not like AuthDigestDomain ticket:1078
  • Trac 1.0.1 crashes with AccountManager and Babel ≥ 1.0. It works fine with the versions of Babel that come with Debian Wheezy & Ubuntu Precise.
  • Our going from 0.11.x → 0.12.2 → 1.0.1 needs old sessions to be purged (e.g. trac-admin [projectdir] session purge "1 day ago"), otherwise Trac hangs when loading the user list. After doing this, vacuuming the db shrank the size from 124MB to 15MB.

Trac Tickets

  • Open tickets:
    Handle ddos attacks better on core services
    Modify option always showing up without pressing on it
    Ticket title doesnt show similar subjects
  • Completed tickets:
    Change guest user/pw or add captcha
    #505 has an expired certificate
    WWW Trac Plaintext Passwords
    OperationalError: database is locked
    Restore login/register links at bottom of each trac page
    Cannot login to Trac with Konqueror or Opera
    trac.i2p2.i2p Doesn't Allow Reporting Against 0.9.16
    Ticket list viewing gone
    distrowatch (gentoo repo)
    trac.i2p2.i2p nearly unusable - connection reset
    trac errors when creating new topic or replying
    SMTPRecipientsRefused: {u'': (451, '4.3.0 <>: Temporary lookup failure')}
    Edit the "Java JRE and SDK Support and Performance" wiki page
    Trac old stable and SSL certificate
    @mail.i2p doesnt show inside trac text
    Enable Trac notifications via susimail
    Trac Email Notification Too Noisy
    Changing Full name doesnt change account name
    Add Version numbers of I2Pbrowser , I2Pbutton ..
    Deprecate I2P-Bote specific issues since its migrated
    ConnectionError: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /hooks/9yiptwymnjyxze5rr846ubxa1e (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f5360821e50>: Failed to establish a new connection: [Errno -2] Name or service not known',))
    Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.
    Emails from this Trac server go to my spam folder due to misconfigured SPF record
Last modified 8 years ago Last modified on Oct 20, 2013 8:33:10 PM