Skip to main content
Version: 2.8

Upgrading D1

This page describes how to upgrade D1 to a recent version.

Note

You must repeat this procedure for all D1 servers in your deployment. See Deployment use cases.

Before you begin

  • Obtain a deployment package with the recent version of D1 from the Document.One team.
  • Upload the deployment package to the server where the current version of D1 is installed.
  • Backup the current version of your D1 installation. For details about how to do this, see Backing up Document.One.
important

If your database or file system configuration has changed, we recommend that you perform a fresh installation of D1 instead of upgrade.

For information about how to install D1, see Installing D1.

To upgrade D1

  1. Shut down the current D1 installation (if it is running).

    • Run ./tribefire-console-stop.sh from /runtime/host/bin - if D1 was started from the command line with ./tribefire-console-start.sh.
    • Run /etc/init.d/service_name stop- if D1 was started as a Linux service.
  2. Unzip your new archive into the root directory of the current installation (the directory containing adx-deployment-package).

  1. Run ll to list directories and files in the root folder. The updated adx-deployment-package contains the following files and folders:

    Installation package files and foldersDescription
    additional-libraries/Created during first installation; it hosts database drivers.
    adx-deployment-package/Your new D1 package.
    elastic/Elastic search data generated by previously used D1 instance. It is Will be overwritten when you run the new package.
    installation-settings.yamlThe installation settings created during the first installation. You need to update this file if the new release introduces configuration changes.
    license/The license file created during the first installation.
    logs/Log files from the previous D1 instance. It will be overwritten when you run the new package.
    temp/Temporary data from the previous D1 instance. It will be overwritten when you run the new package.
  2. If the release notes of your new package mention any configuration changes, adapt the installation-settings.yaml file accordingly.

    Tip

    To create a new installation file based on the latest template, run cp adx-deployment-package/example-installation-settings.yaml installation-settings.yaml, and then re-enter configuration data into the new file.

  3. Go to the directory where you unzipped the package and open adx-deployment-package.

    Note

    When you install the updates in the directory with the previous installation, all temporary data (logs, elastic search data, temporary files) are overwritten when you launch the new runtime.

  4. Open the terminal, and run the installation script: ./install.sh.

    If your installation settings file is not in the default location, adapt the paths and/or names accordingly. For example:

    install.sh --settings /path/to/installation-settings.yaml --environment /path/to/environment.sh-

    D1 is to be installed in the directory specified in the configuration file.

  5. To start the service, enter /runtime/host/bin in the installation directory, then run ./tribefire-console-start.sh. Alternatively, you can start the server as a Linux service.

    After startup, D1 is to be available in your browser under the host and port you configured (for example http://localhost:8080).

  6. (Recommended) Run a number of health checks to make sure everything is running smoothly.

Troubleshooting note

If the upgrade failed, quote the full version of the package (including the -p suffix if it's in your package name) to the support team.

To verify the upgrade

Having installed D1, do the following to verify that the functionality works as expected:

  1. Log in to D1.

  2. Open the landing page, and then click Explore under D1 Admin Access (available under Service Domains).

  3. Click Synchronize in the bottom menu to synchronize all inactive repositories.

  4. Click Activate in the bottom menu to activate all inactive repositories and enable D1 Repository Explorer.

  5. Click Health in the bottom menu, and then click Deep Check to run a deep health check on the repository. The resulting report should be all green. If the report is OK, you can now start using D1.

Where to go from here

When you have upgraded the D1, you can start using it.