NoAliveNodes Elasticsearch-PHP (Ingest-Attachment)

Hello, I'm new to programming. when used in php-es code "return $client->ingest()->putPipeline($params);" outputs an error "NoAliveNodes", but when using for example "return $client->index($params);" it works! Plugin Ingest-Attachment installed version 8.2.0 as well as ES and Kibana. I use PuTTY to connect to the server, and test everything on httpd with php 7.4. SElinux disable, ports are open in the firewall. Here is an example of code that does not work, and gives an error "NoAliveNodes".

require_once "connect.php";
    $client = \Elasticsearch\ClientBuilder::create()->build();
    $params = [
        'id' => 'attachment',
        'body' => [
            'description' => 'Extract attachment information',
            'processors' => [
                    'attachment' => [
                        'field' => 'content',
                        'indexed_chars' => -1
    return $client->ingest()->putPipeline($params);

When deleting return "$client->ingest()->putPipeline($params);" and using "return $client->index($params);" there is no error, but the code does not work even when I try to use print_r($params);

I found the problem in elasticsearch.yml, needed to be replaced with

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.