Hello, the unexpected restart of the server will cause the following error in fess. Can you help me check it? Thank you.
fess.log
Making the software unusable:
If embedded OpenSearch does not work, please see Installation guide to install Fess and OpenSearch.
Thank you for your reply. It turns out that it is necessary to GZ/ZIP/RPM/DEB version, you must install the correct version of OpenSearch
, I suggest you put this sentence on the page where you install fess
I used docker-fess installation and the original configuration, but ES01 reported an error.
services:
es01:
image: ghcr.io/codelibs/fess-opensearch:2.11.1
container_name: es01
environment:
- node.name=es01
- discovery.seed_hosts=es01
- cluster.initial_cluster_manager_nodes=es01
- cluster.name=fess-es
- bootstrap.memory_lock=true
- node.roles=cluster_manager,data,ingest,ml
- plugins.security.disabled=true
- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g"
- "FESS_DICTIONARY_PATH=/usr/share/opensearch/config/dictionary"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65535
hard: 65535
volumes:
- esdata01:/usr/share/opensearch/data
- esdictionary01:/usr/share/opensearch/config/dictionary
ports:
- 9700:9200
networks:
- esnet
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
restart: unless-stopped
volumes:
esdata01:
driver: local
esdictionary01:
driver: local
ERROR:
[2023-12-12T06:30:14,586][INFO ][o.o.s.l.BuiltinLogTypeLoader] [es01] Loaded [ad_ldap_logtype.json] log type
[2023-12-12T06:30:14,693][INFO ][o.o.t.TransportService ] [es01] publish_address {172.24.0.2:9300}, bound_addresses {0.0.0.0:9300}
[2023-12-12T06:30:14,849][INFO ][o.o.b.BootstrapChecks ] [es01] bound or publishing to a non-loopback address, enforcing bootstrap checks
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
ERROR: OpenSearch did not exit normally - check the logs at /usr/share/opensearch/logs/fess-es.log
[2023-12-12T06:30:14,862][INFO ][o.o.n.Node ] [es01] stopping ...
[2023-12-12T06:30:14,882][INFO ][o.o.n.Node ] [es01] stopped
[2023-12-12T06:30:14,882][INFO ][o.o.n.Node ] [es01] closing ...
[2023-12-12T06:30:14,890][INFO ][o.o.n.Node ] [es01] closed
solution:
sudo sysctl -w vm.max_map_count=262144