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

NPE during ES startup when using S3 gateway with the europe region specified #659

Closed
adamw opened this issue Jan 31, 2011 · 2 comments
Closed

Comments

@adamw
Copy link

adamw commented Jan 31, 2011

If I specify the region:

cloud:
  aws:
    region: eu-west-1

Then there's an NPE during startup:

Caused by: java.lang.NullPointerException
at com.amazonaws.AmazonWebServiceClient.setEndpoint(AmazonWebServiceClient.java:87)
at org.elasticsearch.cloud.aws.AwsS3Service.client(AwsS3Service.java:97)
at org.elasticsearch.gateway.s3.S3Gateway.<init>(S3Gateway.java:81)

That's because AwsS3Service:91 sets the endpoint to null, while AmazonWebServiceClient:87 de-references the endpoint string.

The fix is to set the endpoint to the default, non-null value.

The workaround is not to specify the region in the config file.

@kimchy
Copy link
Member

kimchy commented Feb 8, 2011

Right, thats a bug, since EU does not have a specific endpoint, then it should not be set.

@kimchy
Copy link
Member

kimchy commented Feb 8, 2011

NPE during ES startup when using S3 gateway with the europe region specified, closed by 05283c7.

mindw pushed a commit to mindw/elasticsearch that referenced this issue Sep 5, 2022
…lastic#659)

install browserify for dequeue

* install browserify for dequeue


Approved-by: Can Yildiz
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants