Skip to content

No alive nodes found in your cluster when creating Index (7.0.2, windows 10) #994

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

Closed
jhob101 opened this issue Jan 31, 2020 · 2 comments
Closed

Comments

@jhob101
Copy link

jhob101 commented Jan 31, 2020

Summary of problem or feature request

I am working with the AWS Elastic Search service. When trying to create an index on my local windows development environment it returns the error

No alive nodes found in your cluster

This sounded similar to #993 and I applied the fix suggested there so that the port is passed to the request, but the error remains.

This issue only occurs on my local machine, on the remote staging site it works fine.

$client = Elasticsearch\ClientBuilder::create()
  ->setHosts( [ 'https://search-xxx-xxxxxxxxxxxxxx.eu-west-2.es.amazonaws.com:443' ] )
  ->build();
$client->indices()->create( [ 'index' => 'test' ] );

The equivalent unathenticated cURL request works:

curl -X PUT "https://search-xxx-xxxxxxxxxxxxxx.eu-west-2.es.amazonaws.com:443/test"

System details

  • Operating System: Windows 10
  • PHP Version: 7.2.27
  • ES-PHP client version: 7.0.2
  • Elasticsearch version: 7.1
@jhob101 jhob101 closed this as completed Feb 3, 2020
@jhob101
Copy link
Author

jhob101 commented Feb 3, 2020

Related to certificate issue, now resolved

@emaillenin
Copy link

@jhob101 How did you resolve the certificate issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants