During a clustered upgrade from Splunk SOAR 6.4.0 to 8.5.0, an affected node can fail while applying required database schema migrations.
The upgrade displays the following error:
UPGRADE: DatabaseSchemaUpdating Splunk SOAR database schemaFailed to apply database migrations
Upgrade failed.
A database deadlock caused by concurrent database activity can interrupt schema changes and leave the migration state incomplete. Subsequent upgrade attempts might not reliably apply the remaining database changes.
A known timing issue can cause database activity from cluster services to interfere with schema migrations during an upgrade. The upgrade can stop with:
Failed to apply database migrations
django.db.utils.OperationalError: deadlock detected
This issue is intermittent, so a production upgrade can encounter it even when development testing succeeds.
Database migrations run on the inflection node: the node whose upgrade brings the number of upgraded nodes above 50% of the recorded cluster membership. For a three-node cluster, this is the second node in the upgrade order; for a five-node cluster, it is the third.
The following precautions apply to affected upgrade paths:
Three-node cluster: After upgrading the first node, stop the applicable services on the third node, which is still running the older version, before starting the upgrade of the second node (the inflection node). Run the service commands below on the third node.
Before upgrading the inflection node, list the services on the third node:
phantom_supervisord ctl status
Stop each running service except rabbitmq and consul, where those services are present:
phantom_supervisord ctl stop <name>
Replace <name> with the service name shown in the status output. For example:
phantom_supervisord ctl stop add_to_es_index
Expected response:
add_to_es_index: stopped
The example stops only add_to_es_index; repeat for the other running services, retaining the exceptions above. Run phantom_supervisord ctl status again to check their state.
Proceed with upgrading the second node and allow its database migration to complete. If migration fails, stop and follow If migration has already failed below.
After the database migration completes successfully, reactivate the services stopped on the third node.
Complete the remaining node upgrades, then verify cluster health and functionality.
Do not retry or continue the failed migration. Contact Splunk Support immediately. Do not change the database schema, migration records, or migration files while awaiting recovery instructions. Retrying can skip an incomplete migration or further complicate the database state, increasing recovery time.
Splunk Support can coordinate recovery, which may require reconciliation of migration state and modified migration files. The recovery procedure must be tailored to the affected environment; the prevention steps above do not repair an already incomplete migration.
The applicable fix is included in SOAR 8.5.0. The issue can still occur during the transition from an older affected version. Clusters already running 8.5.0 should not encounter this issue again.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
18-Nov-2026
|
Initial Release |