Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646388 - app-misc/elasticsearch: duplicate setting [path.home] found via command-line
Summary: app-misc/elasticsearch: duplicate setting [path.home] found via command-line
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-02 08:26 UTC by Steffen Weber
Modified: 2018-03-10 12:29 UTC (History)
2 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 Steffen Weber 2018-02-02 08:26:11 UTC
Starting Elasticsearch 6.0.1 or 6.1.2 on Gentoo Linux ~amd64 via its systemd unit file yields an error:

systemd[1]: Starting Elasticsearch...
systemd[1]: Started Elasticsearch.
elasticsearch[18634]: Exception in thread "main" java.lang.IllegalArgumentException: duplicate setting [path.home] found via command-line [/usr/share/elasticsearch] an>
elasticsearch[18634]:         at org.elasticsearch.cli.EnvironmentAwareCommand.putSystemPropertyIfSettingIsMissing(EnvironmentAwareCommand.java:115)
elasticsearch[18634]:         at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:83)
elasticsearch[18634]:         at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
elasticsearch[18634]:         at org.elasticsearch.cli.Command.main(Command.java:90)
elasticsearch[18634]:         at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)
elasticsearch[18634]:         at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85)
systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

I can "fix" it by removing "-Epath.home=${ES_HOME}" from the ExecStart line in /lib/systemd/system/elasticsearch.service but I'm not sure whether that is the correct fix.

# systemctl --version
systemd 236
+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL -XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN default-hierarchy=hybrid

# java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
Comment 1 Larry the Git Cow gentoo-dev 2018-03-10 12:29:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3daa676f81e230b25714f417f07e32c158c8a463

commit 3daa676f81e230b25714f417f07e32c158c8a463
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2018-03-09 13:13:59 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2018-03-10 12:29:13 +0000

    app-misc/elasticsearch: bump to 5.6.8/6.2.2
    
    Closes: https://bugs.gentoo.org/646388
    Closes: https://bugs.gentoo.org/647826
    Closes: https://github.com/gentoo/gentoo/pull/7405
    
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-misc/elasticsearch/Manifest                    |  2 +
 app-misc/elasticsearch/elasticsearch-5.6.8.ebuild  | 69 ++++++++++++++++++++++
 app-misc/elasticsearch/elasticsearch-6.2.2.ebuild  | 69 ++++++++++++++++++++++
 .../elasticsearch/files/elasticsearch.service.2    |  1 -
 4 files changed, 140 insertions(+), 1 deletion(-)