Snapshot Repository Missing
Severity:
High
Elasticsearch Version:
8.5.0
Problem
Snapshot operations fail due to non-existent snapshot repository
Root Cause
Configured snapshot repository is missing or not registered in Elasticsearch
How to Detect
Symptoms
- Snapshot creation fails with repository not found error
- Error logs indicating repository does not exist
- Failed snapshot status checks
Commands
GET _snapshot
GET _snapshot/<repository_name>
Remediation Steps
- Verify repository name in snapshot configuration
- Register the repository using PUT _snapshot/<repository_name> with correct settings
- Re-run the snapshot operation after repository registration
Prevention
- Implement validation checks for repository existence before snapshot operations
- Automate repository registration as part of deployment scripts
- Maintain documentation of configured repositories
Production Example
curl -XPUT 'http://localhost:9200/_snapshot/my_backup' -H 'Content-Type: application/json' -d'{"type": "fs", "settings": {"location": "/mount/backups/my_backup"}}'