Upgrading OmniSci

Important As with any software upgrade, it is important that you back up your data before you upgrade OmniSci. Each release introduces efficiencies that are not necessarily compatible with earlier releases of the platform. OmniSci is never expected to be backward compatible.

Back up the contents of your $OMNISCI_STORAGE directory, where all data and configuration information are stored.

How you upgrade OmniSci depends on how you installed it.

Upgrading OmniSci Using Docker

To upgrade OmniSci in place in Docker, stop the Docker container, back up your data directory, then run the OmniSci Docker install command.

  1. In a terminal window, get the Docker container ID:
    docker container ls
    You see output similar to the following. The first entry is the container ID. In this example, it is 9e01e520c30c:
    CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                            NAMES
    9e01e520c30c        omnisci/omnisci-ee-cpu     “/bin/sh -c ‘/omnisci...”   3 days ago          Up 3 days           0.0.0.0:6273-6274->6273-6274/tcp                 confident_neumann
  2. Stop the OmniSci Docker container. For example:
    docker container stop 9e01e520c30c
    
    Optionally, remove the OmniSci Docker container. This removes unused Docker containers on your system and saves disk space. For example:
    docker container rm 9e01e520c30c
    
  3. Back up the storage directory on the host machine. The default location is ~/omnisci-docker-storage.
  4. Download the latest version of Docker.

    For Enterprise edition without GPUs:

    docker pull omnisci/omnisci-ee-cpu

    For Enterprise edition with GPUs:

    docker pull omnisci/omnisci-ee-cuda
    
  5. Run the Docker run command.

    For Enterprise edition without GPUs:

    docker run -d \
           --name omnisci \
           -v /var/lib/omnisci-storage:/omnisci-storage \
        -p 6273-6274:6273-6274 \
        omnisci/omnisci-ee-cpu:latest

    For Enterprise edition with GPUs:

    nvidia-docker run -d \
           --name omnisci \
           -v /var/lib/omnisci-storage:/omnisci-storage \
        -p 6273-6274:6273-6274 \
        omnisci/omnisci-ee-cuda:latest

This runs both OmniSci server and Immerse web server in that container.

You can optionally add --rm to the Docker run command so that the container is removed when it is stopped.

Note When upgrading from a significantly earlier version, there might be internal changes that invalidate the metadata in the omnisci-docker-storage directory. You can rename the directory or point to a different directory to run a later version of OmniSci.

See also the note regarding the CUDA JIT Cache in Optimizing Performance.

Upgrading OmniSci Using Yum

To upgrade an existing system installed with Yum to the latest version, you run the Yum update command. The command upgrades OmniSci in place without disturbing your configuration or stored data.

To Upgrade OmniSci Using Yum:

  1. Stop the OmniSci servers.
    sudo systemctl stop omnisci_web_server
    sudo systemctl stop omnisci_server
  2. Back up your $OMNISCI_STORAGE directory (default location is /var/lib/omnisci).
  3. Run the Yum update command.
    yum update omnisci
  4. When installation is complete, restart the OmniSci servers.
    sudo systemctl start omnisci_server
    sudo systemctl start omnisci_web_server

Upgrading OmniSci Using Apt

To upgrade an existing system installed with Apt to the latest version, you run the Apt update and upgrade commands. OmniSci is upgraded in place without disturbing your configuration or stored data.

To Upgrade OmniSci using Apt:

  1. Stop the OmniSci servers.
    sudo systemctl stop omnisci_web_server
    sudo systemctl stop omnisci_server
  2. Back up your $OMNISCI_STORAGE directory (default location is /var/lib/omnisci).
  3. Run the Apt update command.
    apt update
  4. Run the Apt upgrade command.
    apt upgrade omnisci
    
  5. When installation is complete, restart the OmniSci servers.
    sudo systemctl start omnisci_server
    sudo systemctl start omnisci_web_server

Upgrading OmniSci Using a Tarball

To upgrade OmniSci using a tarball, stop the servers, back up your data, expand the TAR file to replace the OmniSci application, and then restart the servers.

NoteYou might prefer to create a separate directory for each version of OmniSci as you upgrade. You could create an installs directory, and use a symbolic link to point to the current version. Another option is to rename the directory of the previous version before expanding the TAR file in the /opt/omnisci directory. To revert to an earlier version, you can redirect the symbolic link or move the directory of the release you want to use to /opt/omnisci.
  1. Stop the OmniSci web server and OmniSci server.
    sudo systemctl stop omnisci_web_server
    sudo systemctl stop omnisci_server
  2. Back up your $OMNISCI_STORAGE file (default location is /var/lib/omnisci).
  3. Optionally, move the previous version of the /opt/omnisci directory to another location. For example:
    sudo mv /opt/omnisci /opt/omnisci_previous
    Otherwise, remove the /opt/omnisci directory. For example:
    sudo rm -r /opt/omnisci
  4. Download and expand the OmniSci TAR file, per the installation instructions.
    CentOSUbuntu
  5. Restart the servers.
    sudo systemctl start omnisci_server
    sudo systemctl start omnisci_web_server