Skip to content

No alive nodes found in your cluster  #509

Closed
@zakiaziz

Description

@zakiaziz

Summary of problem or feature request

I have a laravel app (v5.1) and I'm actually using this library: https://github.com/elasticquent/Elasticquent which is a wrapper around elasticsearch-php. 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"
}

Elasticquent gives a way to insert records from a DB into elasticsearch and that's the code which is returning an error. (below)

Code snippet of problem

$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 tried changing my host to https://search-instance-name-912ec803b2ce49.us-east-1.es.amazonaws.com:443 but no luck. also tried putting in a newer version (2.3.0) in composer.json with no luck

System details

  • Operating System: Ubuntu 14.04
  • PHP Version: 5.5.9
  • ES-PHP client version: v2.1.5
  • Elasticsearch version: 2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions