CentOS Linux release 7.7.1908 (Core)
Php 7.3.13
Mysql 5.7.29
Nextcloud 17.0.2
elasticsearch-6.8.6.rpm
readonlyrest-1.18.10_es6.8.6.zip
[root@nextcloud ~]# sudo -u apache /usr/bin/php /var/www/html/occ fulltextsearch:check
Full text search 1.3.5
- Search Platform:
Elasticsearch 1.4.0
{
"elastic_host": [
"http://nextcloud:********@localhost:9200"
],
"elastic_index": "nextcloud",
"fields_limit": "10000",
"es_ver_below66": "0",
"analyzer_tokenizer": "standard"
}
- Content Providers:
Files 1.3.6
{
"files_local": "1",
"files_external": "2",
"files_group_folders": "1",
"files_encrypted": "0",
"files_federated": "0",
"files_size": "20",
"files_pdf": "1",
"files_office": "1",
"files_image": "0",
"files_audio": "0"
}
[root@nextcloud ~]#
FILE /etc/elasticsearch/readonlyrest.yml
readonlyrest:
access_controle_rules:
name: “Require HTTP Basic Auth”
type: allow
auth_key: nextcloud:nextcloud
indices: [“nextcloud”]
ADD /etc/elasticsearch/elasticsearch.yml
xpack.security.enabled: false
Elasticsearch service FAILED after 10 seconds.
[root@nextcloud ~]# systemctl status elasticsearch
â—Ź elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Qui 2020-01-16 09:26:24 -03; 27s ago
Docs: http://www.elastic.co
Process: 1305 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 1305 (code=exited, status=1/FAILURE)
Jan 16 09:28:01 nextcloud.local systemd[1]: Started Elasticsearch.
Jan 16 09:26:24 nextcloud.local systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Jan 16 09:26:24 nextcloud.local systemd[1]: Unit elasticsearch.service entered failed state.
Jan 16 09:26:24 nextcloud.local systemd[1]: elasticsearch.service failed.
[root@nextcloud ~]#
I’ve tested several versions, updated everything, searched several blogs, but I can’t solve the problem. It is really frustrating.
Can any kindness help me?