- Operating system: OpenSUSE TW
# zypper repos --details |grep elast
4 | elasticsearch-7.x | Elasticsearch repository for 7.x packages | Yes | (r ) Yes | Yes | 99 | rpm-md | https://artifacts.elastic.co/packages/7.x/yum |
# zypper info elasticsearch
Loading repository data...
Reading installed packages...
Information for package elasticsearch:
--------------------------------------
Repository : Elasticsearch repository for 7.x packages
Name : elasticsearch
Version : 7.17.8-1
Arch : x86_64
Vendor : Elasticsearch
Installed Size : 501.9 MiB
Installed : Yes (automatically)
Status : up-to-date
Source package : elasticsearch-7.17.8-1.
Upstream URL : https://www.elastic.co/
Summary : Distributed RESTful search engine built for the cloud
Description :
Reference documentation can be found at
https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
and the 'Elasticsearch: The Definitive Guide' book can be found at
https://www.elastic.co/guide/en/elasticsearch/guide/current/index.html
I followed
https://docs.zammad.org/en/latest/install/source.html
https://docs.zammad.org/en/latest/install/elasticsearch.html
Starting the elasticsearch on OpenSUSE fails:
# systemctl start elasticsearch
Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xeu elasticsearch.service" for details.
# systemctl status elasticsearch.service
Γ elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-01-18 14:10:11 CET; 59s ago
Docs: https://www.elastic.co
Process: 12568 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 12568 (code=exited, status=1/FAILURE)
CPU: 4.168s
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:160)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.cli.Command.main(Command.java:77)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:125)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
Jan 18 14:10:11 zammad02 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Jan 18 14:10:11 zammad02 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Jan 18 14:10:11 zammad02 systemd[1]: Failed to start Elasticsearch.
Jan 18 14:10:11 zammad02 systemd[1]: elasticsearch.service: Consumed 4.168s CPU time.
# journalctl -xeu elasticsearch.service
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:410)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:406)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:254)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:501)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:272)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:247)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:364)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:169)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:160)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.cli.Command.main(Command.java:77)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:125)
Jan 18 14:10:11 zammad02 systemd-entrypoint[12568]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
Jan 18 14:10:11 zammad02 systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
ββ Subject: Unit process exited
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ An ExecStart= process belonging to unit elasticsearch.service has exited.
ββ
ββ The process' exit code is 'exited' and its exit status is 1.
Jan 18 14:10:11 zammad02 systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
ββ Subject: Unit failed
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ The unit elasticsearch.service has entered the 'failed' state with result 'exit-code'.
Jan 18 14:10:11 zammad02 systemd[1]: Failed to start Elasticsearch.
ββ Subject: A start job for unit elasticsearch.service has failed
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ A start job for unit elasticsearch.service has finished with a failure.
ββ
ββ The job identifier is 1153 and the job result is failed.
Jan 18 14:10:11 zammad02 systemd[1]: elasticsearch.service: Consumed 4.168s CPU time.
ββ Subject: Resources consumed by unit runtime
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ The unit elasticsearch.service completed and consumed the indicated resources.