Bug 254776 - textproc/elasticsearch7 fails to start when clear_tmp_enable="YES"
Summary: textproc/elasticsearch7 fails to start when clear_tmp_enable="YES"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-05 05:11 UTC by Paul Armstrong
Modified: 2021-07-06 20:47 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (elastic)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Armstrong 2021-04-05 05:11:42 UTC
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
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-07-06 20:45:16 UTC
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(-)