Getting error to run the snapshot script to back up indexes

(Ganesh) #1

i want to take back up my indices using snapshot and my ES is running on docker, "docker-cluster" lpdosput020008.node
node.master: true false
node.ingest: false false true
path.repo: ["/usr/share/elasticsearch/snapshot"] ["","","","","",""]
discovery.zen.minimum_master_nodes: 2
#xpack.license.self_generated.type: trial true
#xpack.monitoring.enabled : true true /usr/share/elasticsearch/config/elasticsearch/elasticsearch.key /usr/share/elasticsearch/config/elasticsearch/elasticsearch.crt none certificate

I have defined the snapshot path in es yml and getting below error while running below,

PUT /_snapshot/test
    "type": "fs",
    "settings": {
        "location": "/usr/share/elasticsearch/snapshot",
        "compress": true

Error msg:

  "error": {
    "root_cause": [
        "type": "exception",
        "reason": "failed to create blob container"
    "type": "exception",
    "reason": "failed to create blob container",
    "caused_by": {
      "type": "access_denied_exception",
      "reason": "/usr/share/elasticsearch/snapshot/tests-5ZGUmWT4Tg2oa5_gte4Dbw"
  "status": 500

(system) closed #2

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