Elasticsearch 8.19.8 rejects the Accept: application/vnd.elasticsearch+json;

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Some useful links to gather information about your Nextcloud Talk installation:
Information about Signaling server: /index.php/index.php/settings/admin/talk#signaling_server
Information about TURN server: /index.php/settings/admin/talk#turn_server
Information about STUN server: /index.php/settings/admin/talk#stun_server

Elasticsearch 8.19.8 rejects the Accept: application/vnd.elasticsearch+json; compatible-with=9 header, returning HTTP 400 even for simple GET / requests.
As long as the Nextcloud Full Text Search – Elasticsearch app sends this header, it will never work.

Conclusion

This is a hard incompatibility between:

  • Nextcloud 32 (Hub 25) with the fulltextsearch_elasticsearch app
    → uses the Elasticsearch PHP client 9.x and sends
    compatible-with=9

  • Elasticsearch 8.19.8
    → does not accept compatible-with=9 requests

Because of this mismatch, the Full Text Search platform test fails and indexing/searching cannot start, even though Elasticsearch itself is running and healthy.

Important note

This is not a problem with:

  • networking

  • Docker

  • disk space

  • permissions

  • Nextcloud configuration

It is a protocol-level compatibility issue between the client used by Nextcloud and the Elasticsearch server version.

Hi, see Fulltextsearch fails during startup · nextcloud/all-in-one · Discussion #7341 · GitHub