Answer the question
In order to leave comments, you need to log in
Laravel 5.5 Scout + Elasticsearch "No alive nodes found in your cluster" error?
Installed laravel-scout-elastic package .
Everything according to the instructions.
// config/app.php
'providers' => [
Laravel\Scout\ScoutServiceProvider::class,
ScoutEngines\Elasticsearch\ElasticsearchProvider::class,
],
// config/scout.php
'driver' => env('SCOUT_DRIVER', 'elasticsearch'),
'elasticsearch' => [
'index' => env('ELASTICSEARCH_INDEX', 'laravel'),
'hosts' => [
env('ELASTICSEARCH_HOST', 'http://localhost'),
],
],
// App\Theme
namespace App;
use Illuminate\Database\Eloquent\Model;
use Laravel\Scout\Searchable;
class Theme extends Model
{
use Searchable;
}
php artisan scout:import "App\Theme"
In StaticNoPingConnectionPool.php line 51:
No alive nodes found in your cluster
Elasticsearch \ Common \ Exceptions \ NoNodesAvailableException
No alive nodes found in your cluster
Answer the question
In order to leave comments, you need to log in
Check access to Elastica from another program, for example, from a console utility.
If you have access, then your connection settings in your application are not correct.
If there is no access - well, you understand.
env('ELASTICSEARCH_HOST', 'http://localhost:9200'),
Not? [email protected]:~$ curl -XGET http://localhost:9200
{
"name" : "DR4r-FT",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Q4TCatpdSkaMoqlezR-TQQ",
"version" : {
"number" : "5.1.1",
"build_hash" : "5395e21",
"build_date" : "2016-12-06T12:36:15.409Z",
"build_snapshot" : false,
"lucene_version" : "6.3.0"
},
"tagline" : "You Know, for Search"
}
[email protected]:~$
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question