wiki:maint/TracUpgrade

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

site.html

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

report_(list|view).html

  • 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 https://trac.i2p2.de.

Internet

RewriteRule /browser/Makefile\.gcj https://github.com/i2p/i2p.i2p/tree/master/Makefile.gcj [R=301,L,NC]
RewriteRule ^/browser/core/java/src/net/i2p/crypto/(.+)\.java.* https://github.com/i2p/i2p.i2p/tree/master/core/java/src/net/i2p/crypto/$1.java [R=301,L,NC]
RewriteRule ^/browser/plugin/makeplugin\.sh.* https://github.com/i2p/i2p.scripts/tree/master/plugin/makeplugin.sh [R=301,L,NC]

RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://trac.i2p2.de$1  [NC,R=301,L]

Within I2P

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule /browser/Makefile\.gcj https://github.com/i2p/i2p.i2p/tree/master/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.* https://github.com/i2p/i2p.i2p/tree/master/core/java/src/net/i2p/crypto/$1.java [R=301,L,NC]

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

RewriteCond %{HTTP:X-Forwarded-For} .+ [OR]
RewriteCond %{HTTP:X-Forwarded-Server} .+
RewriteRule (.*) https://trac.i2p2.de$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/$1.java [R=301,L,NC]
RewriteRule ^/browser/plugin/makeplugin\.sh.* http://killyourtv.i2p/viewmtn/branch/head/file/i2p.scripts/plugin/makeplugin.sh  [R=301,L,NC]

Both Internally and Externally

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

Various

  • 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:

    #2047
    SMTPRecipientsRefused: {u'trac@trac.i2p2.no': (451, '4.3.0 <trac@trac.i2p2.no>: Temporary lookup failure')}
    #2134
    Handle ddos attacks better on core services

  • Completed tickets:

    #446
    Change guest user/pw or add captcha
    #505
    https://trac.i2p2.de has an expired certificate
    #595
    WWW Trac Plaintext Passwords
    #886
    OperationalError: database is locked
    #917
    Restore login/register links at bottom of each trac page
    #995
    NotImplementedError:
    #1078
    Cannot login to Trac with Konqueror or Opera
    #1406
    trac.i2p2.i2p Doesn't Allow Reporting Against 0.9.16
    #1435
    Ticket list viewing gone
    #1856
    distrowatch (gentoo repo)
    #2020
    trac.i2p2.i2p nearly unusable - connection reset
    #2033
    trac errors when creating new topic or replying
    #2165
    Edit the "Java JRE and SDK Support and Performance" wiki page
    #2180
    Trac old stable and SSL certificate
    #2209
    @mail.i2p doesnt show inside trac text
    #2254
    Enable Trac notifications via susimail

Last modified 5 years ago Last modified on Oct 20, 2013 8:33:10 PM