I've been trying to use azure blob storage with opendistro elasticsearch for snapshot. I've passed account name and key for storage account but while trying to register repo. getting following error
{"error":{"root_cause":[{"type":"repository_verification_exception","reason":"[bk] path is not accessible on master node"}],"type":"repository_verification_exception","reason":"[bk] path is not accessible on master node","caused_by":{"type":"null_pointer_exception","reason":"Cannot invoke \"String.length()\" because \"host\" is null"}},"status":500}
also error on node
Caused by: org.elasticsearch.repositories.RepositoryVerificationException: [bk] path is not accessible on master node
at org.elasticsearch.repositories.blobstore.BlobStoreRepository.startVerification(BlobStoreRepository.java:1276) ~[elasticsearch-7.10.2.jar:7.10.2]
at org.elasticsearch.repositories.RepositoriesService$3.doRun(RepositoriesService.java:268) ~[elasticsearch-7.10.2.jar:7.10.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:743) ~[elasticsearch-7.10.2.jar:7.10.2]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-7.10.2.jar:7.10.2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:832) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "String.length()" because "host" is null
at com.microsoft.azure.storage.core.Utility.isHostDnsName(Utility.java:533) ~[?:?]
at com.microsoft.azure.storage.core.Utility.determinePathStyleFromUri(Utility.java:521) ~[?:?]
at com.microsoft.azure.storage.StorageUri.<init>(StorageUri.java:71) ~[?:?]
at com.microsoft.azure.storage.core.PathUtility.appendPathToUri(PathUtility.java:124) ~[?:?]
at com.microsoft.azure.storage.core.PathUtility.appendPathToUri(PathUtility.java:108) ~[?:?]
at com.microsoft.azure.storage.blob.CloudBlobContainer.<init>(CloudBlobContainer.java:169) ~[?:?]
at com.microsoft.azure.storage.blob.CloudBlobClient.getContainerReference(CloudBlobClient.java:123) ~[?:?]
Following is my custom docker image
FROM amazon/opendistro-for-elasticsearch:1.13.0
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch repository-azure
ENV AZURE_CLIENT_ACCOUNT <bas64 encoded account>
ENV AZURE_CLIENT_KEY <base64 encoded key>
RUN /usr/share/elasticsearch/bin/elasticsearch-keystore create
RUN echo $AZURE_CLIENT_ACCOUNT | /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin azure.client.default.account
RUN echo $AZURE_CLIENT_KEY | /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin azure.client.default.key
Can anyone help ?
Related
My logstash instance has stopped working with a Permission denied error. I'm running on Windows. I've been using version 7.8.1 and have also tried with 7.16.2. Both return the same error. I'm running as an administrator. Same error in Windows cmd and git bash shells. Same error when I try to run the command on different logstash configuration files.
My command: logstash -tf logstash-sample.conf
Error message and stack trace for v7.16.2:
Using JAVA_HOME defined java: C:\Program Files\Java\jdk1.8.0_331
WARNING: Using JAVA_HOME while Logstash distribution comes with a bundled JDK.
DEPRECATION: The use of JAVA_HOME is now deprecated and will be removed starting from 8.0. Please configure LS_JAVA_HOME instead.
[FATAL] 2022-05-02 18:08:05.960 [main] Logstash - Logstash stopped processing because of an error: (EACCES) Permission denied - NUL
org.jruby.exceptions.SystemCallError: (EACCES) Permission denied - NUL
at org.jruby.RubyIO.sysopen(org/jruby/RubyIO.java:1237) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyFile.initialize(org/jruby/RubyFile.java:365) ~[jruby-complete-9.2.20.1.jar:?]
at org.jruby.RubyIO.open(org/jruby/RubyIO.java:1156) ~[jruby-complete-9.2.20.1.jar:?]
at uri_3a_classloader_3a_.META_minus_INF.jruby_dot_home.lib.ruby.stdlib.rubygems.user_interaction.initialize(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/user_interaction.rb:645) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.ui.rg_proxy.initialize(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/ui/rg_proxy.rb:11) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.ui=(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler.rb:90) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.ui(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler.rb:86) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.rubygems_integration.validate(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/rubygems_integration.rb:72) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.source.path.validate_spec(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/source/path.rb:168) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.source.path.load_spec_files(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/source/path.rb:182) ~[?:?]
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1821) ~[jruby-complete-9.2.20.1.jar:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.source.path.load_spec_files(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/source/path.rb:176) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.source.path.local_specs(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/source/path.rb:107) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.source.path.specs(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/source/path.rb:115) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.definition.specs_for_source_changed?(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/definition.rb:557) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.definition.specs_changed?(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/definition.rb:542) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.definition.converge_paths(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/definition.rb:586) ~[?:?]
at org.jruby.RubyArray.any?(org/jruby/RubyArray.java:4553) ~[jruby-complete-9.2.20.1.jar:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.definition.converge_paths(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/definition.rb:585) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.definition.initialize(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/definition.rb:128) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.dsl.to_definition(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/dsl.rb:221) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.dsl.evaluate(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/dsl.rb:13) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.definition.build(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler/definition.rb:33) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.definition(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler.rb:196) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.vendor.bundle.jruby.$2_dot_5_dot_0.gems.bundler_minus_2_dot_2_dot_33.lib.bundler.setup(C:/apps/logstash/logstash-7.16.2/vendor/bundle/jruby/2.5.0/gems/bundler-2.2.33/lib/bundler.rb:144) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.lib.bootstrap.bundler.setup!(C:/apps/logstash/logstash-7.16.2/lib/bootstrap/bundler.rb:79) ~[?:?]
at C_3a_.apps.logstash.logstash_minus_7_dot_16_dot_2.lib.bootstrap.environment.<main>(C:\apps\logstash\logstash-7.16.2\lib\bootstrap\environment.rb:89) ~[?:?]
I'm not sure what to look at to fix the permission issue. Any ideas on the underlying cause?
This is an open issue in logstash. The underlying Java issue is here. You can make it work with a current JVM by adding -Djdk.io.File.enableADS=true to the JVM options.
I had a similar issue but mine would work if I try an older JDK released around Feb 2022.
I'm trying to open a file with a JSR223 Sampler using Groovy.
The file is in the same directory as the .jmx file.
The Sampler runs first in the test plan, so no other part of the plan should interfere with it.
Script
import org.apache.jmeter.services.FileServer;
String path = FileServer.getFileServer().getBaseDir() + "\\requestBody.txt"
String file = new File(path).getText('UTF-8')
In the log, I'm getting the exception:
2021-02-18 15:46:17,708 ERROR o.a.j.p.j.s.JSR223Sampler: Problem in JSR223 script Load SOAP Request Config, message: javax.script.ScriptException: javax.script.ScriptException: java.io.FileNotFoundException: C:\Users\MatthiasWalk\Documents\Workspace\JMeter\requestBody.txt (The system cannot find the file specified)
javax.script.ScriptException: javax.script.ScriptException: java.io.FileNotFoundException: C:\Users\MatthiasWalk\Documents\Workspace\JMeter\requestBody.txt (The system cannot find the file specified)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:158) ~[groovy-jsr223-3.0.7.jar:3.0.7]
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233) ~[java.scripting:?]
at org.apache.jmeter.util.JSR223TestElement.processFileOrScript(JSR223TestElement.java:219) ~[ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.protocol.java.sampler.JSR223Sampler.sample(JSR223Sampler.java:72) [ApacheJMeter_java.jar:5.4.1]
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:638) [ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558) [ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489) [ApacheJMeter_core.jar:5.4.1]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) [ApacheJMeter_core.jar:5.4.1]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: javax.script.ScriptException: java.io.FileNotFoundException: C:\Users\MatthiasWalk\Documents\Workspace\JMeter\requestBody.txt (The system cannot find the file specified)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:320) ~[groovy-jsr223-3.0.7.jar:3.0.7]
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:155) ~[groovy-jsr223-3.0.7.jar:3.0.7]
... 8 more
Caused by: java.io.FileNotFoundException: C:\Users\MatthiasWalk\Documents\Workspace\JMeter\requestBody.txt (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.io.FileInputStream.open(FileInputStream.java:219) ~[?:?]
at java.io.FileInputStream.<init>(FileInputStream.java:157) ~[?:?]
at org.codehaus.groovy.runtime.ResourceGroovyMethods.newReader(ResourceGroovyMethods.java:1797) ~[groovy-3.0.7.jar:3.0.7]
at org.codehaus.groovy.runtime.ResourceGroovyMethods.getText(ResourceGroovyMethods.java:579) ~[groovy-3.0.7.jar:3.0.7]
at org.codehaus.groovy.runtime.dgm$1042.invoke(Unknown Source) ~[groovy-3.0.7.jar:3.0.7]
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:247) ~[groovy-3.0.7.jar:3.0.7]
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) ~[groovy-3.0.7.jar:3.0.7]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) ~[groovy-3.0.7.jar:3.0.7]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) ~[groovy-3.0.7.jar:3.0.7]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139) ~[groovy-3.0.7.jar:3.0.7]
at Script8.run(Script8.groovy:5) ~[?:?]
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:317) ~[groovy-jsr223-3.0.7.jar:3.0.7]
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:155) ~[groovy-jsr223-3.0.7.jar:3.0.7]
... 8 more
The path seems to be alright, the file exists and I checked it for trailing/leading whitespaces.
What am I missing?
I cannot reproduce your issue for the file which exists and my user has read permissions for this file:
So I would recommend double-checking the file path and your user access details.
Also
if you need to read the file from the current folder there is no need to use full path, file name will be sufficient
reading a file into a string can be done without having to write a single line of code, JMeter provides __FileToString() function:
See Apache JMeter Functions - An Introduction article to get familiarized with JMeter Functions concept.
The following system was built (not by me):
Windows 10 operating system is installed on the local machine.
Connection goes to the remote server with Ubuntu 16.04 through a client (like SmarTTY or Bitwise SSH Client).
The docker container is launched on the server.
How do I configure the system so that the GUI application can be started from the container on the remote server and I can interact with it?
I don't quite understand the ports and DISPLAY values system.
With smarTTY and its vcxsrv client I can run this application outside the container, but not inside - there are errors about missing some java files.
EDIT: Adding reports and more information
I have this configuration of running command for docker:
docker run --rm --runtime=nvidia -it --name delobo \
-v /opt/pycharm-community-2019.1.3/:/opt/pycharm/ -v $(pwd):/workspace \
-v /media/:/media/ \
-v /home/boyko/.Xauthority:/home/boyko/.Xauthority \
-e XAUTHORITY=/home/boyko/.Xauthority \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw --privileged \
-e DISPLAY=$DISPLAY -v $HOME/:/home/boyko \
--network=host tensorflow_me bash
and all this time when i was trying to run GUI of PyCharm, i get something like this:
Start Failed: Internal error. Please report to http://jb.gg/ide/critical-startup-errors
com.intellij.ide.plugins.PluginManager$StartupAbortedException: java.lang.reflect.InvocationTargetException
at com.intellij.ide.plugins.PluginManager.lambda$start$0(PluginManager.java:78)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.intellij.ide.plugins.PluginManager.lambda$start$0(PluginManager.java:75)
... 1 more
Caused by: java.lang.UnsatisfiedLinkError: /opt/pycharm/jre64/lib/libawt_xawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(Unknown Source)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(Unknown Source)
at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.base/java.lang.Runtime.load0(Unknown Source)
at java.base/java.lang.System.load(Unknown Source)
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(Unknown Source)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(Unknown Source)
at java.base/java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.base/java.lang.Runtime.loadLibrary0(Unknown Source)
at java.base/java.lang.System.loadLibrary(Unknown Source)
at java.desktop/java.awt.Toolkit$3.run(Unknown Source)
at java.desktop/java.awt.Toolkit$3.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.Toolkit.loadLibraries(Unknown Source)
at java.desktop/java.awt.Toolkit.<clinit>(Unknown Source)
at com.intellij.ui.AppUIUtil.updateFrameClass(AppUIUtil.java:172)
at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:107)
at com.intellij.idea.MainImpl.start(MainImpl.java:20)
... 6 more
Also, an UI exception occurred on attempt to show above message:
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
at java.desktop/java.awt.Component.<clinit>(Unknown Source)
at com.intellij.idea.Main.showMessage(Main.java:158)
at com.intellij.idea.Main.showMessage(Main.java:134)
at com.intellij.ide.plugins.PluginManager.processException(PluginManager.java:140)
at com.intellij.ide.plugins.PluginManager$1.uncaughtException(PluginManager.java:63)
at java.base/java.lang.Thread.dispatchUncaughtException(Unknown Source)
I have no idea how to repair this issue.
Must note there, that if we use Linux as main local machine (instead of using Windows, as i have to), there is no errors, and PyCharm runs normally.
It turns out this way: i need to install these packages inside my container under root:
apt-get install libxrender1 libxtst6 libxi6
So now i have pycharm displayed and it's interacting well.
The main tip was written and described there
The MQTT protocol adapter does not start and in its log I see the message io.vertx.core.VertxException: OpenSSL is not available. What does this mean and what could be the cause?
11:10:18.131 [main] ERROR o.e.h.a.m.i.Application$$EnhancerBySpringCGLIB$$f98773bb - exception occurred during startup, shutting down ...
java.util.concurrent.ExecutionException: io.vertx.core.VertxException: OpenSSL is not available
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2022)
at org.eclipse.hono.service.AbstractBaseApplication.run(AbstractBaseApplication.java:160)
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:804)
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:794)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:324)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at org.eclipse.hono.adapter.mqtt.impl.Application.main(Application.java:37)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:593)
Caused by: io.vertx.core.VertxException: OpenSSL is not available
Please check if you have set the property nativeTlsRequired in the protocol adapter's configuration to true. The default Hono containers do not contain netty-tcnative. To enable this option, please follow the explanation in the
Hono Admin Guide or build your own container images.
I get this error-"Invalid MIT-MAGIC-COOKIE-1 key"
when running a program with sudo in ubuntu
example-
sudo gedit /etc/profile...
without sudo, it runs fine...
gedit /etc/profile runs fine
also...
sudo ./studio.sh gives this error
No protocol specified
Start Failed: Internal Error. Failed to initialize graphics environment
java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:128)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.Toolkit$2.run(Toolkit.java:860)
at java.awt.Toolkit$2.run(Toolkit.java:855)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1734)
at java.awt.EventQueue.isDispatchThread(EventQueue.java:1049)
at javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1361)
at javax.swing.text.StyleContext.reclaim(StyleContext.java:454)
at javax.swing.text.StyleContext.addAttribute(StyleContext.java:311)
at javax.swing.text.html.StyleSheet.addAttribute(StyleSheet.java:578)
at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:1501)
at javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:1312)
at javax.swing.text.StyleContext$NamedStyle.<init>(StyleContext.java:1259)
at javax.swing.text.StyleContext.addStyle(StyleContext.java:107)
at javax.swing.text.StyleContext.<init>(StyleContext.java:87)
at javax.swing.text.html.StyleSheet.<init>(StyleSheet.java:166)
at javax.swing.text.html.HTMLEditorKit.getStyleSheet(HTMLEditorKit.java:391)
at com.intellij.util.ui.UIUtil.<clinit>(UIUtil.java:102)
at com.intellij.ide.plugins.PluginManager.start(PluginManager.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:39)
at com.intellij.idea.Main.main(Main.java:86)
./studio.sh runs fine
how to solve this?
I got it solved using
xhost local:
in terminal
xhost local: is not secure if your machine can have multiple users (and even if it doesn't currently, that's a bad habit). Indeed, other local users could have access to your X server. Restrict the local connections to user root with:
xhost +si:localuser:root