This plugin is part of the Kuzzle Enterprise Plan. If you are interested, please contact us.

Errors #

The plugin's own error ids start with plugin.mapping-migration.. The package exports them as MAPPING_MIGRATION_ERROR_IDS (type MappingMigrationErrorId), for clients to match on. Kuzzle's own errors that a migration can cause are listed at the end.

What to do: fix the request, the rights, the data or the platform; wait for something to end, then retry; retry later as is.

Plugin errors #

Error idStatusCauseWhat to do
invalid_mappings400start: mappings is not a full model: no properties object, or a root key other than properties, dynamic, _metaFix the request
invalid_renames400start: a rename's old path is not a field of the collection or is still in the target, or its new path is not a new field of the targetFix the request
invalid_target400start: Elasticsearch refuses the target model or settings (its reason follows). Nothing was lockedFix the model
invalid_flag400Over HTTP, apply, allowFailures or subscribe is neither true, false nor the bare flagFix the request
invalid_paging400failures with a negative from, a size out of 0–1000, from + size over 10,000, or from with afterFix the request: page with after past 10,000
subscribe_unsupported400status with subscribe: true over HTTPFix: poll status, or use WebSocket / MQTT
forbidden403Missing right on the target collection, named in the message (see Rights and roles)Fix the rights
progress_subscription403realtime:subscribe on the plugin's progress roomFix: use status with subscribe: true
progress_publish403realtime:publish on the plugin's progress roomFix: only the plugin publishes there
unknown_job404No job with this jobId (or no job at all); for purge and failures, also a job already purged; for status, a job neither current nor archivedFix: check the jobId in status
job_running412start while a migration is already running (one at a time across the cluster), or purge on the running jobWait for it to end (status), then retry
not_enough_disk_space412start: no room for a copy below Elasticsearch's high disk watermark (see Planning)Fix: free space, purge old archives
plan_changed412start with a fingerprint the plan computed now does not match: the collection's mapping or the request changed since the dry runFix: run the dry run again and review the new plan
unsupported_engine412Kuzzle does not run on Elasticsearch 8Fix the platform
invalid_config500A key of plugins.mapping-migration is not an integer in its range (see Configuration): Kuzzle does not startFix the configuration

Kuzzle errors #

Error idStatusCauseWhat to do
services.storage.collection_locked503A write on a collection being copied (any client, not only the plugin's caller); or start on a collection locked by someone else, or new fields applied in place on a collection being copiedRetry later, see Client applications
services.storage.unknown_index, services.storage.unknown_collection412start on a collection that does not existFix the request
api.assert.missing_argument400status with index but no collection, or the reverse; purge without jobId; start without index, collection or mappings (api.assert.body_required without a body at all)Fix the request
api.process.not_enough_nodes503The cluster fell below Kuzzle's cluster.minimumNodes: every request is refused, the job goes on (see Planning)Wait for the nodes to come back

Network errors and other 5xx from Kuzzle can be retried with a growing delay; check status first, since the action may have gone through.