-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Comments
I think we should unset JAVA_TOOL_OPTIONS in our startup script... |
If I disabe jayatana on my ubuntu seems to work well |
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) |
+1 @rmuir |
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. |
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
Thank you for testing the beta and reporting this. |
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
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
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.
The text was updated successfully, but these errors were encountered: