Skip to content

Cannot upload snapshots to minio #30752

Closed
@iahmad-khan

Description

@iahmad-khan

Hi,

I am using the latest stable version of minio with elasticsearch 6.1.2. I have created a bucket named: elasticsearch , to which I can upload files using the browser interface.

I want to use the same bucket to stor elasticsearch snapshots. Elastic repo config:

PUT _snapshot/backups
{
     "type": "s3",
      "settings": {
         "bucket": "elasticsearch",
         "endpoint": "minio.mydomain:9000",
         "protocol": "http"
      }
}

Error:

{
  "error": {
    "root_cause": [
      {
        "type": "sdk_client_exception",
        "reason": "sdk_client_exception: Unable to execute HTTP request: elasticsearch.minio.mydomain:9000"
      }
    ],
    "type": "repository_exception",
    "reason": "[backups] failed to create repository",
    "caused_by": {
      "type": "sdk_client_exception",
      "reason": "sdk_client_exception: Unable to execute HTTP request: elasticsearch.minio.mydomain:9000",
      "caused_by": {
        "type": "i_o_exception",
        "reason": "elasticsearch.minio.mydomain:9000"
      }
    }
  },
  "status": 500
}

Does it related to the fact that elasticsearch s3 plugin expects s3 kind of url:

elasticsearch.minio.mydomain:9000

while the url in minio is:

minio.mydomain:9000/minio/elasticsearch
thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions