wiki:maint/TracUpgrade

Version 14 (modified by killyourtv, 6 years ago) (diff)

strikeout plugins I've decide against

Notes about the Trac Upgrades / Configs

Our Trac installation was recently upgraded to version 0.12.2. Work is underway to update 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

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

site.html customizations

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

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:
    #2134
    Handle ddos attacks better on core services
    #2547
    Modify option always showing up without pressing on it
    #2550
    Ticket title doesnt show similar subjects
  • 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
    #2047
    SMTPRecipientsRefused: {u'trac@trac.i2p2.no': (451, '4.3.0 <trac@trac.i2p2.no>: Temporary lookup failure')}
    #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
    #2541
    Trac Email Notification Too Noisy
    #2542
    Changing Full name doesnt change account name
    #2543
    Add Version numbers of I2Pbrowser , I2Pbutton ..
    #2544
    Deprecate I2P-Bote specific issues since its migrated
    #2545
    ConnectionError: HTTPSConnectionPool(host='web.i2p.im', 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',))
    #2555
    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.