Error while creating snapshot

I found following error while creating snopshot using URL :

{"error":"RepositoryException[[temp] failed to create repository]; nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.common.blobstore.BlobStoreException: Failed to create directory at [backup]\n at org.elasticsearch.repositories.fs.FsRepository.(Unknown Source)\n while locating org.elasticsearch.repositories.fs.FsRepository\n while locating org.elasticsearch.repositories.Repository\n\n1 error]; nested: BlobStoreException[Failed to create directory at [backup]]; ","status":500}

Could you please someone look into this and help me

can you share the Elasticsearch and JVM version, as well as the exception in your log files.

In addition please also show the response of your snapshot operation with the error_trace=true parameters and add the full JSON response here.


Thank for the reply @spinscale

I could resolve this issue by setting up ownership to backup directory
chown -R elasticsearch:elasticsearch $BACKUP_DIR

1 Like

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