[OSGeo] #3238: Upgrade Trac to either 1.4.4 or 1.6

#3238: Upgrade Trac to either 1.4.4 or 1.6
---------------------------+-----------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: new
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Trac | Keywords:
---------------------------+-----------------------
Currently OSGeo is running and older [Trac · PyPI
Trac 1.4.3] released May 10, 2021, based on Python 2.7.

The web UI shows that this is Python 2, as it has output like
`Branches:[(u'master', ...)]`

According to [TracDownload – The Trac Project TracDownload]
there are two supported release series:

* Older Stable Release - currently [Trac · PyPI
Trac 1.4.4], still uses Python 2.7.
* Latest Stable Release - currently [Trac · PyPI
Trac 1.6], which requires Python 3.

Note that currently 1.6 is supported in Debian bookworm via
[Debian -- Details of package trac in bookworm-backports backports].
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3238&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
---------------------------+------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: new
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Trac | Resolution:
Keywords: |
---------------------------+------------------------
Comment (by strk):

We're still on Debian Buster (10) on that host so this ticket is better
done after a system upgrade (or contextually), see #2822
--
Ticket URL: <#3238 (Upgrade Trac to either 1.4.4 or 1.6) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: assigned
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Changes (by strk):

* status: new => assigned
* milestone: Unplanned => Sysadmin Contract 2024-III (strk)

Comment:

Actually it looks like trac is currently installed via pip so we can
easily upgrade to 1.4.4 - I'll check release notes and proceed with the
least risky. We might setup a staging container for 1.6
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3238#comment:2&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: assigned
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

Previous upgrade was from 1.2 to 1.4 and tracked by #2372
A staging host already exists, I've added info about it on
Trac - OSGeo
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3238#comment:3&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution: fixed
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Changes (by strk):

* status: assigned => closed
* resolution: => fixed

Comment:

I've upgraded trac to 1.4.4 on both staging and production, using:

> pip install --upgrade Trac==1.4.4

I'll close this ticket, feel free to file a new one if you see a
compelling reason to upgrade to 1.6
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3238#comment:4&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution: fixed
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

Trac 1.6 is in staging (compelling reason was upgrade to Debian Bullseye
forced python3 for mod_python): please test ​https://dev.trac.osgeo.org
--
Ticket URL: <#3238 (Upgrade Trac to either 1.4.4 or 1.6) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Changes (by strk):

* status: closed => reopened
* resolution: fixed =>

--
Ticket URL: <#3238 (Upgrade Trac to either 1.4.4 or 1.6) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

One problem we have is that the `{{{ box ` syntax on wiki, as used by
PostGIS start wiki page is not available in current
staging Trac-1.6, it must be implemented by some plugin that are currently
not installing fine, but I don't know which plugin implements that
--
Ticket URL: <#3238 (Upgrade Trac to either 1.4.4 or 1.6) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

It could be one of these plugins, all failing to install:
{{{
     :stderr: ERROR: Could not find a version that satisfies the
requirement TracDoxygen
     :stderr: ERROR: Could not find a version that satisfies the
requirement TracGamedevTheme
     :stderr: ERROR: Could not find a version that satisfies the
requirement TracpathTheme
     :stderr: ERROR: Could not find a version that satisfies the
requirement TracSectionEditPlugin
     :stderr: ERROR: Could not find a version that satisfies the
requirement TracTweakTheme
     :stderr: ERROR: Could not find a version that satisfies the
requirement BasicThemeEditorPlugin
     :stderr: ERROR: Could not find a version that satisfies the
requirement BlueFlatTheme
}}}
--
Ticket URL: <#3238 (Upgrade Trac to either 1.4.4 or 1.6) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

I think "box" is defined by https://trac-hacks.org/wiki/WikiExtrasPlugin
The plugin is installed on the system but for some reason trac doesn't
list it here: https://dev.trac.osgeo.org/postgis/admin/general/plugin
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3238#comment:9&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

The culprit seems to be this:
[2024-08-21 12:10:43,970] postgis:loader ERROR: Skipping "tracwikiextras =
tracwikiextras": ModuleNotFoundError: No module named 'boxes'

More errors are in /var/log/trac_all.log
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3238#comment:10&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

One difference I spotted between the working (1.3.2.dev0) and non-working
(1.3.1) versions of WikiExtrasPlugin is an import line that is more
qualified in the working version:

> dist-packages/tracwikiextras/__init__.py:from tracwikiextras.boxes
import AboutWikiBoxes, Boxes

Whereas in the non-working version is only `from boxes`

Now to find out how to force install of 1.3.2.dev0
--
Ticket URL: <#3238 (Upgrade Trac to either 1.4.4 or 1.6) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

There is no 1.3.2 package on pyPI so 1.3.2.dev0 must have been installed
from a development branch but I cannot find the sources
--
Ticket URL: <#3238 (Upgrade Trac to either 1.4.4 or 1.6) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

Sources found, although they are on a very slow server. Trunk branch has
the fix:
https://trac-
hacks.org/svn/wikiextrasplugin/trunk/tracwikiextras/__init__.py
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3238#comment:13&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: reopened
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution:
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Comment (by strk):

Version 1.3.2.dev0 of TracWikiExtras is now installed (via ansible, from
the svn source repository)
--
Ticket URL: <#3238 (Upgrade Trac to either 1.4.4 or 1.6) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3238: Upgrade Trac to either 1.4.4 or 1.6
--------------------------+------------------------------------------------
Reporter: Mike Taves | Owner: strk
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2024-III (strk)
Component: | Resolution: fixed
  SysAdmin/Trac |
Keywords: |
--------------------------+------------------------------------------------
Changes (by strk):

* resolution: => fixed
* status: reopened => closed

Comment:

Trac 1.6 is up and running in production
--
Ticket URL: <#3238 (Upgrade Trac to either 1.4.4 or 1.6) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.