When tmp is cleared as part of startup, elasticsearch fails as it starts before tmp is cleared and the files it creates are cleaned. A snippet from my jail console log: Starting elasticsearch. warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release Clearing /tmp. Updating motd:. Updating /var/run/os-release done. Starting cron. Mon 5 Apr 2021 04:58:08 UTC ERROR: Temporary file directory [/tmp/elasticsearch-17482280046379505908] does not exist or is not accessible FIX: Changing rc.d/elasticsearch to include "cleartmp": # REQUIRE: NETWORKING SERVERS cleartmp
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f950a15f3858d0b8abdb4357219058c3eed56fca commit f950a15f3858d0b8abdb4357219058c3eed56fca Author: Juraj Lutter <otis@FreeBSD.org> AuthorDate: 2021-07-03 21:41:57 +0000 Commit: Juraj Lutter <otis@FreeBSD.org> CommitDate: 2021-07-06 20:44:37 +0000 textproc/elasticsearch7: Update to 7.13.2 - Update to 7.13.2 - Fix support tools to find java correctly [1] - Needs enforce_statfs = 1 in jails [2] - Fix rc order [3] PR: 256921 [1] PR: 254777 [2] PR: 254776 [3] textproc/elasticsearch7/Makefile | 7 +++--- textproc/elasticsearch7/distinfo | 6 ++--- textproc/elasticsearch7/files/elasticsearch.in | 6 ++--- .../files/patch-bin_elasticsearch-env (new) | 26 ++++++++++++++++++++++ .../files/patch-config_elasticsearch.yml | 4 ++-- .../elasticsearch7/files/patch-config_jvm.options | 4 ++-- textproc/elasticsearch7/files/pkg-message.in | 6 +++++ 7 files changed, 46 insertions(+), 13 deletions(-)