Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605864 - app-misc/elasticsearch-5.0.1: wrong permissions on data/log dirs
Summary: app-misc/elasticsearch-5.0.1: wrong permissions on data/log dirs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-16 10:01 UTC by dE
Modified: 2017-02-24 10:00 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dE 2017-01-16 10:01:14 UTC
The permissions of the default directories of this package is wrong.

elasticsearch runs as user elasticsearch, the owner of the following folders must be the same -- 

/var/log/elasticsearch (logdir)
/var/lib/elasticsearch (datadir)

Otherwise ES quits with -- 

Caused by: java.nio.file.AccessDeniedException: /var/lib/elasticsearch/nodes
Comment 1 Tomáš Mózes 2017-01-21 05:59:42 UTC
Can you please test with version 5.1.1 that is in the tree?

The init script sets the permissions (https://github.com/gentoo/gentoo/blob/master/app-misc/elasticsearch/files/elasticsearch.init7):

checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/lib/elasticsearch"
checkpath -d -o "${ES_USER}:${ES_GROUP}" -m750 "/var/log/elasticsearch"
Comment 2 dE 2017-02-24 10:00:54 UTC
Yes, verified.

Thanks!