# Error in getting all the snapshots under a repository

**URL:** <https://discuss.elastic.co/t/error-in-getting-all-the-snapshots-under-a-repository/266034>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [March 3, 2021, 1:13am UTC](https://discuss.elastic.co/t/error-in-getting-all-the-snapshots-under-a-repository/266034 "2021-03-03T01:13:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yabhishek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yabhishek/32/82979_2.png) [@yabhishek](https://discuss.elastic.co/u/yabhishek)\
**Post date:** [March 3, 2021, 1:13am UTC](https://discuss.elastic.co/t/error-in-getting-all-the-snapshots-under-a-repository/266034/1 "2021-03-03T01:13:19Z")

</div>

Hi,  
I have registered a repository named repo123 to use one of my AWS buckets for storing snapshots. When I run

```auto
 GET _snapshot/repo123

```

it returns the output as expected, containing repo name -

```auto
{"repo123":{"type":"s3","settings":{"bucket":"<bucketName>","region":"us-east-1"}}}

```

But when I run

```auto
GET _snapshot/repo123/_all

```

I am getting following exception and don't know what the reason could be -

```auto
{"error":{"root_cause":[{"type":"remote_transport_exception","reason":"[qaes-upgradedadata2][10.109.13.112:9300][cluster:admin/snapshot/get]"}],"type":"illegal_state_exception","reason":"Can't get text on a FIELD_NAME at 1:360"},"status":500}

```

I wasn't getting this exception a while ago and this is not even allowing me to take a new snapshot. I am running Elasticsearch 6.6.2. Node mentioned in the exception [10.109.13.112:9300] is running and is healthy

```auto
[kompuser@qaes-upgradedadata2 ~]$ get _cat/health
1614734160 01:16:00 es-upgrade green 3 3 20 10 0 0 0 0 - 100.0%
[kompuser@qaes-upgradedadata2 ~]$ 

```

It is the master as well as data node -

```auto
[kompuser@qaes-upgradedadata2 ~]$ get _cat/nodes
10.109.13.74 24 94 0 0.00 0.03 0.24 md - qaes-upgradedadata3
10.109.13.112 25 96 0 0.00 0.02 0.20 md * qaes-upgradedadata2
10.109.12.214 20 93 3 0.00 0.04 0.36 md - qaes-upgradedadata1
[kompuser@qaes-upgradedadata2 ~]$

```

---

<div class="post-metadata">

**Author:** ![morningsu](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@morningsu](https://discuss.elastic.co/u/morningsu)\
**Post date:** [March 8, 2021, 8:41pm UTC](https://discuss.elastic.co/t/error-in-getting-all-the-snapshots-under-a-repository/266034/2 "2021-03-08T20:41:02Z")

</div>

I'm also getting similar error message when trying to create a snapshot against elasticsearch 6.8.14

`{ "error": { "root_cause": [{ "type": "illegal_state_exception", "reason": "Can't get text on a FIELD_NAME at 1:176" }], "type": "illegal_state_exception", "reason": "Can't get text on a FIELD_NAME at 1:176" } `

repository registration works fine though.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 5, 2021, 8:41pm UTC](https://discuss.elastic.co/t/error-in-getting-all-the-snapshots-under-a-repository/266034/3 "2021-04-05T20:41:59Z")

</div>

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