Snapshot Repository - Cannot find files

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

{
    "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

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

elasticsearch.yml

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

/_notes/

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

...

                "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

{
    "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????

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?

You may duplicate this with a standard homestead box.

Homestead.yaml

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

	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;

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

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

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