Issue with Full-Text Search Indexing on Nextcloud with Elasticsearch (No alive nodes. All the 1 nodes seem to be down.)

Description:
I am encountering an issue with the full-text search functionality on Nextcloud integrated with Elasticsearch. After configuring everything according to the guidelines, I am unable to complete indexing, and the search returns errors.

System Details:

  • Nextcloud Version: 28.0.0.11
  • Elasticsearch Version: 28.0.3 (on Nextcloud)
  • Elasticsearch Version: 8.6.1 (on external server)
  • Enabled Apps:
    • fulltextsearch: 28.0.1
    • fulltextsearch_elasticsearch: 28.0.3

Commands Executed and Output:

  1. Command: php occ fulltextsearch:check

    • Output:
      {
          "search_platform": "OCA\\FullTextSearch_Elasticsearch\\Platform\\ElasticSearchPlatform",
          "provider_indexed": "",
          "elastic_host": ["https://[IP-ADDRESS]:9204"],
          "elastic_index": "[index-name]",
          "fields_limit": "10000",
          "es_ver_below66": "0",
          "elastic_logger_enabled": "1",
          "analyzer_tokenizer": "standard",
          "allow_self_signed_cert": "false"
      }
      
  2. Command: php occ fulltextsearch:test

    • Output:
      Testing search platform. fail
      In SimpleNodePool.php line 68:
      No alive nodes. All the 1 nodes seem to be down.
      
  3. Command: php occ fulltextsearch:index

    • Output:
      In SimpleNodePool.php line 68:
      No alive nodes. All the 1 nodes seem to be down.
      
  4. Command: nc -zv [IP-ADDRESS] 9204

    • Output:
      Ncat: Version 7.92 ( https://nmap.org/ncat )
      Ncat: Connected to [IP-ADDRESS]:9204.
      Ncat: 0 bytes sent, 0 bytes received in 0.11 seconds.
      
  5. Command: curl [IP-ADDRESS]:9204

    • Output:
     {
  "name" : "es8.6node",
  "cluster_name" : "es8.6luster",
  "cluster_uuid" : "--81xxxxxx5Ww",
  "version" : {
    "number" : "8.6.1",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : "180c9830da956993e59e2cd70eb32b5e383ea42c",
    "build_date" : "2023-01-24T21:35:11.506992272Z",
    "build_snapshot" : false,
    "lucene_version" : "9.4.2",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

Steps Taken:

  • I have verified that Elasticsearch version 8.6.1 is configured and running on an external server.
  • I tested the connection to the Elasticsearch node, and it appears reachable (connection confirmed via nc).
  • I ran the commands fulltextsearch:check, fulltextsearch:test, and fulltextsearch:index with the results provided above.

Issue:
It seems that Elasticsearch is not responding correctly to the commands from Nextcloud, even though the external server with Elasticsearch 8.6.1 appears to be active and reachable. The error No alive nodes. All the 1 nodes seem to be down occurs during both testing and indexing.

Request:
Could you please help me resolve this issue? I would like to know if there are specific configurations that need to be adjusted or if there are known compatibility issues between this version of Elasticsearch and Nextcloud.

Thank you in advance for your support.