Opened 3 months ago

Closed 2 months ago

#3238 closed task (fixed)

Upgrade Trac to either 1.4.4 or 1.6

Reported by: Mike Taves Owned by: strk
Priority: normal Milestone: Sysadmin Contract 2024-III (strk)
Component: SysAdmin/Trac Keywords:
Cc:

Description

Currently OSGeo is running and older 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 there are two supported release series:

  • Older Stable Release - currently Trac 1.4.4, still uses Python 2.7.
  • Latest Stable Release - currently Trac 1.6, which requires Python 3.

Note that currently 1.6 is supported in Debian bookworm via backports.

Change History (15)

comment:1 by strk, 3 months ago

We're still on Debian Buster (10) on that host so this ticket is better done after a system upgrade (or contextually), see #2822

comment:2 by strk, 3 months ago

Milestone: UnplannedSysadmin Contract 2024-III (strk)
Status: newassigned

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

comment:3 by strk, 3 months ago

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 https://wiki.osgeo.org/wiki/Trac#Staging

comment:4 by strk, 3 months ago

Resolution: fixed
Status: assignedclosed

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

comment:5 by strk, 3 months ago

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

comment:6 by strk, 3 months ago

Resolution: fixed
Status: closedreopened

comment:7 by strk, 3 months ago

One problem we have is that the {{{ box syntax on wiki, as used by https://trac.osgeo.org/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

comment:8 by strk, 3 months ago

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

comment:9 by strk, 3 months ago

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

comment:10 by strk, 3 months ago

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

comment:11 by strk, 3 months ago

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

comment:12 by strk, 3 months ago

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

comment:13 by strk, 3 months ago

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

comment:14 by strk, 3 months ago

Version 1.3.2.dev0 of TracWikiExtras is now installed (via ansible, from the svn source repository)

comment:15 by strk, 2 months ago

Resolution: fixed
Status: reopenedclosed

Trac 1.6 is up and running in production

Note: See TracTickets for help on using tickets.