Upgrade Re:dash

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

NOTE: It is strongly recommended to create a backup before starting the update process. If you have important data, create and restore a backup to ensure that everything works properly.

You can upgrade the Bitnami Re:dash Stack following the steps below.

  • Download the latest release tarball from GitHub.

  • Navigate to the Redash installation directory. Depending on your installation type, execute the following commands:

    • Approach A (Bitnami installations using system packages):

        $ cd /opt/bitnami/redash
    • Approach B (Self-contained Bitnami installations):

        $ cd /opt/bitnami/apps/redash/htdocs/
  • Create a backup of your current version:

      $ mkdir /tmp/redash-backup
      $ sudo mv * /tmp/redash-backup
  • Create the htdocs directory for the new version and unpack it there:

      $ sudo tar -xvf /path/to/new/tarball
  • Copy your .env file and your venv/ directory from the current version to the new version:

      $ cp -p /tmp/redash-backup/.env .
      $ cp -rp /tmp/redash-backup/venv .
  • Check if you have any new migrations in the new version. Check it by running this command:

      $ diff migrations /tmp/redash-backup/migrations
  • Apply new migrations (if it is necessary):

      $ . venv/bin/activate
      $ ./bin/run python migrations/
  • Install any new requirements:

      $ . venv/bin/activate
      $ pip install -r requirements.txt
  • Restart servers:

      $ sudo /opt/bitnami/ restart
Last modification December 21, 2022