OX App Suite database update tasks and incremental schema upgrades

OX App Suite applies schema and data changes through update tasks that run by command, by first user login or by provisioning calls. This page explains how to control each trigger and upgrade schemas one at a time on large sites.

On this page

How OX App Suite database update tasks shape an upgrade

Database update tasks carry the schema and data changes between OX App Suite releases, so they decide how long an upgrade takes and which contexts are affected at each step. The operator controls when they run, but only if the site is configured so that no update happens by accident. Before planning a move from a 7.10 site on virtual machines to v8 on Kubernetes, the team should map every point where an update can start, because the supported path depends on which of those triggers are active.

There are three triggers. The first is a deliberate run of runupdate or runallupdate by the operator. The second is the first login of a user on a schema that still needs updates, unless com.openexchange.groupware.update.denyImplicitUpdateOnContextLoad is set to true. The third is provisioning calls, which can also apply pending changes. For a planned cutover, the team should decide in writing which trigger is allowed, set the denial key deliberately, and test that a login does not silently migrate a context outside the change window. Target versions for this path are v8 on Kubernetes, and the LTS line is the practical choice because its support window is longer than a standard release.

The topic facts describe the mechanism, not the content of each release. The list of update tasks for the exact source and target versions must come from the release documentation for the chosen LTS line and be checked against the team's own Helm values and database configuration in a staging environment. Ask the vendor to confirm which tasks are blocking, which run in the background, and how long each class is expected to take on a copy of production data.

What changes during a database update and what the team must do

This table compares the ways OX App Suite applies database changes during an upgrade, the constraints each path carries, and the action your team should take. Read each row as a question to answer for your site before the upgrade window is set. The main takeaway is that update tasks run through several triggers, so the team must control which trigger is allowed and confirm the platform versions before cutover.

Change or controlImpact on the upgradeAction needed
Update tasksCarry the schema and data changes that a release requires for each database schemaRun and review the update tasks for your target release in a test environment that matches production schema layout
Manual trigger (runupdate, runallupdate)Applies pending update tasks on demand, so timing is set by operatorsSchedule the run, record which schemas were updated, and confirm completion before reopening access
Implicit update on first loginA user's first login on an affected schema can start the pending update tasksConfirm the denyImplicitUpdateOnContextLoad setting before users are returned to service
denyImplicitUpdateOnContextLoadWhen set to true, login does not trigger the updates, so updates run only through explicit pathsSet and verify this key in your configuration, then check that the updates still run through the manual or provisioning path
Provisioning callsCan also apply pending updates during provisioning operationsAsk your team and any provisioning tooling which calls trigger updates and whether they are permitted during the window
Per-schema incremental upgrades (since 7.10.0)Upgrade individual schemas while the rest of the site stays available, aimed at sites with many contextsConfirm your 7.10.0 or later baseline, plan the schema order, and monitor each schema before moving to the next
Pre-8 database phaseBelow version 8, all contexts in the schema being upgraded are unavailable during the database upgrade phasePlan a maintenance window for each affected schema and communicate the expected user impact to stakeholders
v8 platform prerequisitesKubernetes deployment via Helm charts requires Helm 3.17.0 or newer, with MariaDB 10.6.x, 10.11.x, 11.4.x or 11.8.x and Redis 7.4.xConfirm each version in your target environment and ask the vendor or DeployOpen to validate the exact combination before the upgrade

Why blocking and background update tasks need different plans

The first thing to settle is which update tasks must finish before a schema serves traffic again and which can run afterward. The facts supplied describe the mechanism for the older releases: in versions below 8, all contexts in a schema being upgraded are unavailable during the database upgrade phase. That makes the blocking work the part of the upgrade that sets the outage window for each schema, and it should be planned as a downtime item rather than a background job. Since 7.10.0, individual schemas can be upgraded without downtime for the rest of the site, so the team can sequence blocking work one schema at a time instead of across the whole platform. Confirm with Open-Xchange which tasks in your target release are blocking and which are not, because the split determines how many schemas you can take offline together.

Identify the task list from the release notes for your target version and from the update task documentation in the OX middleware update tasks guide. The release notes tell you what changed in the release. The update task documentation explains how each change is applied and what triggers it. Work through both and match them against the release you are moving to, not the one you are leaving. Ask the vendor or your support contact to confirm any task that the documentation does not make clear, and record the answers in your change ticket.

Write the task list down before the first change window opens. Record each task, its schema scope, whether it is expected to block, and the trigger that will run it. This record is what you compare against the actual run output, and it is what your rollback and communication plans depend on. If an update task runs during a login you did not plan for, the list shows that it was not expected. Keep the list with the Helm values and schema inventory you test in staging, so the same record covers the rehearsal and the production run.

Choosing how update tasks run on your site

An operator starts the update tasks directly with runupdate for selected schemas or runallupdate for every schema on the site, inside a window you announce and staff in advance. This is the approach that gives the operations team the most control, because the timing, the order and the observation are all decided by people. It fits sites where the upgrade is a planned event, where change control requires a recorded start and end, and where the team wants to see each schema finish before the next one begins.

  • Control over timing: Work starts when the team is ready and stops when the window closes, so unplanned load does not arrive during business hours.
  • Visible progress: Operators can watch each task log and confirm completion before moving on.
  • Scope risk: runallupdate touches every schema at once, so a failure can affect the whole site unless you run schemas in stages.
  • Staff dependency: Someone has to be available for the full window, including for rollback decisions.

Before use, confirm the exact runupdate and runallupdate behavior for your release, rehearse the run on a copy of production data, and record which schemas are affected and how long each one blocks access.

How a schema moves through an incremental upgrade

The operator starts by choosing one schema and turning off implicit updates on login, so that no user's first login upgrades it at an uncontrolled moment. The schema is then upgraded with runupdate for that schema only, and the contexts in it are checked before the next schema is touched. If verification fails, the path returns to the pre-upgrade backup of that schema. Only after a clean result does the operator move on to the next schema.

Each schema is upgraded, verified and only then released before the next one starts.

Upgrading schemas one at a time on a large site

This sequence moves a large OX App Suite site through its schema updates one schema at a time, so that a problem stays contained to a single schema and each schema has a known rollback point before the next one starts.

  1. Inventory schemas and contexts

    The platform team lists every database schema on the site, the contexts each schema holds, and the current middleware version of each schema. This list is the control document for the rest of the sequence. Confirm with the site administrator which schemas hold production contexts and which hold test or lab contexts. The step is done when every schema has a named owner, a context count, and a version recorded in a shared tracker.

  2. Confirm implicit updates are denied

    Check that the middleware property com.openexchange.groupware.update.denyImplicitUpdateOnContextLoad is set to true on every node that serves logins. Without this setting, the first login of a user can trigger an update task on a schema outside the planned batch. Verify the value on each node, not only on one, and record the file and node where it was checked. The step is done when every node reports the same value and the change is recorded in the change log.

  3. Back up and verify each schema

    The database team takes a backup of each schema before any update task runs against it, and restores a copy to a scratch database to confirm it is readable. Record the backup identifier, time and checksum next to the schema in the inventory. This backup is the basis for the rollback point defined later in the sequence. The step is done when every schema in the next batch has a backup that has passed a restore test.

  4. Rehearse the upgrade on a pilot schema

    Choose one non-production schema that resembles the production data, then run the update with runupdate in a test environment built from the same images and Helm values as production. Review the update task output for errors and for any task that blocks logins. Compare the schema state before and after the run. The step is done when the pilot completes without errors and the team has written down any task that needed manual handling.

  5. Run runupdate on production schemas in batches

    Using the batch list from the inventory, the platform team runs runupdate against one production schema at a time, starting with the smallest batch. Watch the update task output and the middleware logs for each schema until the run returns. Pre-8 versions take all contexts in the schema offline during the database phase, so schedule each batch with the affected users and the support desk in mind. The incremental mode described in the documentation applies to schemas on 7.10.0 or later. The step is done when each schema reports that its update tasks have completed.

  6. Check login and mail per schema

    After each schema finishes, the operations team signs in with a test account from that schema, opens mail, sends and receives a message, and checks calendar and contacts. They also confirm that background update tasks, where present, have not stalled. Record the result against the schema in the tracker. The step is done when the test account completes each check and no errors appear in the middleware logs for that schema.

  7. Define a rollback point after each schema

    Before moving to the next schema, the change owner records the rollback point for the schema just completed, which is the verified backup taken in the third step and the version it was taken from. The owner also states who can authorize a rollback and how long the team will keep that backup. Confirm the rollback steps with the database and platform owners before the next batch begins. The step is done when every completed schema has a signed rollback point in the change record.

What to prepare before the first schema is touched

Schema changes are hard to reverse once they run against production data, so the work happens before the first update task. These cards cover the backups, dependency inventory, staging, baselines, user communication and decision rights that make a database update recoverable and observable.

Verified database backups and restore tests

Take a full MariaDB backup of every schema that an update task will touch, then restore it into a separate environment and confirm that contexts log in and show mail and calendar data. A backup that has never been restored is an assumption, not a recovery plan. Record who holds the restore procedure and how long a restore took in practice, so the rollback decision has real numbers behind it.

Update tasks docs

Inventory of schema-dependent custom logic

List every custom update task, extension, script, provisioning hook or reporting query that reads or writes the OX schema tables. Each item can break when an update task renames or restructures a column, so confirm each one against the target release notes before the upgrade window. Mark which items must be rewritten and which can be retested after the update.

Incremental upgrades docs

Staging on matching MariaDB and Redis versions

Build a staging environment that runs the same MariaDB major and minor line as production, using one of the supported versions: 10.6.x, 10.11.x, 11.4.x or 11.8.x. Match the Redis 7.4.x deployment model too, since cached session state can affect how a schema update appears to users. Staging is only useful for timing and failure analysis when the database engine and configuration match production.

Supported MariaDB lines
10.6.x to 11.8.x
Requirements page

Log and monitoring baseline

Capture normal values for database connections, query latency, middleware error rates, login failures and Redis memory before the first update runs. Without a baseline, a slow update task and an ordinary busy hour look identical. Confirm that middleware logs for update tasks are retained and searchable, and that someone can filter them by schema name.

User communication plan

Decide how users and administrators learn about the maintenance window, which contexts will be unavailable, and what happens if a user logs in during an update. In versions below 8, all contexts in a schema are unavailable during the database upgrade phase, so the message must name the affected schemas. Prepare the wording for a delay or rollback as well as for success.

Named rollback decision owner

Name one person with authority to stop a schema update, call a rollback and approve the return to service. Give that person explicit criteria, such as a failed update task, a backlog of errors after the first affected schema or a restore test that did not pass. Agree in advance who can join the call and how long the team waits before deciding.

What makes database upgrades take longer

This table lists the factors that change how long OX App Suite database update tasks take to plan, rehearse and run. Read each row as a direction of effect, then use the confirm column to turn your own environment into questions for a quote or internal estimate. The main takeaway is that schema count, custom logic and the number of environments to test usually matter more than raw data volume.

DriverEffect on effortWhat to ask for or confirm
Number of schemas and contextsMore schemas and contexts mean more update runs, more verification and more chances for a failed task. Upgrading one schema at a time reduces downtime impact but adds sequencing work.A schema and context inventory, the planned order of schema upgrades, and which contexts share a schema.
Schema sizeLarger schemas take longer to run each update task and to roll back. Effort rises mainly through rehearsal time and monitoring during the blocking phase.Row counts for the largest tables, a timed rehearsal on a production-sized copy, and the expected unavailability per schema.
Custom update logicCustom update tasks or site-specific data changes must be written, reviewed and tested against the target schema. Each one adds development and regression testing.A list of custom tasks or scripts, who owns them, and whether they run through runupdate or provisioning calls.
Galera or clustered database topologySchema changes in a Galera Cluster need careful node handling and replication checks. Failover during an update adds recovery work.The Galera or MariaDB version in use, node count, how writes are routed during updates, and the recovery procedure.
Distributed file system migration for attachmentsMoving PIM attachments and OX Drive files to NFS or object storage is a separate workstream. It must be verified alongside database changes and can extend the cutover window.The current storage location, target storage type, data volume, copy method and checksum verification plan.
Number of environments to testEach environment (lab, staging, pre-production) repeats the update sequence and verification. Fewer environments increase risk at cutover.How many non-production environments are planned, whether they mirror production schema layout, and who signs off each stage.
Availability requirementsStrict uptime targets narrow the maintenance windows and push teams toward incremental, per-schema upgrades. This adds planning, monitoring and communication effort.The agreed maintenance windows, the acceptable unavailability per schema, and whether the business accepts staged user communication.

Questions teams ask before upgrading OX App Suite schemas

How much does an outside partner cost for OX App Suite schema upgrades?

DeployOpen does not publish a price list, and the cost follows from a written scope. The main cost drivers are the number of schemas and contexts, how many update tasks each upgrade step applies, whether the work runs in a lab first, how much testing and rollback preparation is required, and how much of the work your team already has in place. Ask for a quote that lists each phase, what the partner delivers, what your team provides, and which items are one-time versus recurring, such as post-upgrade support. Ongoing support and continuous testing are available as retainers, so ask for those separately.

How long does the database update work take, and what decides it?

The duration depends on the size and count of schemas, the number of update tasks between your current release and the target, and whether the schemas are upgraded all at once or one at a time. Blocking tasks hold up a schema until they finish, so the amount of data they touch matters most. Your test runs in a non-production copy of the database give the best estimate, so ask the partner to base the timeline on measured runs. Confirm the target release with the OX App Suite Support Commitment before planning, because the release line you choose changes which changes must be applied.

What does our internal team need to provide for a schema upgrade?

Your team needs to provide access to a recent copy of the production databases, a clear list of sites, schemas and contexts in scope, and the middleware configuration that controls update behavior. You also need a named owner who can approve maintenance windows, a database administrator who can confirm backup and restore procedures, and someone who can answer questions about custom configuration or integrations. Confirm access requirements in the written scope so that testing does not stall while credentials or copies are arranged.

Can our own administrators run the update tasks without a partner?

Yes, a capable administrator can run update tasks with the documented commands, and many teams do so on small sites. The risk lies in the decisions around the commands: which schemas to upgrade first, how to handle contexts that are unavailable during the upgrade, how to confirm that every schema reached the same state, and how to roll back. Larger sites usually benefit from a partner because the sequence and verification steps multiply with each schema. Review the OX middleware update tasks documentation with your team to judge whether you have the skills in-house.

Do incremental upgrades remove all downtime during a schema upgrade?

No. Since 7.10.0, individual schemas can be upgraded without downtime for the rest of the site, which helps sites with many schemas. However, in versions below 8, every context in the schema being upgraded is unavailable during the database upgrade phase. Plan for a short outage for the affected schema, stagger those outages across schemas, and confirm the exact behavior for your target version in the incremental upgrades documentation. Communicate affected user groups before each step.

What happens if implicit updates run when users log in?

Database changes can be applied when the first user of an affected schema logs in, unless the middleware setting com.openexchange.groupware.update.denyImplicitUpdateOnContextLoad is set to true. An implicit update can therefore start during business hours, lock a schema, and delay the first login for many users at once. Set this key deliberately before the upgrade, and decide whether schema changes should only run through the explicit update commands in your maintenance window. Test the setting in the lab so you can see the login behavior before production.

Which schema changes should we review before the upgrade starts?

Review every blocking update task listed for your target release and any background tasks that touch large tables. Blocking tasks decide your outage window, while background tasks can still affect performance after the upgrade. Ask the partner to produce a list that maps each update task to its schema, its estimated impact from test runs, and its rollback option. This review also shows whether any custom modules or integrations depend on tables the tasks change.

Where update tasks touch the platform

The operator starts a run from a workstation with access to the cluster, and the middleware pods execute the update tasks from the runupdate or runallupdate commands. The tasks write schema and data changes to the MariaDB schemas, which is the step to watch closely because it changes stored data. Redis holds caching and session state, and the file store holds attachments and Drive files, which update tasks may reference but which the schema change itself does not rewrite. Check that the schemas you intend to change are the ones the run targets and that a current backup exists before the run starts.

Update tasks write to MariaDB, while Redis and the file store are accessed without schema changes.

How DeployOpen scopes and delivers a schema upgrade

DeployOpen plans and carries out OX App Suite database update tasks and incremental schema upgrades inside the client's own infrastructure, with the update order, trigger method and rollback path agreed before work starts. Engagements are fixed-scope, so the written scope defines what is tested, changed and handed over.

How we scope

  • Inventory every schema and context count, and confirm which update tasks each schema is still waiting to apply
  • Record how updates are triggered today, including whether implicit updates on login are blocked
  • Agree in writing whether the upgrade runs as one site-wide step or schema by schema, with the affected user impact stated
  • Confirm the Helm chart, Redis, MariaDB and file storage versions the upgrade depends on before scope is final

How we build

  • Rehearse update tasks on a copy of production schemas in a lab environment that mirrors the target configuration
  • Sequence runupdate and runallupdate steps per schema, with logs captured for each task and each schema
  • Set the implicit update denial option in the target configuration so login cannot trigger unplanned schema changes
  • Test background update tasks and check that affected contexts return to service before moving to the next schema

How we hand over

  • Deliver a runbook listing every update step, its expected output, its owner and the point at which to stop
  • Document the rollback position for each schema and the conditions under which rollback is used
  • Provide the test results, log captures and a list of open update tasks still pending after handover
  • Walk your operations and database teams through the procedure so they can repeat it on later schemas

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial upgrade is complete
  • Plan the next upgrade window against the support commitment dates published for each release line
  • Review update task logs after each upgrade wave and record anything that needs follow-up in the runbook
  • Confirm with your team that retainer scope covers future database update work before the first wave begins

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.