Azure snapshot issue - getting: blob_storage_exception","reason":"Status code 400, "\nBlobTypeNotSupportedBlock blobs are not supported

Elasticsearch Version

Version: 8.2.3, Build: default/docker/9905bfb62a3f0b044948376b4f607f70a8a151b4/2022-06-08T22:21:36.455508792Z, JVM: 18.0.1.1

Installed Plugins

No response

Java Version

bundled

OS Version

Linux elasticsearch-ss-0 5.4.0-1103-azure #109~18.04.1-Ubuntu SMP Wed Jan 25 20:53:00 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Problem Description

We are not able to create, verify and use repository in Azure storage account. We are receiving the following message:
curl -X PUT "localhost:9200/*snapshot/lab_backup/%3Cmy_snapshot*%7Bnow%2Fd%7D%3E?pretty" { "accepted" : true } elasticsearch@elasticsearch-ss-0:~$ curl -X PUT "localhost:9200/*snapshot/lab_backup/lab_snapshot* date +"%Y.%m.%d"?wait_for_completion=true" {"error":{"root_cause":[{"type":"snapshot_exception","reason":"[lab_backup:lab_snapshot_2023.03.27/Jf2Dej8lTqOQ0L3kYXf8yg] failed to update snapshot in repository"}],"type":"snapshot_exception","reason":"[lab_backup:lab_snapshot_2023.03.27/Jf2Dej8lTqOQ0L3kYXf8yg] failed to update snapshot in repository","caused_by":{"type":"blob_storage_exception","reason":"Status code 400, " \nBlobTypeNotSupportedBlock blobs are not supported.\nRequestId:bc4cb5e8-a01c-004b-4985-60dd95000000\nTime:2023-03-27T08:24:16.9573320Z"","suppressed":[{"type":"exception","reason":"#block terminated with an error"},{"type":"blob_storage_exception","reason":"Status code 400, " \nBlobTypeNotSupportedBlock blobs are not supported.\nRequestId:bc4cb5f6-a01c-004b-5785-60dd95000000\nTime:2023-03-27T08:24:16.9712714Z"","suppressed":[{"type":"exception","reason":"#block terminated with an error"}]},{"type":"blob_storage_exception","reason":"Status code 400, " \nBlobTypeNotSupported`

elasticsearch@elasticsearch-ss-0:~$ curl -X PUT "localhost:9200/_snapshot/lab_backup?pretty" -H 'Content-Type: application/json' -d'
{
"type": "azure",
"settings": {
"client": "default",
"container": "backupes"
}
}
'
{
"acknowledged" : true
} `

Steps to Reproduce

  1. create Azure storage account of type StorageV2 (general purpose v2), performance Premium, replication Locally-redundant storage (LRS). Into this SA create container "backupes".
  2. Create keystore (bin/elasticsearch-keystore add azure.client.default.key). with account name and secret.
  3. create repository:'</>elasticsearch@elasticsearch-ss-0:$ curl -X PUT "localhost:9200/_snapshot/lab_backup?pretty" -H 'Content-Type: application/json' -d'
    {
    "type": "azure",
    "settings": {
    "client": "default",
    "container": "backupes"
    }
    }
    '
    {
    "acknowledged" : true
    }
    4.send snapshot to the repository:elasticsearch@elasticsearch-ss-0:
    $ curl -X PUT "localhost:9200/snapshot/lab_backup/lab_snapshot date +"%Y.%m.%d"?wait_for_completion=true"
    {"error":{"root_cause":[{"type":"snapshot_exception","reason":"[lab_backup:lab_snapshot_2023.03.27/Jf2Dej8lTqOQ0L3kYXf8yg] failed to update snapshot in repository"}],"type":"snapshot_exception","reason":"[lab_backup:lab_snapshot_2023.03.27/Jf2Dej8lTqOQ0L3kYXf8yg] failed to update snapshot in repository","caused_by":{"type":"blob_storage_exception","reason":"Status code 400, " \nBlobTypeNotSupportedBlock blobs are not supported.\nRequestId:bc4cb5e8-a01c-004b-4985-60dd95000000\nTime:2023-03-27T08:24:16.9573320Z"","suppressed":[{"type":"excepti </>

So the issue was that I used wrong blob type. When I used :

account_kind = "BlockBlobStorage"

it started to work.

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