Upgrade Posit Connect

Important

This page only covers upgrading Posit Connect on the same server and between supported versions. If you are planning on changing servers or you are upgrading from an older unsupported version, please see the How to Upgrade and/or Migrate Posit Team guide.

This section describes how to upgrade Posit Connect. Upgrading Connect requires limited downtime (typically less than 10 minutes). See Install Posit Professional Products for alternative upgrade instructions (e.g., cloud marketplaces, or using Helm charts with Kubernetes).

Note

This page includes instructions for downloading Posit professional products. Download and/or use of these products is governed under the terms of the Posit End User License Agreement. By downloading, you agree to the terms posted there.

Upgrade planning

We recommend creating a backup of the Posit Connect database and data directory before upgrading. If you need to roll back to a prior version, you will need these backups. See the Downgrading section for more details.

Upgrading Posit Connect requires limited downtime. Scheduled document renders are interrupted, and connections to running applications and APIs are closed. We recommend upgrading during a period of low usage. Users can be warned ahead of an upgrade with system messages.

The Posit Connect version number is visible on the left-hand navigation pane of the Posit Connect dashboard.

Announcements

New features, bug fixes, breaking changes, and deprecated features are announced by the Release Notes and the Product Information email subscription list.

When performing an upgrade from a much older version of Connect, reviewing the detailed Release Notes is strongly recommended.

Download and run the script

To perform an upgrade, download and run the same script used to install Connect. The script installs a new version of Connect on top of the earlier one. Existing configuration settings are respected unless otherwise mentioned in the release notes.

Note

The installation script must be run by a privileged user or a user with sudo privileges.

You can upgrade Posit Connect by using one of the following methods:

Manual or offline upgrade

The new version of Posit Connect installs on top of an earlier installation. Existing configuration settings are respected. The Connect service is restarted during installation. Total downtime is less than 10 minutes.

If you need to upgrade your version of Connect in an offline environment, download the appropriate .rpm or .deb using the commands given below, copy it to your offline server, and run the installation command.

Important

Download links and installation commands for the latest version of Connect are available from the public documentation site.

The instructions below correspond to the Connect version associated with this documentation and may not reference the latest version.

Run the following to download and install Connect:

sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
curl -O https://cdn.posit.co/connect/2024.03/rstudio-connect-2024.03.0.el9.x86_64.rpm
sudo yum install rstudio-connect-2024.03.0.el9.x86_64.rpm
curl -O https://cdn.posit.co/connect/2024.03/rstudio-connect-2024.03.0.el8.x86_64.rpm
sudo yum install rstudio-connect-2024.03.0.el8.x86_64.rpm
sudo yum-config-manager --enable rhel-7-server-rhui-extras-rpms
curl -O https://cdn.posit.co/connect/2024.03/rstudio-connect-2024.03.0.el7.x86_64.rpm
sudo yum install rstudio-connect-2024.03.0.el7.x86_64.rpm
curl -O https://cdn.posit.co/connect/2024.03/rstudio-connect-2024.03.0.amazonlinux2.x86_64.rpm
sudo yum install rstudio-connect-2024.03.0.amazonlinux2.x86_64.rpm
sudo apt-get install gdebi-core
curl -O https://cdn.posit.co/connect/2024.03/rstudio-connect_2024.03.0~ubuntu22_amd64.deb
sudo gdebi rstudio-connect_2024.03.0~ubuntu22_amd64.deb
sudo apt-get install gdebi-core
curl -O https://cdn.posit.co/connect/2024.03/rstudio-connect_2024.03.0~ubuntu20_amd64.deb
sudo gdebi rstudio-connect_2024.03.0~ubuntu20_amd64.deb
curl -O https://cdn.posit.co/connect/2024.03/rstudio-connect-2024.03.0.sles15.x86_64.rpm
sudo zypper install rstudio-connect-2024.03.0.sles15.x86_64.rpm
Note

The /etc/rstudio-connect/rstudio-connect-migration.gcfg configuration file is modified during product updates. The Configuration Migration section describes this file and how it is managed. The migration file acts as a staging area for new or updated options. Review the contents of this file after upgrading and move its contents to the main /etc/rstudio-connect/rstudio-connect.gcfg configuration file.

Please see the Manual Installation steps for additional information.