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#48014 - [elasticsearch] the package does not contain required "modules" directory, causing failure to start

Attached to Project: Community Packages
Opened by Teemu Rytilahti (teprrr) - Wednesday, 03 February 2016, 15:51 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Wednesday, 03 February 2016, 19:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The package does not contain modules directory required to make elasticsearch to bootstrap properly. Creating the directory manually fixes the problem.

Feb 03 16:21:36 lumi elasticsearch[707]: Exception in thread "main" java.lang.IllegalStateException: Unable to access 'path.home' (/usr/share/elasticsearch/modules)
Feb 03 16:21:36 lumi elasticsearch[707]: Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/modules
Feb 03 16:21:36 lumi elasticsearch[707]: at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
Feb 03 16:21:36 lumi elasticsearch[707]: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
Feb 03 16:21:36 lumi elasticsearch[707]: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
Feb 03 16:21:36 lumi elasticsearch[707]: at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)


Package: community/elasticsearch 2.2.0-1

Steps to reproduce:
1. Install elasticsearch on a clean system
2. systemctl start elasticsearch
3. See the error messages in journalctl
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Wednesday, 03 February 2016, 19:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  elasticsearch-2.2.0-3
Comment by Jamil Bou Kheir (jamilbk) - Wednesday, 03 February 2016, 16:40 GMT
I'm also experiencing this issue. Same package version. Manually creating /usr/share/elasticsearch/modules fixes the issue.
Comment by Massimiliano Torromeo (mtorromeo) - Wednesday, 03 February 2016, 19:06 GMT
Are you using the provided service files?
This is not an issue here. I don't have a module directory and the service is running just fine on multiple hosts.
Nevermind: I managed to reproduce the error.

Loading...