Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603780 - app-admin/logstash-bin-5.1.1 crashes through lack of permissions
Summary: app-admin/logstash-bin-5.1.1 crashes through lack of permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-26 18:25 UTC by WOLfgang Schricker
Modified: 2016-12-29 15:15 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/logstash/logstash-plain.log (logstash-plain.log,1.06 KB, application/pgp-signature)
2016-12-26 18:25 UTC, WOLfgang Schricker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description WOLfgang Schricker 2016-12-26 18:25:20 UTC
ArgumentError: Path "/opt/logstash/data/queue" must be a writable directory. It is not writable.

Reproducible: Always

Steps to Reproduce:
# /etc/init.d/logstash start
 * Checking your configuration ...
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
Configuration OK
[2016-12-26T18:20:34,073][INFO ][logstash.runner] Using config.test_and_exit mode. Config Validation Result: OK. Exiting Logstash [ ok ]
 * /var/log/logstash/logstash-plain.log: correcting mode
 * /var/log/logstash/logstash-plain.log: correcting owner
 * Starting logstash ...

# /etc/init.d/logstash stop
 * Stopping logstash ...
 * start-stop-daemon: no matching processes found
Comment 1 WOLfgang Schricker 2016-12-26 18:25:53 UTC
Created attachment 457446 [details]
/var/log/logstash/logstash-plain.log
Comment 2 Tomáš Mózes 2016-12-28 07:25:43 UTC
Thanks for the report.

This happens because logstash first checks the config as root and creates data/queue. Later, when you start logstash as non-root, it cannot access it.
Comment 3 Tomáš Mózes 2016-12-29 08:39:12 UTC
Should be fixed with this PR:
https://github.com/gentoo/gentoo/pull/3268

This will force update the permissions on all files in:
/opt/logstash/data
/var/log/logstash
/run/logstash
Comment 4 Tomáš Mózes 2016-12-29 15:15:04 UTC
Please try 5.1.1-r1.