Rehearse migration and recovery on separate copies
We restored the MariaDB backup of the fictional 2.5.53 lab into a new Docker project and ran the official migration CLI from the 3.0_wip source at commit 76dc5858bc2a0bb9fb9729de1b9ef6b16e14257d. We restored the same backup into another 2.5.53 instance to verify recovery through the old application.
The test used Apple Silicon arm64, MariaDB 10.11.20, and PHP CLI 8.4.28. The 3.0 checks cover offline database migration and data read-back. The production web runtime, workers, attachments, GPG material, and full service cutover require their own acceptance checks.
Download the complete Docker rehearsal commands · Official MISP upgrade guide for Ubuntu
Establish a recovery point and comparison data
Pause exercise writers
Complete
verify.pyand stop sample-writing jobs before taking the backup.Preserve the source database and configuration
Take a separate
mariadb-dump --single-transactionbackup. Keep the matching Compose,.env, and application configuration in a protected local directory. Back up attachments, signing material, and encryption keys when preparing production recovery.Record the fields to compare
Use the fixed Event UUID. Record publication, Distribution, and the UUID, type, detection flag, and value of all six Attributes, including the Object fields. Record the Object UUID as well.
Run the 3.0 migration against the isolated copy
Restore the 2.5 backup to a new MariaDB instance. Pin the target Git revision and CakePHP submodule and install the target Composer dependencies. Generate the CLI bootstrap and core configuration from the target defaults, then point the copied database and Redis configuration at the isolated services. The CLI rehearsal disables target background jobs.
Console/cake Admin schemaDiagnostics
Console/cake Admin runUpgrade
Console/cake Admin schemaDiagnostics
Console/cake AttributeValue verifyThe first diagnostics found 132 pending migrations. The run reported Upgrade complete. and the second diagnostics showed Pending: 0 and Failed: 0. The value verifier checked seven dictionary entries and their hashes.
Compare the source and migrated values
MISP 3.0 resolves values through value1_id and value2_id in the attribute_values dictionary. The dictionary verification runs after the legacy text columns have been removed, so it cannot compare directly with pre-upgrade values.
We compared the migrated copy with the database restored from the same backup. Event publication and Distribution matched, as did UUIDs, types, values, and to_ids for six Attributes and the UUID of one Object.
Verify recovery using a clean 2.5 project
Leave the migrated copy available for comparison. Restore the original backup into the third Compose project and start the pinned 2.5.53 services. Use password login and the Auth key check to confirm the session and software version, then verify the same Event and its children over the API.
A production rollback should restore compatible code, database, configuration, files, and keys from the same recovery point. The official upgrade guide also requires restarting PHP and checking workers and recorrelation when reopening the upgraded instance.
MISP database migration rehearsal · 2026-12-02 (Asia/Taipei)
Source: MISP 2.5.53 | MariaDB 10.11.20
Target: MISP 3.0_wip @ 76dc5858bc2a0bb9fb9729de1b9ef6b16e14257d | PHP 8.4.28
Evidence excerpts from isolated database and CLI projects
Before: Console/cake Admin schemaDiagnostics
# Database
db_version: 159
# Migrations
Applied: 10
Failed: 0
Deferred: 0
Pending: 132
Console/cake Admin runUpgrade
Upgrade complete.
After: Console/cake Admin schemaDiagnostics
# Database
db_version: 159
# Migrations
Applied: 142
Failed: 0
Deferred: 0
Pending: 0
Console/cake AttributeValue verify
attributes: no text columns left to check the ids against.
shadow_attributes: no text columns left to check the ids against.
dictionary: 7 rows, 0 not matching their hash, 0.0 s.
All rows verified.
Independent 2.5 restore and before/after comparison
PASS 2.5.53 web login, authenticated session and API read after SQL restore.
PASS 2.5 restore and 3.0 converted copy match for Event metadata, 6 Attribute UUIDs/types/to_ids/values, and 1 Object.
Your reading progress is saved in this browser.
This browser blocked storage. Reloading may clear this session’s progress.