Description

Article ID:360032824552
2 minute readKnowledge base
On this page

During an upgrade, the installer displays the following error message:

CloudBees CD (CloudBees Flow) is configured to use the built-in database. The built-in database on disk has a schema intended for CloudBees CD (CloudBees Flow) version , which is older than that needed by this CloudBees CD (CloudBees Flow)  server. CloudBees CD (CloudBees Flow) does not support version upgrades of the built-in database, so the CloudBees CD (CloudBees Flow) server cannot start. For options to resolve this issue, see the "Troubleshooting" chapter of the "CloudBees CD (CloudBees Flow) Installation Guide"

This problem occurs because starting with CloudBees CD (CloudBees Flow) version 8.0, Electric Cloud does not support upgrades from CloudBees CD (CloudBees Flow) versions that use HSQLDB. HSQLDB is the built-in (default) database that was replaced by MariaDB in CloudBees CD (CloudBees Flow) version 8.3 as the built-in database.

Workarounds

Because the HSQLDB database in CloudBees CD (CloudBees Flow) is not upgradeable, to work around this issue, you can either point to a supported database, wipe the database (if you do not need its contents), or migrate the database contents to a database supported by CloudBees CD (CloudBees Flow).

Pointing to a Supported Database

To point to a different CloudBees CD (CloudBees Flow)-supported database, modify the database.properties file to point to that database.

Wiping the Database Contents

If you do not need the contents of the built-in database, complete the following steps:

  1. Back up the database.

  1. Delete the files and folders whose names match the pattern:

    /builtin/commander.*

Migrating the Database Contents to a Supported Database

If you do need the contents of the built-in database, complete the following steps:

  1. Back up your \builtin folder and your \conf\database.properties, passkey, and keystore files (or simply back up the entire \conf folder).

  2. Reinstall the prior CloudBees CD (CloudBees Flow) version by using the following substeps:

    1. Uninstall the newer instance that is not working.

    2. Install the prior version again, which will use a new built-in database by default.

      If you installed the DevOps Insight server on the same system, you must use a different and for this CloudBees CD (CloudBees Flow) server installation.
    3. After the CommanderServer service starts (meaning that the plugins are installed and so on) and you can log into the installed version from substep b, stop the CommanderServer service.

    4. Back up the new \builtin and \conf folders and replace them with the folders that you backed up in step 1.

    5. Restart the new CommanderServer service. It should now use the original built-in database containing your data and should function properly.

  3. Do a full export of the database contents.

  4. Switch to another production-quality database that CloudBees CD (CloudBees Flow) supports.

  5. Do a full import of your data to the new database. For details, see Restore a CloudBees CD/RO server

  6. Re-upgrade CloudBees CD (CloudBees Flow).