Elasticsearch

less memory: change heapsize

/etc/elasticsearch/jvm.options

-Xms1g
-Xmx1g

https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#heap-size-settings

make it accessible externally

nano /etc/elasticsearch/elasticsearch.yml

network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
http.port: 9200

https://stackoverflow.com/a/65718115

ERROR: plugin directory [/usr/share/elasticsearch/plugins/ingest-attachment] already exists; if you need to update the plugin, uninstall it first using command 'remove ingest-attachment'

/usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-attachment

und dann

/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment

https://markus-blog.de/index.php/2018/08/14/troubleshooting-nextcloud-fulltextsearch-plugin-ingest-attachment-was-built-for-elasticsearch-version-6-3-0-but-version-6-3-2-is-running/

Tags: Linux