Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#58913 - [logstash] running logstash from the command line doesn't work

Attached to Project: Community Packages
Opened by hamelg (hamelg) - Thursday, 07 June 2018, 19:57 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Wednesday, 11 July 2018, 11:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Starting logstash on the command line [1] doesn't work.

[1] https://www.elastic.co/guide/en/logstash/6.2/running-logstash-command-line.html

Additional info:
* package version(s)
6.2.4
* config and/or log files etc.
Vanilla config

Steps to reproduce:
login as a regular user (not root) and run this on CLI :

/usr/share/logstash/bin/logstash --help

Expected result :
The command usage is displayed

Result given :
The command is failing and displaying this error

==
[ERROR] 2018-06-07 21:37:53.408 [main] Logstash - java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (GemspecError) There was a Errno::EACCES while loading logstash-core.gemspec:
Permission denied - /usr/share/logstash/logstash-core/versions-gem-copy.yml from
/usr/share/logstash/logstash-core/logstash-core.gemspec:17:in `<eval>'
==

There is a permission issue. When starting logstash, it tries to overwrite the file /usr/share/logstash/logstash-core/versions-gem-copy.yml. To fix this issue, I had to remove the file /usr/share/logstash/versions.yml (see the code in /usr/share/logstash/logstash-core/logstash-core.gemspec).
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Wednesday, 11 July 2018, 11:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  logstash-6.3.1-1

Loading...