Unable to create backup/snapshot to AWS S3


(Niraj Kumar) #1

Hi All,

I am trying to take a backup of my elasticsearch but somehow it isn't working.

Versions Used:-
ES:- 1.5.0
Cloud-AWS:- 2.5.0

Command used(using postman with PUT):- https://url/es/_snapshot/backup/backup3
{
"indices": "logstash-*",
"ignore_unavailable": "true",
"include_global_state": false
}

It says that it accepted with a message {accepted: true} but when i go and check the status for it. I get the below error on the screen.

{
"snapshots": [
{
"snapshot": "backup3",
"repository": "backup",
"state": "SUCCESS",
"shards_stats": {
"initializing": 0,
"started": 0,
"finalizing": 0,
"done": 0,
"failed": 20,
"total": 20
},
"stats": {
"number_of_files": 0,
"processed_files": 0,
"total_size_in_bytes": 0,
"processed_size_in_bytes": 0,
"start_time_in_millis": 0,
"time_in_millis": 0
},
"indices": {
"logstash-0015.09.17": {
"shards_stats": {
"initializing": 0,
"started": 0,
"finalizing": 0,
"done": 0,
"failed": 5,
"total": 5
},
"stats": {
"number_of_files": 0,
"processed_files": 0,
"total_size_in_bytes": 0,
"processed_size_in_bytes": 0,
"start_time_in_millis": 0,
"time_in_millis": 0
},
"shards": {
"0": {
"stage": "FAILURE",
"stats": {
"number_of_files": 0,
"processed_files": 0,
"total_size_in_bytes": 0,
"processed_size_in_bytes": 0,
"start_time_in_millis": 0,
"time_in_millis": 0
},
"reason": "IndexShardSnapshotFailedException[[logstash-0015.09.17][0] INSTANCE]; nested: NoSuchFieldError[INSTANCE]; "
},
"1": {
"stage": "FAILURE",
"stats": {
"number_of_files": 0,
"processed_files": 0,
"total_size_in_bytes": 0,
"processed_size_in_bytes": 0,
"start_time_in_millis": 0,
"time_in_millis": 0
},
"reason": "IndexShardSnapshotFailedException[[logstash-0015.09.17][1] INSTANCE]; nested: NoSuchFieldError[INSTANCE]; "
},
"2": {
"stage": "FAILURE",
"stats": {
"number_of_files": 0,
"processed_files": 0,
"total_size_in_bytes": 0,
"processed_size_in_bytes": 0,
"start_time_in_millis": 0,
"time_in_millis": 0
},
"reason": "IndexShardSnapshotFailedException[[logstash-0015.09.17][2] INSTANCE]; nested: NoSuchFieldError[INSTANCE]; "
},

Can anyone let me know what can be the issue.

FYI:- The access key and secret key are all correct with proper admin privilege.

Help!!!

--Niraj


(David Pilato) #2

Did you try to upgrade to 1.7 as I invited you there? https://github.com/elastic/elasticsearch/issues/13114#issuecomment-137685716


(Niraj Kumar) #3

Hi,

I have a production server and i believe i am avoiding this step of upgrading to 1.7. Anything else as a part of triaging will help.

Regards
Niraj


(system) #4