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 id | Status | Cause | What to do |
|---|---|---|---|
invalid_mappings | 400 | start: mappings is not a full model: no properties object, or a root key other than properties, dynamic, _meta | Fix the request |
invalid_renames | 400 | start: 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 target | Fix the request |
invalid_target | 400 | start: Elasticsearch refuses the target model or settings (its reason follows). Nothing was locked | Fix the model |
invalid_flag | 400 | Over HTTP, apply, allowFailures or subscribe is neither true, false nor the bare flag | Fix the request |
invalid_paging | 400 | failures with a negative from, a size out of 0–1000, from + size over 10,000, or from with after | Fix the request: page with after past 10,000 |
subscribe_unsupported | 400 | status with subscribe: true over HTTP | Fix: poll status, or use WebSocket / MQTT |
forbidden | 403 | Missing right on the target collection, named in the message (see Rights and roles) | Fix the rights |
progress_subscription | 403 | realtime:subscribe on the plugin's progress room | Fix: use status with subscribe: true |
progress_publish | 403 | realtime:publish on the plugin's progress room | Fix: only the plugin publishes there |
unknown_job | 404 | No 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 archived | Fix: check the jobId in status |
job_running | 412 | start while a migration is already running (one at a time across the cluster), or purge on the running job | Wait for it to end (status), then retry |
not_enough_disk_space | 412 | start: no room for a copy below Elasticsearch's high disk watermark (see Planning) | Fix: free space, purge old archives |
plan_changed | 412 | start with a fingerprint the plan computed now does not match: the collection's mapping or the request changed since the dry run | Fix: run the dry run again and review the new plan |
unsupported_engine | 412 | Kuzzle does not run on Elasticsearch 8 | Fix the platform |
invalid_config | 500 | A key of plugins.mapping-migration is not an integer in its range (see Configuration): Kuzzle does not start | Fix the configuration |
Kuzzle errors #
| Error id | Status | Cause | What to do |
|---|---|---|---|
services.storage.collection_locked | 503 | A 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 copied | Retry later, see Client applications |
services.storage.unknown_index, services.storage.unknown_collection | 412 | start on a collection that does not exist | Fix the request |
api.assert.missing_argument | 400 | status 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_nodes | 503 | The 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.