Bug 254776 - textproc/elasticsearch7 fails to start when clear_tmp_enable="YES"
Summary: textproc/elasticsearch7 fails to start when clear_tmp_enable="YES"
Status: New
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-04-06 11:24 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