# Logstash-keystore failed with error "ArgumentError: invalid byte sequence in CP949"

**URL:** <https://discuss.elastic.co/t/logstash-keystore-failed-with-error-argumenterror-invalid-byte-sequence-in-cp949/246582>\
**Category:** Logstash\
**Created:** [August 27, 2020, 8:33am UTC](https://discuss.elastic.co/t/logstash-keystore-failed-with-error-argumenterror-invalid-byte-sequence-in-cp949/246582 "2020-08-27T08:33:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaykim](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jaykim](https://discuss.elastic.co/u/jaykim)\
**Post date:** [August 27, 2020, 8:33am UTC](https://discuss.elastic.co/t/logstash-keystore-failed-with-error-argumenterror-invalid-byte-sequence-in-cp949/246582/1 "2020-08-27T08:33:32Z")

</div>

Hello team,

I'm working to secure configuration on ELK stack. While creating keystore in logstash, there was an error : 'ArgumentError: invalid byte sequence in CP949'  
It also occured in v7.8.0, don't know what happens in any prevision versions.

I wonder how to solve this problem.

- environment: ELK stack 7.9.0 on Windows Server 2012 R2 (OS language : Korean)
- error messages:  
ArgumentError: invalid byte sequence in CP949  
split at org/jruby/RubyString.java:4218  
set\_path at C:/Elastic/logstash-7.9.0/vendor/bundle/jruby/2.5.0/gems/bundler-1.17.3/lib/bundler/shared\_helpers.rb:331  
set\_bundle\_environment at C:/Elastic/logstash-7.9.0/vendor/bundle/jruby/2.5.0/gems/bundler-1.17.3/lib/bundler/shared\_helpers.rb:92  
setup at C:/Elastic/logstash-7.9.0/vendor/bundle/jruby/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:22  
setup at C:/Elastic/logstash-7.9.0/vendor/bundle/jruby/2.5.0/gems/bundler-1.17.3/lib/bundler.rb:107  
setup! at C:/Elastic/logstash-7.9.0/lib/bootstrap/bundler.rb:77  
 at C:\Elastic\logstash-7.9.0\lib\secretstore\cli.rb:20

---

<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:** [September 24, 2020, 8:33am UTC](https://discuss.elastic.co/t/logstash-keystore-failed-with-error-argumenterror-invalid-byte-sequence-in-cp949/246582/2 "2020-09-24T08:33:47Z")

</div>

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