Restore a snapshot Error not_x_content_exception

I've created the repo "restore".

When I call:

POST /_snapshot/restore/connect/_restore

I'll get the following error:

{
  "error": {
    "root_cause": [
      {
        "type": "not_x_content_exception",
        "reason": "not_x_content_exception: Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
      }
    ],
    "type": "not_x_content_exception",
    "reason": "not_x_content_exception: Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
  },
  "status": 500
}

The source index snapshot is from ESv6.7.0 and restore environment is ESv7.0.1.

Is there anything I need to consider?

This typically happen when one of the files in the snapshot getting truncated or the request body contains something that confuses the x content parser. Do you see a stack trace for this error in the log file? Can you list the files with their lengths in the snapshot directory? Are you using Kibana to execute restore or send this command in some other way?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.