Upgrade TeamForge on the Same Hardware with Oracle Database
In this setup, TeamForge, Oracle database and other services are distributed across three servers, server-01 through server-03 as illustrated in the following table.
You can install TeamForge on both RHEL 8.6 and RHEL/CentOS 7.9. In this distributed setup, all the following services are installed on RHEL 8.6 servers.
| server-01 | server-02 |
TeamForge Application Server | Oracle Database Server |
---|---|
ctfcore | ctfcore-database |
ctfcore-datamart | |
etl | |
search | |
codesearch | |
gerrit | |
gerrit-database | |
subversion | |
reviewboard1 | |
reviewboard-database | |
reviewboard-adapter2 | |
binary | |
binary-database | |
cliserver | |
service-monitor |
TeamForge Baselines feature is not supported in TeamForge setup with Oracle database.
Here's a list of dos, don'ts and points to remember when you install or upgrade TeamForge.
One-hop Upgrade Compatibility
Though the TeamForge 22.1 installer supports one-hop upgrade from TeamForge 21.1 or later versions, TeamForge 22.1 upgrade instructions, in general, are for upgrading from TeamForge 22.0 (including update releases, if any) to TeamForge 22.1 .
There is no support for one-hop upgrade from TeamForge 21.0 or earlier to TeamForge 22.1 . You must upgrade your site to TeamForge 21.1 or later and then upgrade to TeamForge 22.1 .
Example Multi-hop Upgrade Path
For instance, if you are running TeamForge 18.3, you must follow a multi-hop upgrade path considering the following key dependencies:
TeamForge Upgrade Path: TeamForge 18.3 (PostgreSQL 9.6) → TeamForge 20.3 (PostgreSQL 11.6, JDK 9) → TeamForge 22.1 (PostgreSQL 13.4, Java 11) → TeamForge 24.1 (PostgreSQL 13.15, Java 17)
Source Code Management (Git/Gerrit) Upgrade Path: TeamForge 19.3 (Gerrit 2.15.18) → TeamForge 20.2 (Gerrit 2.16.26) → TeamForge 21.1 (Gerrit 3.2.14) → TeamForge 23.1 (Gerrit 3.5.6) → TeamForge 24.0 (Gerrit 3.6.8) → TeamForge 24.1 (Gerrit 3.7.9) → TeamForge 25.0 (Gerrit 3.9.11)
Operating System Considerations:
- TeamForge 23.0 and earlier support RHEL 7.9
- TeamForge 23.1 supports RHEL 8.8
- TeamForge 24.1 supports RHEL/AlmaLinux 8.10
TeamForge has a new licensing framework starting from TeamForge 21.1. If you are upgrading from TeamForge 21.0 or earlier to TeamForge 21.1 or later, you must get the new TeamForge license and add it to your site before upgrading to TeamForge 21.1 or later. Contact Digital.ai Support to get the new TeamForge license for your site before you run the teamforge provision
command. The teamforge provision
command fails otherwise.
CVS is no longer supported by TeamForge 20.2 and later. You must migrate your CVS repositories to any of the other supported SCM tool (Git/SVN for example) when you upgrade to TeamForge 20.2 or later.
-
Undeploy CVS on the TeamForge SCM server that runs CVS. Do this after you stop the TeamForge services while upgrading to TeamForge 20.2 or later versions on the same hardware. Skip this step in case of new hardware upgrades.
teamforge undeploy -s cvs
-
Remove
cvs
from thehost:SERVICES
token of thesite-options.conf
file (on all the TeamForge servers), failing which theteamforge provision
command aborts with an error.
EventQ as a TeamForge service is no longer supported and is completely removed from TeamForge 20.0 (and later). There are a few things to consider in case you have been using EventQ and are upgrading to TeamForge 20.0 or later. For more information, see EventQ End of Life.
Do this before you stop TeamForge while upgrading to TeamForge 18.2 or later versions.
Get value of SUBVERSION_REPOSITORY_BASE
from the /opt/collabnet/teamforge/runtime/conf/runtime-options.conf
file of your existing TeamForge server and run the following command:
chmod -R 775 $SUBVERSION_REPOSITORY_BASE
Where $SUBVERSION_REPOSITORY_BASE
is the path to the /svnroot
directory.
This is required to work around the unusually long time taken to migrate the Subversion data during the first run of the teamforge provision
command.
Back up Your Oracle Database
Uninstall Custom Event Handlers, Hot Fixes and Add-ons
Log on to the TeamForge Application Server.
- SOAP 50 is no longer supported. Back up all your custom event handlers and remove all the event handler JAR files before starting your TeamForge upgrade process.
- Go to My Workspace > Admin.
- Click System Tools from the Projects menu.
- Click Customizations.
- Select the custom event handler and click Delete.
tip
Post upgrade, you can add custom event handlers again from the backup while making sure that you don't have SOAP50 (deprecated) library used.
- Uninstall hotfixes and add-ons, if any, installed on your site.
yum upgrade
-
Stop TeamForge.
importantStop TeamForge on all the servers in a distributed setup.
teamforge stop
-
Upgrade the operating system packages.
yum upgrade
Run yum upgrade
on all the servers.
Configure the TeamForge Installation Repository
Upgrade the TeamForge Services
-
Upgrade the TeamForge and Review Board application services on the TeamForge Application Server (server-01).
yum install teamforge
Install Monit.
importantIf you haven't already installed the latest version of the Monit application, download it here.
-
Download Monit for
-
RHEL 8.x from the EPEL repository.
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
rpm -ivh epel-release-latest-8.noarch.rpm -
RHEL/CentOS 7.x from the EPEL repository.
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
-
-
Install Monit.
yum install monit
-
Back up the TeamForge Data Directories
On sites running TeamForge 16.7 or earlier versions:
-
Back up the following data directories.
tipIn a distributed setup, you must backup specific directories such as
/svnroot
and/cvsroot
from the server that hosts those SCM services.noteCVS is no longer supported by TeamForge 20.2 (and later). Backing up and restoring the
/cvsroot
is recommended, but optional though.Directory Contents /opt/collabnet/teamforge/var User-created data, such as artifact attachments /opt/collabnet/reviewboard Review Board data /svnroot Subversion source code repositories /sf-svnroot Subversion repository for branding data /cvsroot CVS source code repositories (required only if you have CVS) /gitroot Git source code repositories cp -Rpf /svnroot /sf-svnroot /cvsroot /gitroot /opt/collabnet/teamforge/var /opt/collabnet/reviewboard /tmp/backup_dir
-
Back up the
/opt/collabnet/gerrit
directory if you have Git integration.tipDo this on the server that hosts the TeamForge-Git integration services.
: ::
mkdir /tmp/backup_dir/gerrit
cp -Rpfv /gitroot /tmp/backup_dir
cp -Rpfv /opt/collabnet/gerrit/ /tmp/backup_dir/gerrit
On sites running TeamForge 16.10 or later versions:
-
Back up the
/opt/collabnet/teamforge/var
directory.tipDo this on both the TeamForge Application and Database servers in case you have them running on two separate servers.
mkdir -p /tmp/backup_dir
cp -Rpfv /opt/collabnet/teamforge/var /tmp/backup_dir -
Back up the
/opt/collabnet/gerrit
directory if you have Git integration.tipDo this on the server that hosts the TeamForge-Git integration services.
mkdir /tmp/backup_dir/gerrit
cp -Rpfv /opt/collabnet/gerrit/ /tmp/backup_dir/gerrit
Back up and Restore Review Board Database and Data Directories
See Back up and Restore Review Board Database and Data Directories