Bug 244595 - textproc/elasticsearch6 does not start with read-only /usr/local/etc
Summary: textproc/elasticsearch6 does not start with read-only /usr/local/etc
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-04 15:30 UTC by wolfgang
Modified: 2022-11-28 20:44 UTC (History)
2 users (show)

See Also:
otis: maintainer-feedback+


Attachments
patch for startup script to define path to temporary files (1.49 KB, patch)
2020-03-04 15:30 UTC, wolfgang
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 2020-03-04 15:42:23 UTC
LGTM
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 freebsd_triage 2020-09-18 22:28:59 UTC
Did you also check ssl.keystore.path setting?
Comment 5 Juraj Lutter freebsd_committer freebsd_triage 2022-11-28 20:44:10 UTC
Plaease test with elasticsearch8. Closing this ticket for now.