Skip to content
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 · Fixed by #13813
Closed

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

silvestrelosada opened this issue Sep 25, 2015 · 6 comments · Fixed by #13813
Assignees
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >enhancement Team:Delivery Meta label for Delivery team v2.0.0-rc1

Comments

@silvestrelosada
Copy link

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
Copy link
Contributor

rmuir commented Sep 25, 2015

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

@silvestrelosada
Copy link
Author

If I disabe jayatana on my ubuntu seems to work well

@rmuir
Copy link
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
Copy link
Contributor

s1monw commented Sep 25, 2015

+1 @rmuir

@rmuir
Copy link
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
@clintongormley clintongormley added >enhancement help wanted adoptme :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts and removed help wanted adoptme labels Sep 25, 2015
rmuir added a commit to rmuir/elasticsearch that referenced this issue Sep 26, 2015
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 elastic#13785
@rmuir
Copy link
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
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
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
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >enhancement Team:Delivery Meta label for Delivery team v2.0.0-rc1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants