elasticsearch config_error ai_generated true

仓库验证异常:[my_azure_repo] 验证失败:blob容器[my-container]不存在

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

ID: elasticsearch/repository-azure-invalid-container

其他格式: JSON · Markdown 中文 · English
95%修复率
90%置信度
1证据数
2024-01-05首次发现

版本兼容性

版本状态引入弃用备注
7.17.10 active
8.10.0 active
8.13.2 active

根因分析

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

English

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

generic

官方文档

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

解决方案

  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" } }更新

无效尝试

常见但无效的做法:

  1. 95% 失败

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

  2. 85% 失败

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