sysutils/logstash6 fails to start as logstash user

Vikashb Badal vikashb at where-ever.za.net
Tue Dec 17 17:59:13 UTC 2019




on a fresh install of freebsd 12.1

service logstash start does not start or produce any logs,

i have used the defaults in /usr/local/etc/logstash

running the command ( from rc.d/logstash):
su -m logstash -c '/usr/local/logstash/bin/logstash --path.settings
/usr/local/etc/logstash -l /var/log/logstash'
[ERROR] 2019-12-17 18:41:12.279 [main] Logstash -
java.lang.IllegalStateException: Logstash stopped processing because of an
error: (ArgumentError) could not find a temporary directory


if i run as root:
/usr/local/logstash/bin/logstash --path.settings /usr/local/etc/logstash -l
/var/log/logstash

logstash starts up

from several google searches, https://github.com/elastic/logstash/issues/10714
looked promising, how ever i am unable to start logstash

i have checked /tmp and the noexec is off

root at elk-01:/usr/local/etc # zfs get all zroot/root/tmp
NAME            PROPERTY              VALUE                  SOURCE
zroot/root/tmp  type                  filesystem             -
zroot/root/tmp  creation              Thu Dec 12 11:16 2019  -
zroot/root/tmp  used                  952K                   -
zroot/root/tmp  available             108G                   -
zroot/root/tmp  referenced            952K                   -
zroot/root/tmp  compressratio         1.00x                  -
zroot/root/tmp  mounted               yes                    -
zroot/root/tmp  quota                 none                   default
zroot/root/tmp  reservation           none                   default
zroot/root/tmp  recordsize            128K                   default
zroot/root/tmp  mountpoint            /tmp                   inherited from
zroot/root
zroot/root/tmp  sharenfs              off                    default
zroot/root/tmp  checksum              on                     default
zroot/root/tmp  compression           off                    default
zroot/root/tmp  atime                 on                     default
zroot/root/tmp  devices               on                     default
zroot/root/tmp  exec                  on                     default
zroot/root/tmp  setuid                on                     default
zroot/root/tmp  readonly              off                    default
zroot/root/tmp  jailed                off                    default
zroot/root/tmp  snapdir               hidden                 default
zroot/root/tmp  aclmode               discard                default
zroot/root/tmp  aclinherit            restricted             default
zroot/root/tmp  createtxg             11                     -
zroot/root/tmp  canmount              on                     default
zroot/root/tmp  xattr                 off                    temporary
zroot/root/tmp  copies                1                      default
zroot/root/tmp  version               5                      -
zroot/root/tmp  utf8only              off                    -
zroot/root/tmp  normalization         none                   -
zroot/root/tmp  casesensitivity       sensitive              -
zroot/root/tmp  vscan                 off                    default
zroot/root/tmp  nbmand                off                    default
zroot/root/tmp  sharesmb              off                    default
zroot/root/tmp  refquota              none                   default
zroot/root/tmp  refreservation        none                   default
zroot/root/tmp  guid                  15516683446707309425   -
zroot/root/tmp  primarycache          all                    default
zroot/root/tmp  secondarycache        all                    default
zroot/root/tmp  usedbysnapshots       0                      -
zroot/root/tmp  usedbydataset         952K                   -
zroot/root/tmp  usedbychildren        0                      -
zroot/root/tmp  usedbyrefreservation  0                      -
zroot/root/tmp  logbias               latency                default
zroot/root/tmp  dedup                 off                    default
zroot/root/tmp  mlslabel                                     -
zroot/root/tmp  sync                  standard               default
zroot/root/tmp  dnodesize             legacy                 default
zroot/root/tmp  refcompressratio      1.00x                  -
zroot/root/tmp  written               952K                   -
zroot/root/tmp  logicalused           934K                   -
zroot/root/tmp  logicalreferenced     934K                   -
zroot/root/tmp  volmode               default                default
zroot/root/tmp  filesystem_limit      none                   default
zroot/root/tmp  snapshot_limit        none                   default
zroot/root/tmp  filesystem_count      none                   default
zroot/root/tmp  snapshot_count        none                   default
zroot/root/tmp  redundant_metadata    all                    default

if i execute ./logstash-plugin update in /usr/local/logstash/bin

i get this error:

Error ArgumentError, retrying 1/10
could not find a temporary directory

pkg info logstash6
logstash6-6.8.5
Name           : logstash6
Version        : 6.8.5


please advise


thanks

Vikash


-------------- next part --------------
An embedded message was scrubbed...
From: Vikashb Badal <vikashb at where-ever.za.net>
Subject: sysutils/logstash6 fails to start as logstash user
Date: Tue, 17 Dec 2019 19:35:50 +0200
Size: 9583
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20191217/d5e03f7a/attachment.eml>


More information about the freebsd-questions mailing list