Upgrading to Drillbridge 4.0

Drillbridge 4.0 requires Java 17 or newer and changes the embedded repository from H2 1.4 PageStore (.h2.db) to H2 2 MVStore (.mv.db). Existing repository data remains supported, but the database must be converted before Drillbridge 4.0 starts.

Before upgrading

  1. Stop the Drillbridge service.

  2. Back up the complete installation directory, including the database and configuration.

  3. Record the currently installed Drillbridge version and confirm that the backup can be restored.

  4. Install Java 17 or newer.

  5. Do not allow the old and new Drillbridge versions to open the same database.

Drillbridge 4.0 converts a 3.x repository itself on the first start, so the conversion is not a separate step unless you want it to be. The upgrade directory of the distribution holds the H2 driver it needs for that, along with standalone tools for converting by hand.

Check your Essbase servers for a provider URL

Drillbridge 4.0 removes Essbase embedded mode. A server of type Essbase whose Provider URL is blank used to fall back to it; such a server will no longer connect, and reports that it needs a provider URL.

Before upgrading, open each Essbase server under Connections and give any with a blank Provider URL one, in the form http://essbase-host:9000/essbase/japi. The Test button on the server confirms it before you rely on it.

Servers of type Essbase (REST API) and PBCS are unaffected.

The repository is converted for you

Drillbridge 3.x kept its repository in H2 1.4’s PageStore format, in a file ending .h2.db, which H2 2 cannot read. Drillbridge 4.0 converts it on the first start: put the old .h2.db where the new installation expects its repository, start Drillbridge, and it does the rest.

Nothing is destroyed. Before the old file is opened at all, a timestamped copy is made beside it. The conversion is then checked table by table against the original, and only if every table has the same number of rows is the original renamed to .h2.db.old. Both it and the copy can be deleted once the upgrade has been verified.

If anything goes wrong, Drillbridge removes whatever it had started writing, leaves the original untouched and stops rather than starting against a partly converted repository. Take your own backup before you begin in any case.

Converting it yourself instead

To convert at a time of your choosing rather than at a restart, set this in config/application.properties:

dtb.repository.auto-convert=false

Drillbridge then refuses to start against an unconverted repository and says so, rather than converting it. The standalone tools remain in the upgrade directory of the distribution and are also what to reach for if an automatic conversion fails, because they report in more detail.

The default repository is named drillbridge.h2.db. Copy it into the upgrade directory and run the script while the current directory is upgrade.

Windows:

upgrade_h2.bat

macOS or Linux:

chmod +x upgrade_h2.sh
./upgrade_h2.sh

For a custom database basename, pass the basename without its directory or extension:

./upgrade_h2.sh my_repository

The current utility expects the standard embedded-repository credentials sa / drillbridge.

The script creates a timestamped backup, exports the source with H2 1.4.196, imports it with H2 2.2.220, opens and queries the result, and compares row counts for the core configuration tables. The original database is retained as .h2.db.old. An export, import, query, or row-count failure triggers automatic rollback.

Move the resulting .mv.db to the same relative location used by the old database before starting Drillbridge 4.0.

Complete and verify the upgrade

On first startup, Drillbridge converts legacy Flyway history where necessary and applies every remaining schema migration through 4.0. Known checksums published by older Drillbridge releases are handled explicitly. An unknown checksum mismatch stops startup and is not repaired automatically.

  1. Start Drillbridge 4.0 in console mode first, when practical, and confirm that startup completes without a migration error.

  2. Verify users, connections, Essbase servers, reports, mappings, variables, and deployment specifications.

  3. If users drill through from EPM Cloud, set dtb.allowed-frame-ancestors in config/application.properties to the EPM Cloud address, or copy the value from the previous installation. Without it, the browser blocks drill-through results shown inside EPM Cloud. See Frame Options and Content Security Policy.

  4. Run representative drill-through requests, including at least one from an EPM Cloud web form if users drill from EPM Cloud.

  5. Look at a drill-through report that uses the default Lumen theme. Lumen’s appearance changed in 4.0, so reports styled with their own Custom CSS, header, or footer may need adjusting. Setting a report’s Theme option to Lumen Classic restores the previous appearance.

  6. Install or start the service only after console verification succeeds.

  7. Retain the .h2.db.old file and timestamped conversion backup until verification is complete.

Third-party Drillbridge 3.x plugins are not binary-compatible with Drillbridge 4.0. Rebuild and migrate them for Java 17 and Jakarta APIs before enabling them.

Rollback

If conversion fails, confirm that the script restored the original .h2.db and review the timestamped upgrade_log.txt.

If conversion succeeds but application verification fails:

  1. Stop Drillbridge 4.0.

  2. Move the .mv.db aside for diagnosis. Do not open it with an older Drillbridge version.

  3. Rename the retained .h2.db.old to .h2.db, or restore the timestamped database backup.

  4. Restore the prior Drillbridge application directory and configuration.

  5. Start the prior Drillbridge version and verify service.

Application binaries and repository files must be rolled back together. Database backups and logical exports can contain sensitive configuration and should be protected accordingly.