nextcloud / fulltextsearch_elasticsearch

🔍 Use Elasticsearch to index the content of your Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch_elasticsearch
GNU Affero General Public License v3.0
81 stars 30 forks source link

Your ElasticSearchPlatform is not configured properly #112

Open Jugosloven opened 4 years ago

Jugosloven commented 4 years ago

Hello,

Recently installed ElasticSearch 7.8.0 , running Nextcloud App 1.5.1 (Nextcloud is running 18.0.6 version).

In Nextcloud configuration using: http://localhost:9200 for Address.

[user@server public_html]$ curl -XGET 'http://localhost:9200' { "name" : "server.hostname", "cluster_name" : "elasticsearch", "cluster_uuid" : "fhYWT7VpQ0uJBlcSbeX8CQ", "version" : { "number" : "7.8.0", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "757314695644ea9a1dc2fecd26d1a43856725e65", "build_date" : "2020-06-14T19:35:50.234439Z", "build_snapshot" : false, "lucene_version" : "8.5.1", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }

However, when doing this test: php occ fulltextsearch:test

I am seeing this error:

.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. ok
Locking process ok
Removing test. fail
Error detected, unlocking process ok In ConfigService.php line 144:

Your ElasticSearchPlatform is not configured properly

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

Not sure what i am doing wrong here, any help is greatly appriciated.

Thank you!

priiduonu commented 4 years ago

Verify that you have filled in all fields in "Settings" -> "Full text search" -> "Elastic Search":

By default they display placeholders which should be explicitly overwritten (with same values, if you like).

PonusJang commented 4 years ago

.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. ok
Locking process ok
Removing test. fail
Error detected, unlocking process ok In ConfigService.php line 144:

Your ElasticSearchPlatform is not configured properly

how to fix the problem ?

GeorgioLPB commented 4 years ago

Test with ElasticSearch 6.8.x, I don't think it's compatible with ElasticSearch 7