New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastic search 2.0.0-beta2 zip package does not start on ubuntu #13785

Closed
silvestrelosada opened this Issue Sep 25, 2015 · 6 comments

Comments

Projects
None yet
5 participants
@silvestrelosada

silvestrelosada commented Sep 25, 2015

I'm running several installations of elasticsearch 1.X on ubuntu laptop without any issues, that installatios are made from zip. I downloaded version and when I try to run I found this error.

Exception in thread "main" java.lang.IllegalStateException: failed to load bundle [] due to jar hell
Likely root cause: java.security.AccessControlException: access denied ("java.io.FilePermission" "/usr/share/java/jayatanaag.jar" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
at java.security.AccessController.checkPermission(AccessController.java:559)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
at java.util.zip.ZipFile.(ZipFile.java:206)
at java.util.zip.ZipFile.(ZipFile.java:145)
at java.util.jar.JarFile.(JarFile.java:154)
at java.util.jar.JarFile.(JarFile.java:91)
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:116)
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:345)
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:112)
at org.elasticsearch.node.Node.(Node.java:144)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:168)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:266)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.

Jayatana is installed by default on ubuntu to support global menu.

@rmuir

This comment has been minimized.

Show comment
Hide comment
@rmuir

rmuir Sep 25, 2015

Contributor

I think we should unset JAVA_TOOL_OPTIONS in our startup script...

Contributor

rmuir commented Sep 25, 2015

I think we should unset JAVA_TOOL_OPTIONS in our startup script...

@silvestrelosada

This comment has been minimized.

Show comment
Hide comment
@silvestrelosada

silvestrelosada Sep 25, 2015

If I disabe jayatana on my ubuntu seems to work well

silvestrelosada commented Sep 25, 2015

If I disabe jayatana on my ubuntu seems to work well

@rmuir

This comment has been minimized.

Show comment
Hide comment
@rmuir

rmuir Sep 25, 2015

Contributor

Yeah, I think we should just do it for you so people don't experience problems, and don't need to disable it (e.g. we disable it for elasticsearch, because we don't want it)

Contributor

rmuir commented Sep 25, 2015

Yeah, I think we should just do it for you so people don't experience problems, and don't need to disable it (e.g. we disable it for elasticsearch, because we don't want it)

@s1monw

This comment has been minimized.

Show comment
Hide comment
@s1monw

s1monw Sep 25, 2015

Contributor

+1 @rmuir

Contributor

s1monw commented Sep 25, 2015

+1 @rmuir

@rmuir

This comment has been minimized.

Show comment
Hide comment
@rmuir

rmuir Sep 25, 2015

Contributor

And warn if it contains anything. Basically saying, hey look, we are ignoring this stuff, if you want to pass stuff to java, use JAVA_OPTS. That way there are no surprises.

Contributor

rmuir commented Sep 25, 2015

And warn if it contains anything. Basically saying, hey look, we are ignoring this stuff, if you want to pass stuff to java, use JAVA_OPTS. That way there are no surprises.

@rmuir rmuir self-assigned this Sep 25, 2015

@rmuir rmuir added the v2.0.0 label Sep 25, 2015

rmuir added a commit to rmuir/elasticsearch that referenced this issue Sep 26, 2015

Don't let ubuntu try to install its crazy jayatana agent.
By default, our security stuff will reject this (as do other apps).
See https://bugs.launchpad.net/ubuntu/+source/jayatana/+bug/1441487

However its not really the user's fault, ubuntu screws up here by
installing this agent by default. We don't want any agents.

So instead, we drop it like this:

```
$ bin/elasticsearch
Warning: Ignoring JAVA_TOOL_OPTIONS=-Bogus1 -Bogus2
Please pass JVM parameters via JAVA_OPTS instead
[2015-09-25 23:34:39,777][INFO ][node                     ] [Doctor Bong] version[3.0.0-SNAPSHOT], pid[19044], build[2f5b6ea/2015-09-26T03:18:16Z]
...
```

Closes #13785

@rmuir rmuir closed this in #13813 Sep 26, 2015

@rmuir

This comment has been minimized.

Show comment
Hide comment
@rmuir

rmuir Sep 26, 2015

Contributor

Thank you for testing the beta and reporting this.

Contributor

rmuir commented Sep 26, 2015

Thank you for testing the beta and reporting this.

rmuir added a commit that referenced this issue Sep 26, 2015

Don't let ubuntu try to install its crazy jayatana agent.
By default, our security stuff will reject this (as do other apps).
See https://bugs.launchpad.net/ubuntu/+source/jayatana/+bug/1441487

However its not really the user's fault, ubuntu screws up here by
installing this agent by default. We don't want any agents.

So instead, we drop it like this:

```
$ bin/elasticsearch
Warning: Ignoring JAVA_TOOL_OPTIONS=-Bogus1 -Bogus2
Please pass JVM parameters via JAVA_OPTS instead
[2015-09-25 23:34:39,777][INFO ][node                     ] [Doctor Bong] version[3.0.0-SNAPSHOT], pid[19044], build[2f5b6ea/2015-09-26T03:18:16Z]
...
```

Closes #13785

rmuir added a commit that referenced this issue Sep 26, 2015

Don't let ubuntu try to install its crazy jayatana agent.
By default, our security stuff will reject this (as do other apps).
See https://bugs.launchpad.net/ubuntu/+source/jayatana/+bug/1441487

However its not really the user's fault, ubuntu screws up here by
installing this agent by default. We don't want any agents.

So instead, we drop it like this:

```
$ bin/elasticsearch
Warning: Ignoring JAVA_TOOL_OPTIONS=-Bogus1 -Bogus2
Please pass JVM parameters via JAVA_OPTS instead
[2015-09-25 23:34:39,777][INFO ][node                     ] [Doctor Bong] version[3.0.0-SNAPSHOT], pid[19044], build[2f5b6ea/2015-09-26T03:18:16Z]
...
```

Closes #13785

@spinscale spinscale added v2.0.0-rc1 and removed v2.0.0 labels Oct 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment