Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
when i am trying to make snapshots to my s3 (minio deployed locally), by executing the following command inside my elasticsearch docker container:
curl -X PUT "localhost:9200/_snapshot/s3_repository/snapshot_1?wait_for_completion=true&pretty"
i got the following :
"error" : {
"root_cause" : [
"type" : "repository_exception",
"reason" : "[s3_repository] Could not determine repository generation from root blobs"
"type" : "repository_exception",
"reason" : "[s3_repository] Could not determine repository generation from root blobs",
"caused_by" : {
"type" : "i_o_exception",
"reason" : "Exception when listing blobs by prefix [index-]",
"caused_by" : {
"type" : "sdk_client_exception",
"reason" : "Unable to execute HTTP request: my-first-bucket.s3",
"caused_by" : {
"type" : "unknown_host_exception",
"reason" : "my-first-bucket.s3"
"status" : 500
Any help please ?
Notice, i created s3_repository using the followig :
curl -XPUT 'http://localhost:9200/_snapshot/s3_repository?verify=false&pretty' -H 'Content-Type: application/json' -d'
"type": "s3",
"settings": {
"bucket": "my-first-bucket",
"endpoint": "http://s3:9000"
Notice s3
in http://s3:9000
is the name of the service minio in my docker-compose.yml
Thank you in advance!
–
–
–
Most likely the problem here is that the bucket is not created at MinIO startup. The environment variable MINIO_DEFAULT_BUCKETS
is not officially supported by MinIO at least. After MinIO starts, you can try to confirm if the bucket exists as expected.
As the bucket only needs to be created once, you could do it via a script after MinIO starts.
Please know you can find us at https://slack.min.io/ 24/7/365. If you have commercial questions, please reach out to us on hello@min.io or on our Ask an Expert Chat functionality at https://min.io/pricing?action=talk-to-us.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.