elasticsearch config_error ai_generated true

RepositoryVerificationException: [my_azure_repo] verification failed: blob container [my-container] does not exist

ID: elasticsearch/repository-azure-invalid-container

Also available as: JSON · Markdown · 中文
95%Fix Rate
90%Confidence
1Evidence
2024-01-05First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
7.17.10 active — — —
8.10.0 active — — —
8.13.2 active — — —

Root Cause

The Azure Blob Storage container specified in the snapshot repository settings does not exist or the storage account name is incorrect.

generic

中文

快照仓库设置中指定的Azure Blob存储容器不存在或存储账户名称错误。

Official Documentation

https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-azure.html

Workarounds

  1. 95% success Create the Azure Blob Storage container using Azure CLI: az storage container create --name my-container --account-name myaccount, then re-register the repository: PUT _snapshot/my_azure_repo { "type": "azure", "settings": { "container": "my-container", "account": "myaccount" } }
    Create the Azure Blob Storage container using Azure CLI: az storage container create --name my-container --account-name myaccount, then re-register the repository: PUT _snapshot/my_azure_repo { "type": "azure", "settings": { "container": "my-container", "account": "myaccount" } }
  2. 90% success Verify the container exists and correct the repository settings: GET _snapshot/my_azure_repo, then update with PUT _snapshot/my_azure_repo { "type": "azure", "settings": { "container": "correct-container" } }
    Verify the container exists and correct the repository settings: GET _snapshot/my_azure_repo, then update with PUT _snapshot/my_azure_repo { "type": "azure", "settings": { "container": "correct-container" } }

中文步骤

  1. 使用Azure CLI创建Blob容器:az storage container create --name my-container --account-name myaccount,然后重新注册仓库:PUT _snapshot/my_azure_repo { "type": "azure", "settings": { "container": "my-container", "account": "myaccount" } }
  2. 验证容器是否存在并更正仓库设置:GET _snapshot/my_azure_repo,然后用PUT _snapshot/my_azure_repo { "type": "azure", "settings": { "container": "correct-container" } }更新

Dead Ends

Common approaches that don't work:

  1. 95% fail

    The container must already exist in Azure Blob Storage; Elasticsearch does not create containers automatically

  2. 85% fail

    The authentication may succeed but the container still does not exist, causing the same verification failure