Fulltextsearch - Testing search platform. fail

I’ m getting the following error message: Testing search platform. fail

where to look next?

ec2-user@ip-172-31-13-219:~/nextcloud-docker-git$ sudo docker exec nextcloud curl -XGET 'elasticsearch_tesseract:9200/?pretty'
{
  "name" : "a19cb0db9c2b",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "DE-pWs9RRBSDHGlf7G7H2w",
  "version" : {
    "number" : "7.2.0",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : "508c38a",
    "build_date" : "2019-06-20T15:54:18.811730Z",
    "build_snapshot" : false,
    "lucene_version" : "8.0.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

ec2-user@ip-172-31-13-219:~/nextcloud-docker-git$ sudo docker exec --user www-data nextcloud php occ fulltextsearch:test

.Testing your current setup:
Creating mocked content provider. ok
Testing mocked provider: get indexable documents. (2 items) ok
Loading search platform. (Elasticsearch) ok
Testing search platform. fail
In Test.php line 301:

  Search platform (Elasticsearch) down ?


fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY]

ec2-user@ip-172-31-13-219:~/nextcloud-docker-git$ sudo docker exec --user www-data nextcloud php occ fulltextsearch:check
Full text search 1.3.4

- Search Platform:
Elasticsearch 1.3.4
{
    "elastic_host": [
        "http:\/\/elasticsearch_tesseract:9200"
    ],
    "elastic_index": "nc_index",
    "fields_limit": "10000",
    "es_ver_below66": "0",
    "analyzer_tokenizer": "standard"
}

- Content Providers:
Files 1.3.2
{
    "files_local": "1",
    "files_external": "0",
    "files_group_folders": "1",
    "files_encrypted": "1",
    "files_federated": "0",
    "files_size": "20",
    "files_pdf": "1",
    "files_office": "1",
    "files_image": "1",
    "files_audio": "0"
}

the nextcloud setup is from here:

Hello,

I get the same error if I send : sudo -u www-data php occ fulltextsearch:test

Do you already have a solution for the problem?

Thanks! Michael

no. do you run this in a docker environment or native?

Nativ!
I have a VM with nextcloud and a VM with elasticsearch.
I have installed elasticsearch and it works fine, but the connection to nextcloud do not work.

@cult could you look into it please? it seems the problem is not related to docker.

Check if you can reach elasticsearch using a curl request from the VM of nextcloud

Check if you can reach elasticsearch using a curl request from the VM of nextcloud

My IP from elasticsearch VM is 192.168.178.198
So I have on my nextcloud VM send the command “curl 192.168.178.198” (is this correct?)
Error: curl: (7) Failed to connect to 192.168.178.198 port 80: Connection refused

Do I have to open port 80 manuel on my elasticsearch VM?

i think it’s port 9200

curl -XGET '192.168.178.193:9200/?pretty'

The same error (with or without sudo):

For your additional information: I have setup a fresh VM with ubuntu 18.04 LTS server with this setup commands for elasticsearch (from the elasticsearch homepage):

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
sudo apt-get update && sudo apt-get install elasticsearch
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.2.0-amd64.deb
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.2.0-amd64.deb.sha512
shasum -a 512 -c elasticsearch-7.2.0-amd64.deb.sha512 
sudo dpkg -i elasticsearch-7.2.0-amd64.deb
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service

Hello @Cult, have you an idea, why connection not possible? Thank’s!