# Restoring from snapshot locally "Some repositories contain errors"

**URL:** <https://discuss.elastic.co/t/restoring-from-snapshot-locally-some-repositories-contain-errors/264299>\
**Category:** Kibana\
**Created:** [February 15, 2021, 10:52am UTC](https://discuss.elastic.co/t/restoring-from-snapshot-locally-some-repositories-contain-errors/264299 "2021-02-15T10:52:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)\
**Post date:** [February 15, 2021, 10:52am UTC](https://discuss.elastic.co/t/restoring-from-snapshot-locally-some-repositories-contain-errors/264299/1 "2021-02-15T10:52:12Z")

</div>

Hi,

I have setup a local version of elasticsearch and kibana.

I want to restore an index from production to this local version.

I have created an s3 "repository" under Stack Management \> Snapshot and Restore.

After creating the repository when i go to the snapshot tab i can see the following messgaes. "Some repositories contain errors, Go to repositories to fix the errors." but in production this usually shows all the snapshots.

When i go back to the repository i just created like it suggested, there is no indication of any errors.

elasticsearch/kibana version: 7.9.3

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/1/d1ef5ac3f699491b28857e6872c1d71da8866f18.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/1/215b172d684b7faab0e2c0ed309af32df2cb85ee.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a063f204640345e36d625ff25794b18054eb409.png)

---

<div class="post-metadata">

**Author:** ![Yulia\_Cech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yulia_cech/32/83934_2.png) [@Yulia\_Cech](https://discuss.elastic.co/u/Yulia_Cech)\
**Post date:** [February 15, 2021, 4:05pm UTC](https://discuss.elastic.co/t/restoring-from-snapshot-locally-some-repositories-contain-errors/264299/2 "2021-02-15T16:05:14Z")

</div>

Hi @Kay_Khan,

it seems that Kibana can't load your repository information on the snapshots tab. Could you please paste what the request 'snapshots' returns in Network tab of Dev tools?  
(To access Dev tools, open Snapshots tab in Kibana, right click anywhere on the page and select 'Inspect'. In the Dev tools window, select 'Network' tab and reload 'Snapshots' tab. Then select 'snapshots' request)

 ![Screenshot 2021-02-15 at 17.00.30](https://us1.discourse-cdn.com/elastic/original/3X/0/0/0039fc53d9f5c599b0501681aa72eb246743dd2f.png)

---

<div class="post-metadata">

**Author:** ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)\
**Post date:** [February 15, 2021, 4:08pm UTC](https://discuss.elastic.co/t/restoring-from-snapshot-locally-some-repositories-contain-errors/264299/3 "2021-02-15T16:08:24Z")

</div>

@Yulia_Cech

Please see screenshot below of

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cf63eee15d8f0dd7faf81688f9619d185f1b84ff.png)

This suggests to me the message "Some repositories contain errors" is kind of a misleading message.

Why is the request timing out on this local version but on production its fine?

30000ms/30s is a little too quick to timeout, what if the backup contains many snapshots?

update:

on production the request to get snapshots takes 4 seconds, so i do believe 30 seconds should be enough. But for some reason locally it is having trouble requesting for snapshots and im not sure why

---

<div class="post-metadata">

**Author:** ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)\
**Post date:** [February 15, 2021, 4:34pm UTC](https://discuss.elastic.co/t/restoring-from-snapshot-locally-some-repositories-contain-errors/264299/4 "2021-02-15T16:34:16Z")

</div>

Local Setup:

```
version: '3.7'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
    environment:
      - cluster.name=docker-cluster
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - discovery.type=single-node
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - "9200:9200"
    command: >
      /bin/sh -c "./bin/elasticsearch-plugin list | grep -q repository-s3
      || ./bin/elasticsearch-plugin install --batch repository-s3;
      echo "<redacted>" | bin/elasticsearch-keystore add --stdin --force s3.client.default.access_key;
      echo "<redacted>"| bin/elasticsearch-keystore add --stdin --force s3.client.default.secret_key;
      /usr/local/bin/docker-entrypoint.sh"
  kibana:
    image: docker.elastic.co/kibana/kibana:7.9.2
    ports:
      - "5601:5601"

```

There are no clear error that appears in the docker container logs

You can see the response log from trying to retrieve snapshots

```auto
kibana_1 | {"type":"response","@timestamp":"2021-02-15T16:38:43Z","tags":[],"pid":7,"method":"get","statusCode":200,"req":{"url":"/api/snapshot_restore/snapshots","method":"get","headers":{"host":"localhost:5601","connection":"keep-alive","kbn-version":"7.9.2","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36","content-type":"application/json","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"http://localhost:5601/app/management/data/snapshot_restore/snapshots","accept-encoding":"gzip, deflate, br","accept-language":"en-GB,en-US;q=0.9,en;q=0.8"},"remoteAddress":"172.21.0.1","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36","referer":"http://localhost:5601/app/management/data/snapshot_restore/snapshots"},"res":{"statusCode":200,"responseTime":30018,"contentLength":9},"message":"GET /api/snapshot_restore/snapshots 200 30018ms - 9.0B"}

```

---

<div class="post-metadata">

**Author:** ![Yulia\_Cech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yulia_cech/32/83934_2.png) [@Yulia\_Cech](https://discuss.elastic.co/u/Yulia_Cech)\
**Post date:** [February 15, 2021, 4:44pm UTC](https://discuss.elastic.co/t/restoring-from-snapshot-locally-some-repositories-contain-errors/264299/5 "2021-02-15T16:44:57Z")

</div>

Hi @Kay_Khan,

you could use Dev Tools -\> Console in Kibana to update repository's timeout setting with a command similar to this  
 ![Screenshot 2021-02-15 at 17.39.13](https://us1.discourse-cdn.com/elastic/original/3X/a/b/abc4edbccbbe0431ba466aec1601f74cd40ff4d5.png)  
There is a link to [a docs section](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/put-snapshot-repo-api.html).

---

<div class="post-metadata">

**Author:** ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)\
**Post date:** [February 15, 2021, 4:53pm UTC](https://discuss.elastic.co/t/restoring-from-snapshot-locally-some-repositories-contain-errors/264299/6 "2021-02-15T16:53:26Z")

</div>

@Yulia_Cech

This does not work i modified yours slightly to fix with my repo type.

```auto
PUT _snapshot/aws-s3-repo
{
  "timeout": "300s",
  "type" : "s3",
  "settings" : {
    "bucket" : "<redacted>",
    "readonly" : "true",
    "client" : "default"
  }
}

```

I recieved an ack response

```auto
{
  "acknowledged" : true
}

```

**However, the snapshots request is still timing out after 30 seconds.**

---

<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:** [March 15, 2021, 4:54pm UTC](https://discuss.elastic.co/t/restoring-from-snapshot-locally-some-repositories-contain-errors/264299/7 "2021-03-15T16:54:05Z")

</div>

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