nextcloud / vm

💻☁📦 The Nextcloud VM (virtual machine appliance), Home/SME Server and scripts for RPi (4). Community developed and maintained.
https://download.nextcloudvm.com
GNU General Public License v3.0
1.3k stars 656 forks source link

Install of Fulltextsearch failing #2528

Closed thatstheplace closed 1 year ago

thatstheplace commented 1 year ago

Steps To Reproduce

Install fulltextsearch.

Expected Result

fulltextsearch installing, indexing and running.

Actual Result

Waiting for a few seconds before indexing starts...

.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 304:

  Search platform (Elasticsearch) down ?  

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

Screenshots, Videos, or Pastebins

No response

Additional Context

curl -X GET "localhost:9200/?pretty"

is giving me:

Unauthorized

Build Version

27.0.1

Environment

By using the scripts

Environment Details

No response

enoch85 commented 1 year ago

Yes, this is known. Thanks for reporting!

@Ark74

Ark74 commented 1 year ago

You need to pass the credentials in order to get a response,

curl -XGET "credential:password@localhost:9200/"

The opensearch server is working, the nextcloud client is what changed since version 26.

Edit: Opened an issue on the subject: https://github.com/nextcloud/fulltextsearch_elasticsearch/issues/271

enoch85 commented 1 year ago

@Ark74 What's your opinion on this? https://github.com/R0Wi/elasticsearch-nextcloud-docker Could we replace your docker with that one?

Ark74 commented 1 year ago

My opinion is that you'll be depending on what R0Wi does with the image he hosts. The current setup uses the main Opensearch image, not any third user/developer hosted one, not even me.

Another thought is about the Elastic Search license from Apache to SSPL change, IIRC it will affect SaaS providers using their fts engine, at what point that could become an issue as an automated installation system?

That was the second point we targeted while moving to the Opensearch one.

thatstheplace commented 1 year ago

Ok, this is getting me a response. I think for you its no surprise and because I don't know how private the response is, I don't post it here, except you need it.

curl -XGET "credential:password@localhost:9200/"

enoch85 commented 1 year ago

After disucssions with @Ark74 this is something that @ArtificialOwl needs to fix (implement support for OpenSearch) since we are using that in our implementation due to licensing and other stuff - @Ark74 correct me if I'm wrong.

Ark74 commented 1 year ago

Nope, that's the main issue. We hope @ArtificialOwl could take our petition into account, and by restoring ES 7 retro-compatibility this can be solved.

At some point maybe we could work together with him on the future Opensearch 2.x support if he sees fit. Regards

dualizeo commented 1 year ago

this might be the problem which is causing the proxmox vm to run at 100% all the time

enoch85 commented 1 year ago

This is now fixed, please run the installer again: https://github.com/nextcloud/vm/pull/2541