Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error configuring snapshot repository in S3 US Standard region #163

Open
clintongormley opened this issue Jan 13, 2015 · 2 comments
Open

Comments

@clintongormley
Copy link
Contributor

According to AWS S3 documentation http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html the empty string is used for create buckets in the US classic region. But configuring an empty region in the snapshot raises this error in elasticsearch:

org.elasticsearch.ElasticsearchIllegalArgumentException: No automatic endpoint could be derived from region []

us-east-1 can't be used because then AWS raise this error:
The specified location-constraint is not valid (Service: Amazon S3; Status Code: 400; Error Code: InvalidLocationConstraint

(Opened from elastic/elasticsearch#9202)

@dadoonet
Copy link
Member

Indeed. In documentation we wrote that if no region is provided we fallback to default US region.
Wondering if we should really support region: "". Why providing the region in that case?

If we do that, we should also support it for ec2 regions.

@tlrx WDYT?

@pires
Copy link

pires commented Mar 4, 2015

Using "region": "us-standard" doesn't work as well.

{  
  "error":"RemoteTransportException[[Bushmaster][inet[/x.x.x.x:9300]][cluster:admin/repository/put]]; nested: RepositoryException[[elk_repository] failed to create repository]; nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.ElasticsearchIllegalArgumentException: No automatic endpoint could be derived from region [us-standard]\n  at org.elasticsearch.repositories.s3.S3Repository.<init>()\n  at org.elasticsearch.repositories.s3.S3Repository\n  at Key[type=org.elasticsearch.repositories.Repository, annotation=[none]]\n\n1 error]; nested: ElasticsearchIllegalArgumentException[No automatic endpoint could be derived from region [us-standard]]; ",
  "status":500
}

FIXED

"region": "us-east-1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants