elastic / elasticsearch-php

Official PHP client for Elasticsearch.
https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
MIT License
5.26k stars 965 forks source link

NoNodesAvailableException: No alive nodes found in your cluster #1120

Closed sewox closed 3 years ago

sewox commented 3 years ago

Summary of problem or feature request

Hi everyone, I know it is often asked this issue. Install Elasticsearch and PHP plugin make basic configuration all times throw this exception

Code snippet of problem

<?php

ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);

require 'vendor/autoload.php';

use Elasticsearch\ClientBuilder;

$hosts = [ 'http://localhost:9200', ];

$client = ClientBuilder::create() ->setHosts($hosts) ->build();

                $params = [
                    'index' => 'index-2021.03.23',
                    'id'    => 'dF_V417oTtu8jaUmRuxfzQ'
                ];

                $response = $client->get($params);
                print_r($response);

YML File

======================== Elasticsearch Configuration =========================

#

NOTE: Elasticsearch comes with reasonable defaults for most settings.

Before you set out to tweak and tune the configuration, make sure you

understand what are you trying to accomplish and the consequences.

#

The primary way of configuring a node is via this file. This template lists

the most important settings you may want to configure for a production cluster.

#

Please consult the documentation for further information on configuration options:

https://www.elastic.co/guide/en/elasticsearch/reference/index.html

#

---------------------------------- Cluster -----------------------------------

#

Use a descriptive name for your cluster:

# cluster.name: Zamanbaz #

------------------------------------ Node ------------------------------------

#

Use a descriptive name for the node:

# node.name: Zamanbaz-node #

Add custom attributes to the node:

#

node.attr.rack: r1

#

----------------------------------- Paths ------------------------------------

#

Path to directory where to store the data (separate multiple locations by comma):

# path.data: /var/lib/elasticsearch #

Path to log files:

# path.logs: /var/log/elasticsearch #

----------------------------------- Memory -----------------------------------

#

Lock the memory on startup:

#

bootstrap.memory_lock: true

#

Make sure that the heap size is set to about half the memory available

on the system and that the owner of the process is allowed to use this

limit.

#

Elasticsearch performs poorly when the system is swapping the memory.

#

---------------------------------- Network -----------------------------------

#

Set the bind address to a specific IP (IPv4 or IPv6):

#

network.host: 192.168.0.1

#

Set a custom port for HTTP:

#

http.port: 9200

#

For more information, consult the network module documentation.

#

--------------------------------- Discovery ----------------------------------

#

Pass an initial list of hosts to perform discovery when this node is started:

The default list of hosts is ["127.0.0.1", "[::1]"]

#

discovery.seed_hosts: ["host1", "host2"]

#

Bootstrap the cluster using an initial set of master-eligible nodes:

#

cluster.initial_master_nodes: ["node-1", "node-2"]

#

For more information, consult the discovery and cluster formation module documentation.

#

---------------------------------- Gateway -----------------------------------

#

Block initial recovery after a full cluster restart until N nodes are started:

#

gateway.recover_after_nodes: 3

#

For more information, consult the gateway module documentation.

#

---------------------------------- Various -----------------------------------

#

Require explicit names when deleting indices:

#

action.destructive_requires_name: true

action.auto_create_index: .monitoring,.watches,.triggered_watches,.watcher-history,.ml*

ezimuel commented 3 years ago

@sewox can you paste the PHP code that you are using to connect to Elasticsearch? Thanks.

sewox commented 3 years ago

Hi @ezimuel, we discussed on discuss.elasric.com. I had tried so many things, this page may give you an idea for the subject. On this page have log files and yml files Thank you for answering

ezimuel commented 3 years ago

I read all the discussion and it seems there's an issue with PHP itself in your environment. Can you try to execute the following code and report the output? Thanks!

require 'vendor/autoload.php';

use Elasticsearch\ClientBuilder;
use Elasticsearch\Common\Exceptions\NoNodesAvailableException;

$client = ClientBuilder::create()
    ->setHosts(['localhost:9200'])
    ->build();

try {
    $result = $client->info();
} catch (NoNodesAvailableException $e) {
    printf ("NoNodesAvailableException: %s\n", $e->getMessage());
}
var_dump($client->transport->getLastConnection()->getLastRequestInfo());
sewox commented 3 years ago

Hi, after execution output, this. Thanks NoNodesAvailableException: No alive nodes found in your cluster array(2) { ["request"] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["response"] => array(8) { ["transfer_stats"] => array(28) { ["url"] => string(17) "http://localhost/" ["content_type"] => NULL["http_code"] => int(0)["header_size"] => int(0)["request_size"] => int(0)["filetime"] => int(-1)["ssl_verify_result"] => int(0)["redirect_count"] => int(0)["total_time"] => float(0.003298)["namelookup_time"] => float(0.007424)["connect_time"] => float(0)["pretransfer_time"] => float(0)["size_upload"] => float(0)["size_download"] => float(0)["speed_download"] => float(0)["speed_upload"] => float(0)["download_content_length"] => float(-1)["upload_content_length"] => float(-1)["starttransfer_time"] => float(0)["redirect_time"] => float(0)["redirect_url"] => string(0) "" ["primary_ip"] => string(9) "127.0.0.1" ["certinfo"] => array(0) {} ["primary_port"] => int(9200)["local_ip"] => string(0) "" ["local_port"] => int(0)["error"] => string(43) "Failed to connect to ::1: Permission denied" ["errno"] => int(7) } ["curl"] => array(2) { ["error"] => string(43) "Failed to connect to ::1: Permission denied" ["errno"] => int(7) } ["effective_url"] => string(17) "http://localhost/" ["status"] => NULL["reason"] => NULL["body"] => NULL["headers"] => array(0) {} ["error"] => object(GuzzleHttp\ Ring\ Exception\ ConnectException) #53 (7) { ["message":protected]= > string(57) "cURL error 7: Failed to connect to ::1: Permission denied" ["string": "Exception": private] => string(0) "" ["code": protected] => int(0)["file": protected] => string(58) "/var/www/vendor/ezimuel/ringphp/src/Client/CurlFactory.php" ["line": protected] => int(126)["trace": "Exception": private] => array(10) { [0] => array(6) { ["file"] => string(58) "/var/www/vendor/ezimuel/ringphp/src/Client/CurlFactory.php" ["line"] => int(91)["function"] => string(19) "createErrorResponse" ["class"] => string(34) "GuzzleHttp\Ring\Client\CurlFactory" ["type"] => string(2) "::" ["args"] => array(3) { [0] => array(2) { [0] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } [1] => string(14) "_invokeAsArray" } [1] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } [2] => array(3) { ["transfer_stats"] => array(28) { ["url"] => string(17) "http://localhost/" ["content_type"] => NULL["http_code"] => int(0)["header_size"] => int(0)["request_size"] => int(0)["filetime"] => int(-1)["ssl_verify_result"] => int(0)["redirect_count"] => int(0)["total_time"] => float(0.003298)["namelookup_time"] => float(0.007424)["connect_time"] => float(0)["pretransfer_time"] => float(0)["size_upload"] => float(0)["size_download"] => float(0)["speed_download"] => float(0)["speed_upload"] => float(0)["download_content_length"] => float(-1)["upload_content_length"] => float(-1)["starttransfer_time"] => float(0)["redirect_time"] => float(0)["redirect_url"] => string(0) "" ["primary_ip"] => string(9) "127.0.0.1" ["certinfo"] => array(0) {} ["primary_port"] => int(9200)["local_ip"] => string(0) "" ["local_port"] => int(0)["error"] => string(43) "Failed to connect to ::1: Permission denied" ["errno"] => int(7) } ["curl"] => array(2) { ["error"] => string(43) "Failed to connect to ::1: Permission denied" ["errno"] => int(7) } ["effective_url"] => string(17) "http://localhost/" } } } [1] => array(6) { ["file"] => string(58) "/var/www/vendor/ezimuel/ringphp/src/Client/CurlHandler.php" ["line"] => int(96)["function"] => string(14) "createResponse" ["class"] => string(34) "GuzzleHttp\Ring\Client\CurlFactory" ["type"] => string(2) "::" ["args"] => array(5) { [0] => array(2) { [0] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } [1] => string(14) "_invokeAsArray" } [1] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } [2] => array(3) { ["transfer_stats"] => array(28) { ["url"] => string(17) "http://localhost/" ["content_type"] => NULL["http_code"] => int(0)["header_size"] => int(0)["request_size"] => int(0)["filetime"] => int(-1)["ssl_verify_result"] => int(0)["redirect_count"] => int(0)["total_time"] => float(0.003298)["namelookup_time"] => float(0.007424)["connect_time"] => float(0)["pretransfer_time"] => float(0)["size_upload"] => float(0)["size_download"] => float(0)["speed_download"] => float(0)["speed_upload"] => float(0)["download_content_length"] => float(-1)["upload_content_length"] => float(-1)["starttransfer_time"] => float(0)["redirect_time"] => float(0)["redirect_url"] => string(0) "" ["primary_ip"] => string(9) "127.0.0.1" ["certinfo"] => array(0) {} ["primary_port"] => int(9200)["local_ip"] => string(0) "" ["local_port"] => int(0)["error"] => string(43) "Failed to connect to ::1: Permission denied" ["errno"] => int(7) } ["curl"] => array(2) { ["error"] => string(43) "Failed to connect to ::1: Permission denied" ["errno"] => int(7) } ["effective_url"] => string(17) "http://localhost/" } [3] => array(0) {} [4] => resource(115) of type(stream) } } [2] => array(6) { ["file"] => string(58) "/var/www/vendor/ezimuel/ringphp/src/Client/CurlHandler.php" ["line"] => int(68)["function"] => string(14) "_invokeAsArray" ["class"] => string(34) "GuzzleHttp\Ring\Client\CurlHandler" ["type"] => string(2) "->" ["args"] => array(1) { [0] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } } } [3] => array(6) { ["file"] => string(57) "/var/www/vendor/ezimuel/ringphp/src/Client/Middleware.php" ["line"] => int(30)["function"] => string(8) "__invoke" ["class"] => string(34) "GuzzleHttp\Ring\Client\CurlHandler" ["type"] => string(2) "->" ["args"] => array(1) { [0] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } } } [4] => array(6) { ["file"] => string(88) "/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php" ["line"] => int(265)["function"] => string(32) "GuzzleHttp\Ring\Client\{closure}" ["class"] => string(33) "GuzzleHttp\Ring\Client\Middleware" ["type"] => string(2) "::" ["args"] => array(1) { [0] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } } } [5] => array(6) { ["file"] => string(88) "/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php" ["line"] => int(241)["function"] => string(35) "Elasticsearch\Connections\{closure}" ["class"] => string(36) "Elasticsearch\Connections\Connection" ["type"] => string(2) "->" ["args"] => array(4) { [0] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } [1] => object(Elasticsearch\ Connections\ Connection) #13 (16) { ["handler":protected]= > object(Closure) #14 (3) { ["static"]= > array(1) { ["handler"] => object(Closure) #9 (2) { ["static"]= > array(2) { ["default"] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } ["future"] => object(GuzzleHttp\ Ring\ Client\ CurlMultiHandler) #7 (7) { ["factory":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #8 (0) { } ["selectTimeout":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > int(1)["active": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => NULL["handles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["delays": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["maxHandles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => int(100)["_mh"] => resource(54) of type(curl_multi) } } ["parameter"] => array(1) { ["$request"] => string(10) "" } } } ["this"] => * RECURSION * ["parameter"] => array(4) { ["$request"] => string(10) "" ["$connection"] => string(10) "" ["$transport"] => string(10) "" ["$options"] => string(10) "" } } ["serializer": protected] => object(Elasticsearch\ Serializers\ SmartSerializer) #10 (0) { } ["transportSchema":protected]= > string(4) "http" ["host": protected] => string(9) "localhost" ["path": protected] => NULL["port": protected] => int(9200)["log": protected] => object(Psr\ Log\ NullLogger) #2 (0) { } ["trace":protected]= > object(Psr\ Log\ NullLogger) #4 (0) { } ["connectionParams":protected]= > array(1) { ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["headers": protected] => array(4) { ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["isAlive": protected] => bool(false)["pingTimeout": "Elasticsearch\Connections\Connection": private] => int(1)["lastPing": "Elasticsearch\Connections\Connection": private] => int(1618578186)["failedPings": "Elasticsearch\Connections\Connection": private] => int(1)["lastRequest": "Elasticsearch\Connections\Connection": private] => array(2) { ["request"] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["response"] => * RECURSION * } ["OSVersion": "Elasticsearch\Connections\Connection": private] => string(27) "3.10.0-1160.21.1.el7.x86_64" } [2] => object(Elasticsearch\ Transport) #16 (5) { ["connectionPool"]= > object(Elasticsearch\ ConnectionPool\ StaticNoPingConnectionPool) #15 (7) { ["pingTimeout":"Elasticsearch\ConnectionPool\StaticNoPingConnectionPool":private]= > int(60)["maxPingTimeout": "Elasticsearch\ConnectionPool\StaticNoPingConnectionPool": private] => int(3600)["connections": protected] => array(1) { [0] => object(Elasticsearch\ Connections\ Connection) #13 (16) { ["handler":protected]= > object(Closure) #14 (3) { ["static"]= > array(1) { ["handler"] => object(Closure) #9 (2) { ["static"]= > array(2) { ["default"] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } ["future"] => object(GuzzleHttp\ Ring\ Client\ CurlMultiHandler) #7 (7) { ["factory":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #8 (0) { } ["selectTimeout":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > int(1)["active": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => NULL["handles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["delays": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["maxHandles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => int(100)["_mh"] => resource(54) of type(curl_multi) } } ["parameter"] => array(1) { ["$request"] => string(10) "" } } } ["this"] => * RECURSION * ["parameter"] => array(4) { ["$request"] => string(10) "" ["$connection"] => string(10) "" ["$transport"] => string(10) "" ["$options"] => string(10) "" } } ["serializer": protected] => object(Elasticsearch\ Serializers\ SmartSerializer) #10 (0) { } ["transportSchema":protected]= > string(4) "http" ["host": protected] => string(9) "localhost" ["path": protected] => NULL["port": protected] => int(9200)["log": protected] => object(Psr\ Log\ NullLogger) #2 (0) { } ["trace":protected]= > object(Psr\ Log\ NullLogger) #4 (0) { } ["connectionParams":protected]= > array(1) { ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["headers": protected] => array(4) { ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["isAlive": protected] => bool(false)["pingTimeout": "Elasticsearch\Connections\Connection": private] => int(1)["lastPing": "Elasticsearch\Connections\Connection": private] => int(1618578186)["failedPings": "Elasticsearch\Connections\Connection": private] => int(1)["lastRequest": "Elasticsearch\Connections\Connection": private] => array(2) { ["request"] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["response"] => * RECURSION * } ["OSVersion": "Elasticsearch\Connections\Connection": private] => string(27) "3.10.0-1160.21.1.el7.x86_64" } } ["seedConnections": protected] => array(1) { [0] => object(Elasticsearch\ Connections\ Connection) #13 (16) { ["handler":protected]= > object(Closure) #14 (3) { ["static"]= > array(1) { ["handler"] => object(Closure) #9 (2) { ["static"]= > array(2) { ["default"] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } ["future"] => object(GuzzleHttp\ Ring\ Client\ CurlMultiHandler) #7 (7) { ["factory":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #8 (0) { } ["selectTimeout":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > int(1)["active": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => NULL["handles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["delays": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["maxHandles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => int(100)["_mh"] => resource(54) of type(curl_multi) } } ["parameter"] => array(1) { ["$request"] => string(10) "" } } } ["this"] => * RECURSION * ["parameter"] => array(4) { ["$request"] => string(10) "" ["$connection"] => string(10) "" ["$transport"] => string(10) "" ["$options"] => string(10) "" } } ["serializer": protected] => object(Elasticsearch\ Serializers\ SmartSerializer) #10 (0) { } ["transportSchema":protected]= > string(4) "http" ["host": protected] => string(9) "localhost" ["path": protected] => NULL["port": protected] => int(9200)["log": protected] => object(Psr\ Log\ NullLogger) #2 (0) { } ["trace":protected]= > object(Psr\ Log\ NullLogger) #4 (0) { } ["connectionParams":protected]= > array(1) { ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["headers": protected] => array(4) { ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["isAlive": protected] => bool(false)["pingTimeout": "Elasticsearch\Connections\Connection": private] => int(1)["lastPing": "Elasticsearch\Connections\Connection": private] => int(1618578186)["failedPings": "Elasticsearch\Connections\Connection": private] => int(1)["lastRequest": "Elasticsearch\Connections\Connection": private] => array(2) { ["request"] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["response"] => * RECURSION * } ["OSVersion": "Elasticsearch\Connections\Connection": private] => string(27) "3.10.0-1160.21.1.el7.x86_64" } } ["selector": protected] => object(Elasticsearch\ ConnectionPool\ Selectors\ RoundRobinSelector) #12 (1) { ["current":"Elasticsearch\ConnectionPool\Selectors\RoundRobinSelector":private]= > int(2) } ["connectionPoolParams": protected] => array(1) { ["randomizeHosts"] => bool(true) } ["connectionFactory": protected] => object(Elasticsearch\ Connections\ ConnectionFactory) #11 (5) { ["connectionParams":"Elasticsearch\Connections\ConnectionFactory":private]= > array(1) { ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["headers"] => array(2) { ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } } } } ["serializer": "Elasticsearch\Connections\ConnectionFactory": private] => object(Elasticsearch\ Serializers\ SmartSerializer) #10 (0) { } ["logger":"Elasticsearch\Connections\ConnectionFactory":private]= > object(Psr\ Log\ NullLogger) #2 (0) { } ["tracer":"Elasticsearch\Connections\ConnectionFactory":private]= > object(Psr\ Log\ NullLogger) #4 (0) { } ["handler":"Elasticsearch\Connections\ConnectionFactory":private]= > object(Closure) #9 (2) { ["static"]= > array(2) { ["default"] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } ["future"] => object(GuzzleHttp\ Ring\ Client\ CurlMultiHandler) #7 (7) { ["factory":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #8 (0) { } ["selectTimeout":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > int(1)["active": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => NULL["handles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["delays": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["maxHandles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => int(100)["_mh"] => resource(54) of type(curl_multi) } } ["parameter"] => array(1) { ["$request"] => string(10) "" } } } } ["log": "Elasticsearch\Transport": private] => object(Psr\ Log\ NullLogger) #2 (0) { } ["retryAttempts"]= > int(1)["lastConnection"] => object(Elasticsearch\ Connections\ Connection) #13 (16) { ["handler":protected]= > object(Closure) #14 (3) { ["static"]= > array(1) { ["handler"] => object(Closure) #9 (2) { ["static"]= > array(2) { ["default"] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } ["future"] => object(GuzzleHttp\ Ring\ Client\ CurlMultiHandler) #7 (7) { ["factory":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #8 (0) { } ["selectTimeout":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > int(1)["active": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => NULL["handles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["delays": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["maxHandles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => int(100)["_mh"] => resource(54) of type(curl_multi) } } ["parameter"] => array(1) { ["$request"] => string(10) "" } } } ["this"] => * RECURSION * ["parameter"] => array(4) { ["$request"] => string(10) "" ["$connection"] => string(10) "" ["$transport"] => string(10) "" ["$options"] => string(10) "" } } ["serializer": protected] => object(Elasticsearch\ Serializers\ SmartSerializer) #10 (0) { } ["transportSchema":protected]= > string(4) "http" ["host": protected] => string(9) "localhost" ["path": protected] => NULL["port": protected] => int(9200)["log": protected] => object(Psr\ Log\ NullLogger) #2 (0) { } ["trace":protected]= > object(Psr\ Log\ NullLogger) #4 (0) { } ["connectionParams":protected]= > array(1) { ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["headers": protected] => array(4) { ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["isAlive": protected] => bool(false)["pingTimeout": "Elasticsearch\Connections\Connection": private] => int(1)["lastPing": "Elasticsearch\Connections\Connection": private] => int(1618578186)["failedPings": "Elasticsearch\Connections\Connection": private] => int(1)["lastRequest": "Elasticsearch\Connections\Connection": private] => array(2) { ["request"] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["response"] => * RECURSION * } ["OSVersion": "Elasticsearch\Connections\Connection": private] => string(27) "3.10.0-1160.21.1.el7.x86_64" } ["retries"] => int(1) } [3] => array(0) {} } } [6] => array(6) { ["file"] => string(75) "/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php" ["line"] => int(110)["function"] => string(14) "performRequest" ["class"] => string(36) "Elasticsearch\Connections\Connection" ["type"] => string(2) "->" ["args"] => array(6) { [0] => string(3) "GET" [1] => string(1) "/" [2] => array(0) {} [3] => NULL[4] => array(0) {} [5] => object(Elasticsearch\ Transport) #16 (5) { ["connectionPool"]= > object(Elasticsearch\ ConnectionPool\ StaticNoPingConnectionPool) #15 (7) { ["pingTimeout":"Elasticsearch\ConnectionPool\StaticNoPingConnectionPool":private]= > int(60)["maxPingTimeout": "Elasticsearch\ConnectionPool\StaticNoPingConnectionPool": private] => int(3600)["connections": protected] => array(1) { [0] => object(Elasticsearch\ Connections\ Connection) #13 (16) { ["handler":protected]= > object(Closure) #14 (3) { ["static"]= > array(1) { ["handler"] => object(Closure) #9 (2) { ["static"]= > array(2) { ["default"] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } ["future"] => object(GuzzleHttp\ Ring\ Client\ CurlMultiHandler) #7 (7) { ["factory":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #8 (0) { } ["selectTimeout":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > int(1)["active": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => NULL["handles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["delays": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["maxHandles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => int(100)["_mh"] => resource(54) of type(curl_multi) } } ["parameter"] => array(1) { ["$request"] => string(10) "" } } } ["this"] => * RECURSION * ["parameter"] => array(4) { ["$request"] => string(10) "" ["$connection"] => string(10) "" ["$transport"] => string(10) "" ["$options"] => string(10) "" } } ["serializer": protected] => object(Elasticsearch\ Serializers\ SmartSerializer) #10 (0) { } ["transportSchema":protected]= > string(4) "http" ["host": protected] => string(9) "localhost" ["path": protected] => NULL["port": protected] => int(9200)["log": protected] => object(Psr\ Log\ NullLogger) #2 (0) { } ["trace":protected]= > object(Psr\ Log\ NullLogger) #4 (0) { } ["connectionParams":protected]= > array(1) { ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["headers": protected] => array(4) { ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["isAlive": protected] => bool(false)["pingTimeout": "Elasticsearch\Connections\Connection": private] => int(1)["lastPing": "Elasticsearch\Connections\Connection": private] => int(1618578186)["failedPings": "Elasticsearch\Connections\Connection": private] => int(1)["lastRequest": "Elasticsearch\Connections\Connection": private] => array(2) { ["request"] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["response"] => * RECURSION * } ["OSVersion": "Elasticsearch\Connections\Connection": private] => string(27) "3.10.0-1160.21.1.el7.x86_64" } } ["seedConnections": protected] => array(1) { [0] => object(Elasticsearch\ Connections\ Connection) #13 (16) { ["handler":protected]= > object(Closure) #14 (3) { ["static"]= > array(1) { ["handler"] => object(Closure) #9 (2) { ["static"]= > array(2) { ["default"] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } ["future"] => object(GuzzleHttp\ Ring\ Client\ CurlMultiHandler) #7 (7) { ["factory":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #8 (0) { } ["selectTimeout":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > int(1)["active": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => NULL["handles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["delays": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["maxHandles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => int(100)["_mh"] => resource(54) of type(curl_multi) } } ["parameter"] => array(1) { ["$request"] => string(10) "" } } } ["this"] => * RECURSION * ["parameter"] => array(4) { ["$request"] => string(10) "" ["$connection"] => string(10) "" ["$transport"] => string(10) "" ["$options"] => string(10) "" } } ["serializer": protected] => object(Elasticsearch\ Serializers\ SmartSerializer) #10 (0) { } ["transportSchema":protected]= > string(4) "http" ["host": protected] => string(9) "localhost" ["path": protected] => NULL["port": protected] => int(9200)["log": protected] => object(Psr\ Log\ NullLogger) #2 (0) { } ["trace":protected]= > object(Psr\ Log\ NullLogger) #4 (0) { } ["connectionParams":protected]= > array(1) { ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["headers": protected] => array(4) { ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["isAlive": protected] => bool(false)["pingTimeout": "Elasticsearch\Connections\Connection": private] => int(1)["lastPing": "Elasticsearch\Connections\Connection": private] => int(1618578186)["failedPings": "Elasticsearch\Connections\Connection": private] => int(1)["lastRequest": "Elasticsearch\Connections\Connection": private] => array(2) { ["request"] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["response"] => * RECURSION * } ["OSVersion": "Elasticsearch\Connections\Connection": private] => string(27) "3.10.0-1160.21.1.el7.x86_64" } } ["selector": protected] => object(Elasticsearch\ ConnectionPool\ Selectors\ RoundRobinSelector) #12 (1) { ["current":"Elasticsearch\ConnectionPool\Selectors\RoundRobinSelector":private]= > int(2) } ["connectionPoolParams": protected] => array(1) { ["randomizeHosts"] => bool(true) } ["connectionFactory": protected] => object(Elasticsearch\ Connections\ ConnectionFactory) #11 (5) { ["connectionParams":"Elasticsearch\Connections\ConnectionFactory":private]= > array(1) { ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["headers"] => array(2) { ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } } } } ["serializer": "Elasticsearch\Connections\ConnectionFactory": private] => object(Elasticsearch\ Serializers\ SmartSerializer) #10 (0) { } ["logger":"Elasticsearch\Connections\ConnectionFactory":private]= > object(Psr\ Log\ NullLogger) #2 (0) { } ["tracer":"Elasticsearch\Connections\ConnectionFactory":private]= > object(Psr\ Log\ NullLogger) #4 (0) { } ["handler":"Elasticsearch\Connections\ConnectionFactory":private]= > object(Closure) #9 (2) { ["static"]= > array(2) { ["default"] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } ["future"] => object(GuzzleHttp\ Ring\ Client\ CurlMultiHandler) #7 (7) { ["factory":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #8 (0) { } ["selectTimeout":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > int(1)["active": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => NULL["handles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["delays": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["maxHandles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => int(100)["_mh"] => resource(54) of type(curl_multi) } } ["parameter"] => array(1) { ["$request"] => string(10) "" } } } } ["log": "Elasticsearch\Transport": private] => object(Psr\ Log\ NullLogger) #2 (0) { } ["retryAttempts"]= > int(1)["lastConnection"] => object(Elasticsearch\ Connections\ Connection) #13 (16) { ["handler":protected]= > object(Closure) #14 (3) { ["static"]= > array(1) { ["handler"] => object(Closure) #9 (2) { ["static"]= > array(2) { ["default"] => object(GuzzleHttp\ Ring\ Client\ CurlHandler) #5 (4) { ["factory":"GuzzleHttp\Ring\Client\CurlHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #6 (0) { } ["handles":"GuzzleHttp\Ring\Client\CurlHandler":private]= > array(1) { [113] => resource(113) of type(curl) } ["ownedHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => array(1) { [113] => bool(false) } ["maxHandles": "GuzzleHttp\Ring\Client\CurlHandler": private] => int(5) } ["future"] => object(GuzzleHttp\ Ring\ Client\ CurlMultiHandler) #7 (7) { ["factory":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > object(GuzzleHttp\ Ring\ Client\ CurlFactory) #8 (0) { } ["selectTimeout":"GuzzleHttp\Ring\Client\CurlMultiHandler":private]= > int(1)["active": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => NULL["handles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["delays": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => array(0) {} ["maxHandles": "GuzzleHttp\Ring\Client\CurlMultiHandler": private] => int(100)["_mh"] => resource(54) of type(curl_multi) } } ["parameter"] => array(1) { ["$request"] => string(10) "" } } } ["this"] => * RECURSION * ["parameter"] => array(4) { ["$request"] => string(10) "" ["$connection"] => string(10) "" ["$transport"] => string(10) "" ["$options"] => string(10) "" } } ["serializer": protected] => object(Elasticsearch\ Serializers\ SmartSerializer) #10 (0) { } ["transportSchema":protected]= > string(4) "http" ["host": protected] => string(9) "localhost" ["path": protected] => NULL["port": protected] => int(9200)["log": protected] => object(Psr\ Log\ NullLogger) #2 (0) { } ["trace":protected]= > object(Psr\ Log\ NullLogger) #4 (0) { } ["connectionParams":protected]= > array(1) { ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["headers": protected] => array(4) { ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["isAlive": protected] => bool(false)["pingTimeout": "Elasticsearch\Connections\Connection": private] => int(1)["lastPing": "Elasticsearch\Connections\Connection": private] => int(1618578186)["failedPings": "Elasticsearch\Connections\Connection": private] => int(1)["lastRequest": "Elasticsearch\Connections\Connection": private] => array(2) { ["request"] => array(6) { ["http_method"] => string(3) "GET" ["scheme"] => string(4) "http" ["uri"] => string(1) "/" ["body"] => NULL["headers"] => array(5) { ["Host"] => array(1) { [0] => string(9) "localhost" } ["Content-Type"] => array(1) { [0] => string(16) "application/json" } ["Accept"] => array(1) { [0] => string(16) "application/json" } ["User-Agent"] => array(1) { [0] => string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.21.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"] => array(1) { [0] => string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"] => array(3) { ["x-elastic-client-meta"] => bool(true)["port_in_header"] => bool(false)["curl"] => array(1) { [3] => int(9200) } } } ["response"] => * RECURSION * } ["OSVersion": "Elasticsearch\Connections\Connection": private] => string(27) "3.10.0-1160.21.1.el7.x86_64" } ["retries"] => int(1) } } } [7] => array(6) { ["file"] => string(72) "/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php" ["line"] => int(1671)["function"] => string(14) "performRequest" ["class"] => string(23) "Elasticsearch\Transport" ["type"] => string(2) "->" ["args"] => array(5) { [0] => string(3) "GET" [1] => string(1) "/" [2] => array(0) {} [3] => NULL[4] => array(0) {} } } [8] => array(6) { ["file"] => string(72) "/var/www/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php" ["line"] => int(865)["function"] => string(14) "performRequest" ["class"] => string(20) "Elasticsearch\Client" ["type"] => string(2) "->" ["args"] => array(1) { [0] => object(Elasticsearch\ Endpoints\ Info) #52 (8) { ["params":protected]= > array(0) {} ["index": protected] => NULL["type": protected] => NULL["id": protected] => NULL["method": protected] => NULL["body": protected] => NULL["options": "Elasticsearch\Endpoints\AbstractEndpoint": private] => array(0) {} ["serializer": protected] => NULL } } } [9] => array(6) { ["file"] => string(15) "/var/www/es.php" ["line"] => int(13)["function"] => string(4) "info" ["class"] => string(20) "Elasticsearch\Client" ["type"] => string(2) "->" ["args"] => array(0) {} } } ["previous": "Exception": private] => NULL } } }

ezimuel commented 3 years ago

@sewox from the output that you reported is reported a cURL error, as follows:

Failed to connect to ::1: Permission denied
Error code: 7

cURL is the default http client used by elasticsearch-php. This error means that the HTTP request is blocked by some firewall. I sugget to have a look at the settings of your CentOS Linux distro (3.10.0-1160.21.1.el7.x86_64). For instance, I found this answer on stackoverflow and this blog post about the cURL error 7 on CentOS.

Let me know if this will solve the issue, thanks!

sewox commented 3 years ago

Applying those ways, worked this time Thank you after execution output, this.

array(2) { ["request"]=> array(6) { ["http_method"]=> string(3) "GET" ["scheme"]=> string(4) "http" ["uri"]=> string(1) "/" ["body"]=> NULL ["headers"]=> array(5) { ["Host"]=> array(1) { [0]=> string(9) "localhost" } ["Content-Type"]=> array(1) { [0]=> string(16) "application/json" } ["Accept"]=> array(1) { [0]=> string(16) "application/json" } ["User-Agent"]=> array(1) { [0]=> string(72) "elasticsearch-php/7.12.0 (Linux 3.10.0-1160.24.1.el7.x86_64; PHP 7.3.27)" } ["x-elastic-client-meta"]=> array(1) { [0]=> string(43) "es=7.12.0,php=7.3.27,t=7.12.0,a=0,cu=7.29.0" } } ["client"]=> array(3) { ["x-elastic-client-meta"]=> bool(true) ["port_in_header"]=> bool(false) ["curl"]=> array(1) { [3]=> int(9200) } } } ["response"]=> array(8) { ["transfer_stats"]=> array(28) { ["url"]=> string(17) "http://localhost/" ["content_type"]=> string(31) "application/json; charset=UTF-8" ["http_code"]=> int(200) ["header_size"]=> int(87) ["request_size"]=> int(247) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0.010042) ["namelookup_time"]=> float(0.004271) ["connect_time"]=> float(0.004523) ["pretransfer_time"]=> float(0.00461) ["size_upload"]=> float(0) ["size_download"]=> float(534) ["speed_download"]=> float(53176) ["speed_upload"]=> float(0) ["download_content_length"]=> float(534) ["upload_content_length"]=> float(0) ["starttransfer_time"]=> float(0.009971) ["redirect_time"]=> float(0) ["redirect_url"]=> string(0) "" ["primary_ip"]=> string(3) "::1" ["certinfo"]=> array(0) { } ["primary_port"]=> int(9200) ["local_ip"]=> string(3) "::1" ["local_port"]=> int(57672) ["error"]=> string(0) "" ["errno"]=> int(0) } ["curl"]=> array(2) { ["error"]=> string(0) "" ["errno"]=> int(0) } ["effective_url"]=> string(17) "http://localhost/" ["headers"]=> array(2) { ["content-type"]=> array(1) { [0]=> string(31) "application/json; charset=UTF-8" } ["content-length"]=> array(1) { [0]=> string(3) "534" } } ["version"]=> string(3) "1.1" ["status"]=> int(200) ["reason"]=> string(2) "OK" ["body"]=> string(534) "{ "name" : "zamanbaz-1", "cluster_name" : "zamanbaz", "cluster_uuid" : "mvGdjQNCQsKnRFUyqQtAvw", "version" : { "number" : "7.12.0", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "78722783c38caa25a70982b5b042074cde5d3b3a", "build_date" : "2021-03-18T06:17:15.410153305Z", "build_snapshot" : false, "lucene_version" : "8.8.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } " } }

ErfanRasooli2000 commented 11 months ago

i am using windows and i run into this problem what i have to do?