# Logstash 7.8.0 keystore via symlink not work

**URL:** <https://discuss.elastic.co/t/logstash-7-8-0-keystore-via-symlink-not-work/238485>\
**Category:** Logstash\
**Created:** [June 24, 2020, 1:30pm UTC](https://discuss.elastic.co/t/logstash-7-8-0-keystore-via-symlink-not-work/238485 "2020-06-24T13:30:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeleznypa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeleznypa/32/42499_2.png) [@zeleznypa](https://discuss.elastic.co/u/zeleznypa)\
**Post date:** [June 24, 2020, 1:30pm UTC](https://discuss.elastic.co/t/logstash-7-8-0-keystore-via-symlink-not-work/238485/1 "2020-06-24T13:30:27Z")

</div>

We have configured a shared folder between servers, that contain common configuration files for all of our logstash servers. This folder contains also the `logstash.keystore` file.

When I copy the file `logstash.keystore` to /etc/logstash folder, everything works well.

But when I create a symlink from the shared folder to the file (with really the same ownership and chmod parameters), the `bin/logstash-keystore list` still work, but the service (with properly setuped environment variables) stop work with the following error:

```auto
[2020-06-24T15:17:41,967][ERROR][logstash.agent] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:pipeline_name, :exception=>"Java::JavaLang::IllegalStateException",
:message=>"Unable to configure plugins: Error while trying to retrieve secret urn:logstash:secret:v1:pipeline_password", :backtrace=>["org.logstash.config.ir.CompiledPipeline.<init>(CompiledPipeline.java:119)", "org.logstash.execution.JavaBasePipelineExt.initialize(JavaBasePipelineExt.java:80)", "org.logstash.execution.JavaBasePipelineExt$INVOKER$i$1$0$initialize.call(JavaBasePipelineExt$INVOKER$i$1$0$initialize.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:837)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:1169)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuperSplatArgs(IRRuntimeHelpers.java:1156)", "org.jruby.ir.targets.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)", "usr.share.logstash.logstash_minus_core.lib.logstash.java_pipeline.RUBY$method$initialize$0(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:43)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:82)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:70)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:86)", "org.jruby.RubyClass.newInstance(RubyClass.java:939)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:84)", "org.jruby.ir.instructions.CallBase.interpret(CallBase.java:552)", "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:361)", "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:72)", "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:92)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET_METHOD(MixedModeIRMethod.java:191)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:178)", "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:208)", "usr.share.logstash.logstash_minus_core.lib.logstash.agent.RUBY$block$converge_state$2(/usr/share/logstash/logstash-core/lib/logstash/agent.rb:342)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:138)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:52)", "org.jruby.runtime.Block.call(Block.java:139)", "org.jruby.RubyProc.call(RubyProc.java:318)", "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:105)", "java.lang.Thread.run(Thread.java:748)"]}

```

The same configuration works well before on 7.6.0 version.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 22, 2020, 1:30pm UTC](https://discuss.elastic.co/t/logstash-7-8-0-keystore-via-symlink-not-work/238485/2 "2020-07-22T13:30:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
