Edgewall Software

Changes between Version 87 and Version 88 of TracUpgrade


Ignore:
Timestamp:
Feb 26, 2011, 12:21:26 PM (13 years ago)
Author:
Christian Boos
Comment:

#KnownIssues in reference to #7014, advise to bring the server off-line before upgrading; restructure the section + add a page outline

Legend:

Unmodified
Added
Removed
Modified
  • TracUpgrade

    v87 v88  
    33[[TracGuideToc]]
    44[[TranslatedPages]]
     5[[PageOutline(2-3,,inline,unnumbered)]]
    56
    67== Instructions ==
     
    89Typically, there are seven steps involved in upgrading to a newer version of Trac:
    910
    10 === 1. Update the Trac Code === #UpdatetheTracCode
     11=== 1. Bring your server off-line
     12
     13It is not a good idea to update a running server: the server processes may have parts of the current packages cached in memory, and updating the code will likely trigger internal errors.
     14
     15=== 2. Update the Trac Code === #UpdatetheTracCode
    1116
    1217Get the new version as described in TracInstall, or your operating system specific procedure.
     
    3035This cleanup is not mandatory, but makes it easier to troubleshoot issues later on, as you won't waste your time looking at code or templates from a previous release that are not being used anymore... As usual, make a backup before actually deleting things.
    3136
    32 === 2. Upgrade the Trac Environment === #UpgradetheTracEnvironment
     37=== 3. Upgrade the Trac Environment === #UpgradetheTracEnvironment
    3338
    3439Environment upgrades are not necessary for minor version releases unless otherwise noted.
     
    4752}}}
    4853
    49 === 3. Update the Trac Documentation === #UpdatetheTracDocumentation
     54=== 4. Update the Trac Documentation === #UpdatetheTracDocumentation
    5055
    5156Every [TracEnvironment Trac environment] includes a copy of the Trac documentation for the installed version. As you probably want to keep the included documentation in sync with the installed version of Trac, [TracAdmin trac-admin] provides a command to upgrade the documentation:
     
    5762
    5863
    59 === 4. Refresh static resources ===
     64=== 5. Refresh static resources ===
    6065
    6166If you have set up a web server to give out static resources directly (accessed using the `/chrome/` URL) then you will need to refresh them using the same command:
     
    7075}}}
    7176
    72 === 5. Steps specific to a given Trac version  ===
     77=== 6. Steps specific to a given Trac version  ===
    7378==== Upgrading from Trac 0.11 to Trac 0.12 ====
    7479
     
    8792This may be of interest to users with only one repository, since there's now a way to avoid the potentially costly resync check at every request.
    8893
    89 ===== Resynchronize the Trac Environment Against the Source Code Repository ===
     94===== Resynchronize the Trac Environment Against the Source Code Repository =====
    9095
    9196Each [TracEnvironment Trac environment] must be resynchronized against the source code repository in order to avoid errors such as "[http://trac.edgewall.org/ticket/6120 No changeset ??? in the repository]" while browsing the source through the Trac interface:
     
    134139== Known Issues ==
    135140
    136 === parent dir ===
    137 If you use a trac parent env configuration and one of the plugins in one child does not work, none of the children work.
     141Things you should pay attention to, while upgrading.
     142
     143=== !ZipImportError ===
     144
     145Due to internal caching of zipped packages,  whenever the content of the packages change on disk, the in-memory zip index will no longer match and you'll get irrecoverable !ZipImportError errors. Better anticipate and bring your server down for maintenance before upgrading.
     146See [trac:#7014] for details.
    138147
    139148=== Wiki Upgrade ===
     
    144153A known issue in some versions of PySqlite (2.5.2-2.5.4) prevents the trac-admin upgrade script from successfully upgrading the database format. It is advised to use either a newer or older version of the sqlite python bindings to avoid this error. For more details see ticket [trac:#9434].
    145154
    146 == Upgrading Python ==
     155=== parent dir ===
     156If you use a trac parent env configuration and one of the plugins in one child does not work, none of the children work.
     157
     158== Related topics
     159
     160=== Upgrading Python ===
    147161
    148162Upgrading Python to a newer version will require reinstallation of Python packages: Trac of course; also [http://pypi.python.org/pypi/setuptools easy_install], if you've been using that.  Assuming you're using Subversion, you'll also need to upgrade the Python bindings for svn.
    149163
    150 === Windows and Python 2.6 ===
     164==== Windows and Python 2.6 ====
    151165
    152166If you've been using !CollabNet's Subversion package, you may need to uninstall that in favor of [http://alagazam.net/ Alagazam], which has the Python bindings readily available (see TracSubversion).  The good news is, that works with no tweaking.
    153167
    154 == Changing Database Backend ==
    155 === SQLite to PostgreSQL ===
     168=== Changing Database Backend ===
     169==== SQLite to PostgreSQL ====
    156170
    157171The [http://trac-hacks.org/wiki/SqliteToPgScript sqlite2pg] script on [http://trac-hacks.org trac-hacks.org] has been written to assist in migrating a SQLite database to a PostgreSQL database
    158172
    159 == Older Versions ==
     173=== Upgrading from older versions of Trac === #OlderVersions
    160174
    161175For upgrades from versions older than Trac 0.10, refer first to [trac:wiki:0.10/TracUpgrade#SpecificVersions].