Path.repo is not being updated by elasticsearch.yml file

Hi, I'd like to thank you in advance for your reply.

i am going through hard tasks.
our team use ES 7.13.12 and wants to migrate (& upgrade) to docker ELK 8.10.2

according to ES document, i should go through 7.17.13 before going to 8.10.2.
so, i set up dockers for 7.17 and 8.10

my plan is to take snapshots on original ELK (v7.13.12)
-> then restore on ELK v7.17.13 (does this process reindex indices automatically??)
--> then take snapshots on ELK v7.17.13
---> then restore on ELK v8.10.2

restoring process went through Restore an entire cluster

path.repo defined in docker-compose.yml is well recognized
i checked through below prompt

curl -k -u elastic:pwd -X GET https://localhost:PORT/_nodes/?pretty
"path" : {
          "logs" : "/usr/share/elasticsearch/logs",
          "home" : "/usr/share/elasticsearch",
          "repo" : [
            "/nas_data/es_backup/iddx"
          ]
        },

but path.repo that i typed inside elasticsearch.yml (inside docker container) is not recognized
this is the line i added to elasticsearch.yml

path.repo: ["/nas_data/es_backup/iddx/", "/nas_data/es_backup/djtest"]

i restarted docker, checked authority of directory, but path.repo is not updated. ( iddx directory is what i wrote down in docker-compose.yml at first)

i searched through so much documents but i couldn't find solutions so please help me
i saw some webpage about

java -version

but i'm not sure

Are you following these documents for migration?

Upgrade to Elastic 8.9.1 | Elastic Installation and Upgrade Guide [8.9] | Elastic
and
Upgrade Elasticsearch | Elastic Installation and Upgrade Guide [8.9] | Elastic

What is the exact error are you getting? Please elaborate more.

Thanks, but one of my question is that

even though i modified elasticsearch.yml inside docker-container,

root@09161caa83e4:/usr/share/elasticsearch/config# cat elasticsearch.yml
cluster.name: "docker-cluster"
network.host: 0.0.0.0
path.repo: ["/nas_data/es_backup/iddx", "/nas_data/es_backup/djtest"]

i got the error message "Cannot register new repository, failed to create repository

"Caused by: org.elasticsearch.repositories.RepositoryException: [ddd] location [/nas_data/es_backup/djtest] doesn't match any of the locations specified by path.repo",
"at org.elasticsearch.repositories.fs.FsRepository.<init>(FsRepository.java:112) ~[elasticsearch-7.17.13.jar:7.17.13]",
"at org.elasticsearch.repositories.RepositoriesModule.lambda$new$0(RepositoriesModule.java:45) ~[elasticsearch-7.17.13.jar:7.17.13]",
"at org.elasticsearch.repositories.Repository$Factory.create(Repository.java:66) ~[elasticsearch-7.17.13.jar:7.17.13]",
"at org.elasticsearch.repositories.RepositoriesService.createRepository(RepositoriesService.java:658) ~[elasticsearch-7.17.13.jar:7.17.13]",
"... 73 more"] }

of course i restarted docker, checked authentication of directory
but it seems that the change doesn't take effect at all.

Are you running this in a cluster mode or as a single node? If in cluster mode, make sure all the nodes have same value of path.repo

Still if it doesn't work, try clearing your complete data and place the paths again and restart elastic.

i have tested on both environment. (single node, multi node)

and i set-up new docker container so it does not contain any data.

so strange..

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