Giter VIP home page Giter VIP logo

Comments (3)

jameslamb avatar jameslamb commented on June 3, 2024

Hi @sebastiz , thanks for using {uptasticsearch}!

The error "connection refused" from curl isn't about authentication / authorization on the host you're trying to reach.

It's more likely that one of the following is happening:

  1. Elasticsearch is running in a location that is not reachable from your current environment, due to firewall rules or other restrictions.
  2. Elasticsearch is reachable but is not using port 9200 for its HTTP API. 9200 is the default port but it can be changed by administrators. It could also be different if Elasticsearch is being proxied by another service.
  3. Elasticsearch is reachable but the cluster is currently not accepting new requests. This can happen during a refresh or if the cluster was very recently started and it hasn't started up yet.

To diagnose this problem, you could try the following from the command line without involving {uptasticsearch} at all. Replace YOUR_HOST with the specific host name you are trying to hit.

curl -I https://YOUR_HOST:9200

If that works, you should see a message like this from Elasticsearch

{
  "name" : "elasticsearch-0",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "EiVqzO1nQO6xivajv54Qyw",
  "version" : {
    "number" : "7.5.2",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : "8bec50e1e0ad29dad5653712cf3bb580cd1afcdf",
    "build_date" : "2020-01-15T12:11:52.313576Z",
    "build_snapshot" : false,
    "lucene_version" : "8.3.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

You may need the help of an administrator on your Elasticsearch instance to figure out the correct value for YOUR_HOST and the correct port. If you can get that request working and {uptasticsearch} still reports an error, come back and we'll be happy to offer additional help.

from uptasticsearch.

sebastiz avatar sebastiz commented on June 3, 2024

from uptasticsearch.

jameslamb avatar jameslamb commented on June 3, 2024

Ok, glad to hear you got it working! I'll close this issue then. Please come back and open a new issue if you run into any problems.

from uptasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.