Bug 244595

Summary: textproc/elasticsearch6 does not start with read-only /usr/local/etc
Product: Ports & Packages Reporter: wolfgang
Component: Individual Port(s)Assignee: Juraj Lutter <otis>
Status: New ---    
Severity: Affects Some People CC: 000.fbsd, otis
Priority: --- Flags: otis: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
patch for startup script to define path to temporary files none

Description wolfgang 2020-03-04 15:30:39 UTC
Created attachment 212145 [details]
patch for startup script to define path to temporary files

On systems where /usr/local/etc is mounted read-only, elasticsearch6 fails to start because it tries to create temporary files under /usr/local/etc/elasticsearch. The attached patch restores the possibilty to define a path for temporary files, defaulting to /var/tmp/elasticsearch
Comment 1 Juraj Lutter freebsd_committer 2020-03-04 15:42:23 UTC
Comment 2 wolfgang 2020-03-04 15:49:24 UTC
The patch would also work for textproc/elasticsearch7
Comment 3 wolfgang 2020-03-04 16:36:46 UTC
Unfortunately elasticsearch6 still fails to start on read-only /usr/local/etc after this patch, because it tries to create a temporary keystore in /usr/local/etc/elastic
So this patch is useful to define atory for tempfiles, but does not solve my original problem.
Comment 4 Juraj Lutter freebsd_committer 2020-09-18 22:28:59 UTC
Did you also check ssl.keystore.path setting?