Events Service Data Migration Failure: Shard Count Mismatch
Events Service data migration fails with the following errors:
-
Check the
{HOME}/migration-tool/SERVICE-MIGRATION-STATUS.txtfile to verify the Events Service data migration status.CODEMigration Status - Updated: 2025-12-09 13:24:55 ==================================================== EUM | Status: running SYNTH | Status: running CONTROLLER | Status: saturated EVENTS | Status: failed ==================================================== -
If the Events Service data migration status is
failed, in some logs, you may observe the following pattern:PYTHONconfig_manager - restore_worker - ERROR - Elasticsearch-migration-restore-worker: Restore submit failed: ApiError(500, 'snapshot_restore_exception', '[appdynamics-analytics-backup:<snapshot_name>/<snapshot_id>] cannot restore index [<index_name>] with [<index_shard_count_1>] shards from a snapshot of index [<index_name>] with [<index_shard_count_2>] shards')Example log:PYTHONconfig_manager - restore_worker - ERROR - Elasticsearch-migration-restore-worker: Restore submit failed: ApiError(500, 'snapshot_restore_exception', '[appdynamics-analytics-backup:snapshot_20260223_131558/smjrnOQhREWIsKX9R6U7Ag] cannot restore index [appdynamics_schemas] with [1] shards from a snapshot of index [appdynamics_schemas] with [3] shards')
This error pattern appear if there is a mismatch in the shard count between classic and VA for the same index names. As a result, the data migration for those indices fail.
Delete the problematic index on Virtual Appliance so that the migration tool can correctly sync the shard count for such indices during data migration.