-
Notifications
You must be signed in to change notification settings - Fork 123
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
Can't connect to AWS Elasticsearch Service #16
Comments
Hi @pierrefar Can you show me the 'url' format? |
@farhan687 It's like this: https://long_random_string_identifying_ES_domain.us-west-2.es.amazonaws.com Of course "us-west-2" will depend on the AWS region you're using. Not sure if HTTP works as we always use HTTPS. |
hi @pierrefar Can you try it again? I have updated the mirage for gh-pages and elasticsearch plugin. |
Hi @farhan687 Not working unfortunately. I tried different indices, and different combinations of the URL specifying HTTP/HTTPS, specifying different ports (:80, :443, :9200). Mirage refuses to do anything unless it sees :9200, and then it fails to authenticate after a few seconds of trying. |
A more simple example of what I believe to be the same bug is not being able to connect to ~ $ curl http://localhost:8080
{
"name" : "Hood",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.4.0",
"build_hash" : "ce9f0c7394dee074091dd1bc4e9469251181fc55",
"build_timestamp" : "2016-08-29T09:14:17Z",
"build_snapshot" : false,
"lucene_version" : "5.5.2"
},
"tagline" : "You Know, for Search"
} |
Sorry for inconvenience, we are trying to solve this issue which is specific to |
Hey @Garrett-R @pierrefar sorry for the delay, it took some time to just figure out the issue and now we fixed the issue. |
@Garrett-R do you have an index name selected when you try to "connect"? |
@siddharthlatest, whoops, thanks, I forgot that piece. (I've delete my comment) |
OK, so, trying again on the hosted site, I'm still getting an error. Here's what it looks like before I hit Note that the second tab is showing that I hit connect and get this error:
|
@Garrett-R Looks like CORS issue, Can you check in console what does it shows, when you are trying to connect. Basic workaround for CORS issue with elasticsearch: http.cors.allow-origin: "*"
http.cors.enabled: true
http.cors.allow-headers : "X-Requested-With, X-Auth-Token, Content-Type, Content-Length, Authorization"
http.cors.allow-methods: "OPTIONS, HEAD, GET, POST, PUT, DELETE"
http.cors.allow-credentials: true For more information: |
@farhan687, thank you. Adding those lines to |
@farhan687 Still not working with AWS unfortunately. What I did: Deleted the extension from Chrome and installed it fresh. Gave it the correct AWS ES endpoint and a correct index name. Failed with the same authentication error. |
@pierrefar Can you take screenshot of error log? |
@farhan687 Attached. It's the same text as @Garrett-R copied earlier. |
@pierrefar Can you share elasticsearch version info? |
Hi @farhan687 . It's ES 1.5.2, the standard one hosted on AWS. And as of a few weeks ago they have a newer ES version. They have a free usage tier if you want to test with one directly. |
@pierrefar Mirage only works for 2.x and above versions. I would recommend you trying their newer version. Elasticsearch has an issue with CORS on v2.3.0 and v2.3.1, see reference - elastic/elasticsearch#17483. Your best bet is using v2.4.0 and above. |
Hi guys, sorry for reviving this issue. Any ideas? |
The Four things:
So question for @siddharthlatest
It should be noted that |
Hi
We have an AWS ES service that allows only a specified set of IP addresses to access the domain - no usernames. This works as expected, but Mirage fails with an authentication error using the Chrome extension running on an IP address that works.
The text was updated successfully, but these errors were encountered: