# Snapshot Repository - Cannot find files

**URL:** <https://discuss.elastic.co/t/snapshot-repository-cannot-find-files/225781>\
**Category:** Elasticsearch\
**Created:** [March 31, 2020, 4:23am UTC](https://discuss.elastic.co/t/snapshot-repository-cannot-find-files/225781 "2020-03-31T04:23:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artistan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artistan/32/12160_2.png) [@Artistan](https://discuss.elastic.co/u/Artistan)\
**Post date:** [March 31, 2020, 4:23am UTC](https://discuss.elastic.co/t/snapshot-repository-cannot-find-files/225781/1 "2020-03-31T04:23:41Z")

</div>

I have a snapshot repository setup and I can see the snapshot via the API but I cannot see the files. Here are the details...

## elastic.local?9200

```auto
{
    "name": "r7Zx_d6",
    "cluster_name": "homestead",
    "cluster_uuid": "E8GHmq3LTW6H_R1mZHuJxw",
    "version": {
        "number": "6.6.1",
        "build_flavor": "default",
        "build_type": "deb",
        "build_hash": "1fd8f69",
        "build_date": "2019-02-13T17:10:04.160291Z",
        "build_snapshot": false,
        "lucene_version": "7.6.0",
        "minimum_wire_compatibility_version": "5.6.0",
        "minimum_index_compatibility_version": "5.0.0"
    },
    "tagline": "You Know, for Search"
}

```

## /\_snapshot/\_all

```auto
{
    "billing-transactions_march-2020": {
        "type": "fs",
        "settings": {
            "compress": "true",
            "location": "/tmp/elasticsnaps/billing-transactions_march-2020"
        }
    }
}

```

## elasticsearch.yml

```auto
path.repo: ["/tmp/elasticsnaps"]

```

## /\_notes/

to show that elasticsearch has the path.repo set...

```auto
...

                "path": {
                    "data": [
                        "/var/lib/elasticsearch"
                    ],
                    "logs": "/var/log/elasticsearch",
                    "home": "/usr/share/elasticsearch",
                    "repo": [
                        "/tmp/elasticsnaps"
                    ]
                },
...

```

## status of the snapshot

/\_snapshot/billing-transactions\_march-2020/\_all

```auto
{
    "snapshots": [
        {
            "snapshot": "archive_billing-transactions_2020-03-30",
            "uuid": "h6c85RaSTrCxgVpiPzkYYg",
            "version_id": 6060199,
            "version": "6.6.1",
            "indices": [
                "billing-transactions_2020-01",
                "billing-transactions_2019-10",
                "billing-transactions_2019-11",
                "billing-transactions_2019-12",
                "billing-transactions_2020-02"
            ],
            "include_global_state": true,
            "state": "SUCCESS",
            "start_time": "2020-03-30T22:23:28.071Z",
            "start_time_in_millis": 1585607008071,
            "end_time": "2020-03-30T22:23:28.836Z",
            "end_time_in_millis": 1585607008836,
            "duration_in_millis": 765,
            "failures": [
                
            ],
            "shards": {
                "total": 5,
                "failed": 0,
                "successful": 5
            }
        }
    ]
}

```

## directory listing is EMPTY????

```auto
root@elastictools:/tmp/elasticsnaps# ls -alh
total 8.0K
drwxr-xr-x 2 elasticsearch elasticsearch 4.0K Mar 31 04:11 .
drwxrwxrwt 18 root root 4.0K Mar 31 04:09 ..

```

again. the point is that I cannot find the snapshot files. Can you help?

---

<div class="post-metadata">

**Author:** ![Artistan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artistan/32/12160_2.png) [@Artistan](https://discuss.elastic.co/u/Artistan)\
**Post date:** [March 31, 2020, 4:49am UTC](https://discuss.elastic.co/t/snapshot-repository-cannot-find-files/225781/2 "2020-03-31T04:49:46Z")

</div>

You may duplicate this with a standard homestead box.

## Homestead.yaml

```auto
ip: 192.168.10.30
name: elastictools
hostname: elastictools
memory: 2048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
    - ~/.ssh/id_rsa
variables:
    - key: APP_ENV
      value: local

folders:
    - map: ../
      to: /home/vagrant/elastictools
sites:
    - map: elastictools.local
      to: /home/vagrant/elastictools/public
      php: "7.2"

databases:
    - elastictools
features:
    - ohmyzsh: true
    - elasticsearch:
        version: "6.6.1"
ports:
    - send: 9200
      to: 9200
      protocol: tcp

```

# Bash updates to the VM

with some simple modifications

```auto
	sudo bash -c 'echo network.host: ["_local_","_site_"] >> /etc/elasticsearch/elasticsearch.yml';
	sudo bash -c 'echo path.repo: "/tmp/elasticsnaps" >> /etc/elasticsearch/elasticsearch.yml';
	sudo service elasticsearch restart;

```

---

<div class="post-metadata">

**Author:** ![Artistan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/artistan/32/12160_2.png) [@Artistan](https://discuss.elastic.co/u/Artistan)\
**Post date:** [March 31, 2020, 2:50pm UTC](https://discuss.elastic.co/t/snapshot-repository-cannot-find-files/225781/3 "2020-03-31T14:50:43Z")

</div>

Looks like the vagrant homestead box from Laravel is using Private Temp directories, this will not work with elasticsearch.

> **[Apache, PHP, Systemd and PrivateTemp](https://fluca1978.github.io/2018/04/19/ApacheSystemdPrivateTemp.html)**
>
> While systemd is a great tool, the way it is (ad)used by Linux distributions could make developers spend a few hours trying to solve stupid and trivial problems… as writing a simple file to /tmp!

I ended up moving the repository-snapshots to `/home/vagrant/repository-snapshots`

---

<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 28, 2020, 2:50pm UTC](https://discuss.elastic.co/t/snapshot-repository-cannot-find-files/225781/4 "2020-04-28T14:50:48Z")

</div>

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