fulltextsearch_elasticsearch icon indicating copy to clipboard operation
fulltextsearch_elasticsearch copied to clipboard

NC23 / ES7.16: `request [/nextcloud/_search] contains unrecognized parameter: [amp]`

Open Kunsi opened this issue 3 years ago • 1 comments

When running occ fulltextsearch:test, i get the following output

> sudo -u www-data php --define apc.enable_cli=1 occ fulltextsearch:test
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
 
.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. ok  
Pausing 3 seconds 1 2 3 ok  
Initializing index mapping. ok  
Indexing generated documents. ok  
Pausing 3 seconds 1 2 3 ok  
Retreiving content from a big index (license). (size: 32386) ok  
Comparing document with source. ok  
Searching basic keywords:  
 - 'test' fail  
Error detected, unlocking process ok 
In Connection.php line 693:
                                                                                                                                                                                                                                                                                 
  {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/nextcloud/_search] contains unrecognized parameter: [amp]"}],"type":"illegal_argument_exception","reason":"request [/nextcloud/_search] contains unrecognized parameter: [amp]"},"status":40  
  0}                                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                 

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

The documentation in the wiki tells users to install elasticsearch 6.x, is this addon not compatible with elasticsearch 7.x?

Versions

  • Nextcloud 23.0.0
  • PHP 8.0.13 (cli) (built: Nov 22 2021 09:47:37) ( NTS )
  • Full Text Search 23.0.0
  • Full Text Search - Elasticsearch Platform 23.0.0
  • Elasticsearch 7.16.2

Kunsi avatar Jan 09 '22 21:01 Kunsi

I had similar issues with newer versions of ES. Not sure if it matches the server version but the client version being used for communication with ES is currently 7.12 see:https://github.com/nextcloud/fulltextsearch_elasticsearch/blob/3a71feeecc701e8d0ab5c18b144d1c05b905c145/composer.json#L23 Currently i stick to ES server 7.6.0 which works quite well for me. If you're interested in a patched docker-version (where CVE-2021-44228 is already fixed) you could have a look at https://hub.docker.com/r/r0wi/elasticsearch-nextcloud-docker

R0Wi avatar Jan 23 '22 20:01 R0Wi