Skip to content

No alive nodes found in your cluster #128

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

Open
zakiaziz opened this issue Dec 6, 2016 · 1 comment
Open

No alive nodes found in your cluster #128

zakiaziz opened this issue Dec 6, 2016 · 1 comment

Comments

@zakiaziz
Copy link

zakiaziz commented Dec 6, 2016

I'm using laravel 5.1. The app is hosted on an EC2 instance and doing a cURL request from there returns a response:

$ curl search-instance-name-912ec803b2ce49.us-east-1.es.amazonaws.com
{
  "name" : "Agent Axis",
  "cluster_name" : 1234567890:instance-name",
  "version" : {
    "number" : "2.3.2",
    "build_hash" : "0ab538e92c6db78d10b1694e645f3625",
    "build_timestamp" : "2016-11-14T15:59:50Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.0"
  },
  "tagline" : "You Know, for Search"
}

But when running the code below (from a Console command) I get a Elasticsearch\Common\Exceptions\NoNodesAvailableException exception thrown

$products = Products::addAllToIndex();
$files = File::addAllToIndex();

Here is a gist of the exception stack trace incase it helps: https://gist.github.com/zakiaziz/1fa94f9c3f504a5a9bc756ebd96f9065

I've also tried changing my host to https://search-instance-name-912ec803b2ce49.us-east-1.es.amazonaws.com:443 but no luck

  • Operating System: Ubuntu 14.04
  • PHP Version: 5.5.9
  • ES-PHP client version: v2.1.5
  • Elasticsearch version: 2.3
@timgws
Copy link
Member

timgws commented Dec 7, 2016

For the moment, check this out:

#98

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