Failed to restore snapshot to ES 5.5 with SearchGuard


(law lee) #1

hello everyone,
I'm using elasticsearch 5.5.1 with SearchGurd. I want to backup my indices, that's ok. it's done now.
But when i want to restore this snapshot, there is an error:

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

Does any one know what's wrong?
Thanks for your time!


(David Pilato) #2

What is the restore command you are sending?


(law lee) #3

hi dadoonet, here is my restore command:

curl  -XPOST -uMY_USERNAME:MY_PASSWD  http://127.0.0.1:19200/_snapshot/es_backup/pay-2017.12.15/_restore

(law lee) #4

I think i know the reason now.
I launched a test in my test environment.it was fine.But when i copy my backup files to "Aliyun OSS" then download to my repo , and restore , the error occurs.
so that's weird.


(David Pilato) #5

Do you have a full stack trace? Might give more clues.
May be there are some hidden files or searchguard is doing something bad? May be try without searchguard?


(law lee) #6

@dadoonet I found out! My backup files were damaged when upload to OSS storage. Thanks for your advice.


(system) #7

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